WebFaction
Community site: login faq

I'm getting this error when trying to install. I think i need to install libxml2 and libxslt but I don't have rights to yum. Any thoughts?

gem1.9 install nokogiri
Building native extensions.  This could take a while...
/usr/local/lib/ruby19/ruby/1.9.1/rubygems/ext/builder.rb:48: warning: Insecure world writable dir /home/mbesto/files in PATH, mode 040777
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby1.9 extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/local/bin/ruby1.9
/usr/local/lib/ruby19/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mini_portile (LoadError)
    from /usr/local/lib/ruby19/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:92:in `<main>'

Gem files will remain installed in /home/mbesto/files/gems/gems/nokogiri-1.6.1 for inspection.
Results logged to /home/mbesto/files/gems/gems/nokogiri-1.6.1/ext/nokogiri/gem_make.out

asked 04 Apr '14, 22:40

mbesto
313
accept rate: 0%


You need to build libxml2 and the other dependencies from source code and than specify the paths when you install the gem.

permanent link

answered 04 Apr '14, 23:49

johns
5.4k412
accept rate: 23%

That worked! Thanks.

Had to get the following libraries wget ftp://xmlsoft.org/libxml2/libxml2-2.9.1.tar.gz and wget ftp://xmlsoft.org/libxml2/libxslt-1.1.28.tar.gz

then gem1.9 install nokogiri (looks like Webfaction defaults to Ruby1.8 I think)

permanent link

answered 05 Apr '14, 03:01

mbesto
313
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×82
×1

question asked: 04 Apr '14, 22:40

question was seen: 4,778 times

last updated: 05 Apr '14, 03:01

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM