Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to install Nokogiri as a Macruby gem?
    primarykey
    data
    text
    <p>The latest MacRuby release notes (v0.6) state that the authors have managed to get this release working with the SQLite and Nokogiri gems. However when I run <code>sudo macgem install nokogiri</code> I get the following errors:</p> <pre><code>ERROR: Error installing nokogiri: </code></pre> <p>extconf failed:</p> <p>and then a bunch of paths followed by:</p> <pre><code>libxml2 is missing. try 'port install libxml2' or 'yum install libxml2' /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/nokogiri-1.4.1/ext/nokogiri/extconf.rb:1:in `&lt;main&gt;': libxml2 is missing. try 'port install libxml2' or 'yum install libxml2' (SystemExit) </code></pre> <p>Anyone knows how to get this working? My platform is Mac OS X 10.6.3. Nokogiri normally (meaining on plain old ruby 1.8.7) installs without a problem.</p> <h1>Progress</h1> <p>OK, so I have:</p> <ol> <li><code>git clone http://github.com/tenderlove/nokogiri.git</code></li> <li><code>cd nokogiri/ext/nokogiri</code></li> <li>Then I've rebuilt the macports libraries with <code>sudo port upgrade --enforce-variants libxml2 +universal</code> and <code>sudo port upgrade --enforce-variants libxslt +universal</code></li> <li>Then I've executed <code>macruby extconf.rb</code> successfully</li> <li>Then I proceed to <code>make</code></li> </ol> <p>At this point it errors out like so:</p> <pre><code>/usr/bin/gcc -I. -I/opt/local/include/libxml2 -I/opt/local/include/ -I/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/include/ruby-1.9.0/universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/include/ruby-1.9.0/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/include/ruby-1.9.0 -I. -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETPARSERSTRUCTUREDERRORS -DHAVE_XMLRELAXNGSETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETVALIDSTRUCTUREDERRORS -DHAVE_XMLSCHEMASETPARSERSTRUCTUREDERRORS -I/opt/local/include/ -I/opt/local/include/libxml2 -I/opt/local/include -fno-common -fexceptions -fno-common -pipe -O3 -g -Wall -Wno-parentheses -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -arch i386 -arch x86_64 -o html_document.o -c html_document.c In file included from ./html_document.h:4, from html_document.c:1: ./nokogiri.h:35:16: error: st.h: No such file or directory In file included from ./html_document.h:4, from html_document.c:1: ./nokogiri.h:35:16: error: st.h: No such file or directory lipo: can't open input file: /var/folders/wU/wUGgoG1JGeKBgwalWLPMAU+++TI/-Tmp-//ccSgAUv5.out (No such file or directory) make: *** [html_document.o] Error 1 </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.
 

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