27 Oct '12, 6am

やっとここまできた #devdo

Because Nokogiri needs to be compiled and dynamically linked against both libxml2 and libxslt , it has gained a reputation for being complicated to install. Let’s wrassle this little myth to the ground, shall we? Ubuntu / Debian Ubuntu doesn’t come with the Ruby development packages that are required for building gems with C extensions. Here are the commands to install everything you might need: # ruby developer packages sudo apt-get install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 sudo apt-get install libreadline-ruby1.8 libruby1.8 libopenssl-ruby # nokogiri requirements sudo apt-get install libxslt-dev libxml2-dev sudo gem install nokogiri Although, if you’re using Hardy (8.04) or earlier, you’ll need to install slightly different packages: # nokogiri requirements for Hardy (8.04) and earlier sudo apt-get install libxslt1-dev libxml2-dev As John Barnette once said , “Isn...

Full article: http://nokogiri.org/tutorials/installing_nokogiri.html

Tweets