Aaron Patterson
2009-Jul-26 04:22 UTC
[Mechanize-users] Failed to build gem native extension
On Sat, Jul 25, 2009 at 9:14 PM, Jeffrey Roberts<jeffrey.l.roberts at gmail.com> wrote:> Hello all, I have looked up and down on google for a solution to this going > on several days now, I am really hoping someone here can help me out. > > I have all my deps in order, and I believe the error is that it is looking > in /usr/lib when it should be looking in /usr/lib64, I am also unable to > locate the mkmf.log for whatever reason, any ideas on how I can get this > installed?What version of ruby do you have installed? -- Aaron Patterson http://tenderlovemaking.com/
Aaron Patterson
2009-Jul-26 05:28 UTC
[Mechanize-users] Failed to build gem native extension
On Sat, Jul 25, 2009 at 9:59 PM, Jeffrey Roberts<jeffrey.l.roberts at gmail.com> wrote:> Thank you for such a quick reply, I have 1.8.5, and im noticing its i386, > hrmm, any ideas ?Yes, the current release of nokogiri isn''t installing correctly with 1.8.5. You can either upgrade ruby (highly recommend since 1.8.5 isn''t supported by the core team anymore), or use an older version of nokogiri like this: $ gem install nokogiri -v 1.3.1 Then gem install mechanize. Newer versions of nokogiri should not suffer from this problem. :-) -- Aaron Patterson http://tenderlovemaking.com/
Aaron Patterson
2009-Jul-26 06:32 UTC
[Mechanize-users] Failed to build gem native extension
On Sat, Jul 25, 2009 at 10:46 PM, Jeffrey Roberts<jeffrey.l.roberts at gmail.com> wrote:> Hi Aaron, > > Thanks again for your response, I appreciate it greatly, I am like a first > mate on this box, with the captain being out of town, I will def pass on the > idea of upgrading to him when he gets back, but if I can get this working > before then, it reflect well on me =] > > I ran the gem install nokogiri -v 1.3.1 and I get this error > > [root at swn nokogiri]# gem install nokogiri -v 1.3.1 > Building native extensions.? This could take a while... > ERROR:? Error installing nokogiri: > ??????? ERROR: Failed to build gem native extension. > > /usr/bin/ruby extconf.rb > checking for #include <iconv.h> > ... no > iconv is missing.? try ''port install iconv'' or ''yum install iconv'' > > I did a search for iconv.h and I found it here > > /usr/i686-pc-mingw32/sys-root/mingw/include/iconv.h > /usr/include/iconv.h > > any ideas on how I can get the install to recognize that iconv.h ? =]It should Just Work. If you look in your gem installation directory, you should be able to find an mkmf.log file (for nokogiri 1.3.1). Please make that file available for me somewhere. It contains a log of compilation attempts. It should give me a better idea what''s wrong. -- Aaron Patterson http://tenderlovemaking.com/
Aaron Patterson
2009-Jul-26 07:25 UTC
[Mechanize-users] Failed to build gem native extension
On Sun, Jul 26, 2009 at 12:01 AM, Jeffrey Roberts<jeffrey.l.roberts at gmail.com> wrote:> Hello Aaron, > > Thank you for your patience with this, here is what was in the mkmf.logNo problem. Looks like you''re actually missing "gnu/stubs-32.h". I found this link: http://ubuntuforums.org/archive/index.php/t-370114.html Which indicates that you should do: sudo apt-get install libc6-dev-i386 Do that, then try installing nokogiri. -- Aaron Patterson http://tenderlovemaking.com/