2012-04-13 9 views
4

Wirklich schnell, ich bin bewusst, eine similar question. Das Folgen der bestbewerteten Antwort funktioniert jedoch nicht. Ich habe mein System und das Terminal bereits neu gestartet, aber ohne Erfolg.Nokogiri 1.5.2 nicht auf Ubuntu 11.10 installieren

Aus irgendeinem Grund erkennt Nokogiri nicht, dass ich libxslt1-dev installiert habe, obwohl ich es explizit installierte, beide mit sudo apt-get install libxslt-dev und sudo apt-get install libxslt1-dev.

Hier ist der Ausgang; vermisse ich noch etwas?

$ gem install nokogiri -v '1.5.2' 
Building native extensions. This could take a while... 
ERROR: Error installing nokogiri: 
ERROR: Failed to build gem native extension. 

~/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb 
extconf.rb:10: Use RbConfig instead of obsolete and deprecated Config. 
checking for libxml/parser.h... yes 
checking for libxslt/xslt.h... yes 
checking for libexslt/exslt.h... yes 
checking for iconv_open() in iconv.h... no 
checking for iconv_open() in -liconv... yes 
checking for xmlParseDoc() in -lxml2... yes 
checking for xsltParseStylesheetDoc() in -lxslt... no 
----- 
libxslt is missing. please visit 
http://nokogiri.org/tutorials/installing_nokogiri.html for help 
with installing dependencies. 
----- 
*** 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: 
    List of options 

Gem files will remain installed in ~/.rvm/gems/[email protected]/gems/nokogiri-1.5.2 for inspection. 
Results logged to ~/.rvm/gems/[email protected]/gems/nokogiri-1.5.2/ext/nokogiri/gem_make.out 

EDIT: Bei genauerem Hinsehen erkenne ich, dass das Installationsprogramm erkennt, dass ich libxslt1-dev installiert, aber es ist einer der Tests fehlschlägt. Habe ich etwas falsch mit der Installation gemacht?

EDIT 2: Ich versuche capybara mit bundle install zu installieren, und unter seinen verschiedenen Abhängigkeiten, nokogiri und selenium-webdriver können libxslt nicht finden, und deshalb kann ich nicht capybara verwenden.

EDIT 3: Hier ist die Fehlermeldung aus der Datei mkmf.log; lass es mich wissen, wenn du den Rest brauchst.

-------------------- 

find_library: checking for xsltParseStylesheetDoc() in -lxslt... -------------------- no 

"gcc -o conftest -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/x86_64-linux -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/backward -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1 -I. -I/opt/local/include/libxml2 -I/usr/local/include/libxml2 -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/libxml2 -I/opt/local/include -I/usr/local/include -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include -I/usr/include -I/usr/include/libxml2 -I${HOME}/.rvm/usr/include  -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline conftest.c -L. -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -Wl,-R${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -Wl,-R${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L/usr/lib -Wl,-R/usr/lib -L${HOME}/.rvm/usr/lib -Wl,-R${HOME}/.rvm/usr/lib -L. -rdynamic -Wl,-export-dynamic -lxml2 -liconv -Wl,-R -Wl,${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -lruby -lxslt -lxml2 -liconv -lpthread -lrt -ldl -lcrypt -lm -lc " 
conftest.c: In function ‘t’: 
conftest.c:5:53: error: ‘xsltParseStylesheetDoc’ undeclared (first use in this function) 
conftest.c:5:53: note: each undeclared identifier is reported only once for each function it appears in 
conftest.c:5:28: warning: variable ‘p’ set but not used [-Wunused-but-set-variable] 
checked program was: 
/* begin */ 
1: #include "ruby.h" 
2: 
3: /*top*/ 
4: int main() {return 0;} 
5: int t() { void ((*volatile p)()); p = (void ((*)()))xsltParseStylesheetDoc; return 0; } 
/* end */ 

