Note that there are some explanatory texts on larger screens.

plurals
  1. POOS X 10.6 Installing Nokogiri
    primarykey
    data
    text
    <p>I am very new to OS X and I don't know anything about compiling, MacPorts, Homebrew, etc. All I want to do is install the Nokogiri gem on OS X.</p> <p>In Windows, it was as simple as:</p> <pre><code>gem install nokogiri </code></pre> <p>However, when I try this on OS X, I get the following message:</p> <pre><code>Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.4 for inspection. Results logged to /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.4/ext/nokogiri/gem_make.out </code></pre> <p>Again, I am not very good with OS X and I have no idea what this means.</p> <p>Is there an easy way to install Nokogiri without having to mess with MacPorts and other programs I've read about online?</p> <p>I have XCode 4 installed (some people say XCode is required for this to work), and I'm using Ruby 1.8.7.</p> <p>Also, I tried installing MacPorts and following the instructions online and I get the following:</p> <pre><code>Derek-MacBook-Pro:~ derek$ sudo port install libxml2 libxslt Password: ---&gt; Computing dependencies for libxml2Error: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it? To report a bug, see &lt;http://guide.macports.org/#project.tickets&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload