Je suis en train d'installer un petit bijou mécaniser sur MAC OS X, mais je continue à obtenir l'erreur suivante:Installation mécaniser petit bijou sous Mac OS X 10.4.11 donne « n'a pas pu construire gemme extension native »
ERROR: Error installing mechanize:
ERROR: Failed to build gem native extension./usr/local/bin/ruby extconf.rb install mechanize
checking for #include
... yes
checking for #include
... yes
checking for #include
... yes
checking for #include
... yes
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... yes
checking for exsltFuncRegister() in -lexslt... yes
creating Makefile** make gcc -I. -I. -I/usr/local/lib/ruby/1.8/i686-darwin8.9.1 -I. -I/opt/local/include/ -I/opt/local/include/libxml2 -fno-common -g -O2 -pipe -fno-common -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline -c html_document.c
In file included from ./html_document.h:4,
from html_document.c:1:
./native.h:11:28: error: libxml/xmlsave.h: No such file or directory
make: * ** [html_document.o] Error 1**
Alors xmlsave.h ne se trouve dans/opt/local/include/ou/opt/local/include/libxml2 La chose est libxml2 est installé en tant que cadre à /Library/Frameworks/libxml2.framework/
Ensuite, J'ai décidé de créer un lien symbolique depuis le répertoire des en-têtes libxml vers/opt/local/include/xml2, donc j'ai fait
ln -s /Library/Frameworks/libxml2.framework/Headers/libxml/ libxml2
mais je n'arrive toujours pas à installer la gemme.
Les pointeurs ou les idées sont très appréciés.