"gcc -o conftest -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/x86_64-linux -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1/ruby/backward -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/ruby-1.9.1 -I. -I/opt/local/include/libxml2 -I/usr/local/include/libxml2 -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include/libxml2 -I/opt/local/include -I/usr/local/include -I${HOME}/.rvm/rubies/ruby-1.9.3-p125/include -I/usr/include -I/usr/include/libxml2 -I${HOME}/.rvm/usr/include  -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline conftest.c -L. -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -Wl,-R${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/local/lib -Wl,-R/usr/local/lib -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -Wl,-R${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L/usr/lib -Wl,-R/usr/lib -L${HOME}/.rvm/usr/lib -Wl,-R${HOME}/.rvm/usr/lib -L. -rdynamic -Wl,-export-dynamic -lxml2 -liconv -Wl,-R -Wl,${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -L${HOME}/.rvm/rubies/ruby-1.9.3-p125/lib -lruby -lxslt -lxml2 -liconv -lpthread -lrt -ldl -lcrypt -lm -lc " 
conftest.c: In function ‘t’: 
conftest.c:5:1: warning: implicit declaration of function ‘xsltParseStylesheetDoc’ [-Wimplicit-function-declaration] 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.15' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `xm[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.17' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.27' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.25' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.5.4' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.5' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]LIBXML2_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.5.4' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.17' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.5.6' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.17' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.3' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.5' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.6.0' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
/usr/lib/libxslt.so: undefined reference to `[email protected]_2.4.30' 
collect2: ld returned 1 exit status 
checked program was: 
/* begin */ 
1: #include "ruby.h" 
2: 
3: /*top*/ 
4: int main() {return 0;} 
5: int t() { xsltParseStylesheetDoc(); return 0; } 
/* end */ 

-------------------- 
+0

Gibt es eine 32/64 Bit-Mismatch? http://StackOverflow.com/questions/3496857/Function-xsltparsStitlesheetdoc-not-found-in-libxml2-so Oder vielleicht hat dies eine Antwort http://StackOverflow.com/Questions/1225703/cant-build-gem- native-extension-build-fails-can-you-see-warum –

+0

@John Ich glaube nicht; 'apt-get' hat mir immer das korrekte Paket zu 32/64 Bits gegeben. (Ich bin auf 'x86_64', und das Paket ist ein 'amd64'-Paket.) Ich habe es nur neu installiert, um sicher zu sein, und ich bekomme immer noch den gleichen Fehler. – Edwin

+0

Was ist mit dem Ausführen der "apt-get" hier erwähnt: http://StackOverflow.com/Questions/8003523/error-Installing-Nokogiri-1-5-0-with-rails-3-1-0-and-ubuntu ? – Deradon

Antwort

3

Es scheint, wie Sie mehr als eine Kopie von libxml2 (und möglicherweise libxslt) installiert haben, und sie sie sind verwirrend. Versuchen Sie, zusätzliche Kopien dieser Bibliotheken (und ihrer Include-Dateien) von Ihrem System zu suchen und zu entfernen.

+0

Sie haben Recht; es sieht so aus als hätte ich zwei Versionen. Aus Gründen, die ich nicht nachvollziehen konnte, löste die Neuinstallation von 'libxml2-dev' das Problem. Nicht sicher, was das System versuchte, '2.4.30' zu finden, wenn es momentan' 2.7.8' über 'apt-get' ist. – Edwin

+0

Wie würden Sie eine andere Kopie von libxml2 in Ihrer App finden? – Trip

0

Einige Ideen, um zu versuchen:

  • Versuch 1.5.0 installieren. Wenn das scheitert, weißt du wenigstens, dass es dein Problem ist, nicht Nokogiri.
  • versuchen Sie --with-xslt-dir --mit-xslt-include und --with-xslt-lib Optionen. Vielleicht haben Sie eine alte libxslt früher in Ihrem Weg
+0

Nicht sicher, was Sie mit dem ersten Punkt meinen, aber ich weiß, dass ich keine früheren Versionen von 'libxslt' habe, wenn ich' whereis libxslt' und 'locate libxslt' benutze. – Edwin

Verwandte Themen