Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member duranduran's Avatar
    Join Date
    Apr 2004
    Posts
    198

    Exclamation Error installing mechanize gem (Ruby)

    When i try to install the mechanize gem i have this error:

    Instalando "mechanize" Ruby Gem

    INFO: `gem install -y` is now default and will be removed
    INFO: use --ignore-dependencies to install only the gems you list
    Building native extensions. This could take a while...
    ERROR: Error installing mechanize:
    ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb install -y mechanize
    checking for libxml/xmlversion.h in /opt/local/include,/opt/local/include/libxml2,/usr/include/libxml2,/usr/include,/usr/include/libxml2,/usr/local/include/libxml2... no
    need libxml
    *** 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}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/usr/bin/ruby


    Gem files will remain installed in /home2/cluster0/ruby/gems/gems/nokogiri-1.1.1 for inspection.
    Results logged to /home2/cluster0/ruby/gems/gems/nokogiri-1.1.1/ext/nokogiri/gem_make.out
    How can i install these libraries ?

    libxml-ruby libxml2-dbg libxslt-ruby libxslt1-dbg libxml2-dbg libxml2-dev libxslt-ruby libxslt-ruby1.8 libxslt-dev

  2. #2
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Have you tried Main >> Software >> Module Installers >> Ruby Gem via WHM and search for it and install it there or /scripts/gemwrapper install mechanize via shell I tested it and both methods worked fine for me.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

Similar Threads & Tags
Similar threads

  1. Ruby cPanel gem
    By jdelsman in forum cPanel Developers
    Replies: 0
    Last Post: 02-08-2010, 04:07 PM
  2. problem installing mechanize gem
    By dxm in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 09-28-2009, 01:45 PM
  3. Installing RoR gem mysql throws error
    By FreshFocus in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-24-2009, 05:46 PM
  4. ruby gem installer not working.
    By gregf in forum New User Questions
    Replies: 1
    Last Post: 10-08-2008, 05:39 PM
  5. Ruby Gem Available for Installation Error
    By bloodymary in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-16-2007, 09:12 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube