Last active
January 30, 2020 23:23
-
-
Save nirvdrum/9351dc7943d39fadcc5a5de7253d9513 to your computer and use it in GitHub Desktop.
TruffleRuby Nokogiri Build Issue (Ubuntu 19.10)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ jt gem install nokogiri | |
Using Interpreted TruffleRuby: mxbuild/truffleruby-jvm | |
$ /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/bin/ruby \ | |
--experimental-options \ | |
--core-load-path=/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/src/main/ruby/truffleruby \ | |
-S \ | |
gem \ | |
install \ | |
nokogiri | |
Fetching mini_portile2-2.4.0.gem | |
Fetching nokogiri-1.10.5.gem | |
Successfully installed mini_portile2-2.4.0 | |
Building native extensions. This could take a while... | |
ERROR: Error installing nokogiri: | |
ERROR: Failed to build gem native extension. | |
current directory: /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/gems/gems/nokogiri-1.10.5/ext/nokogiri | |
/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/bin/truffleruby -I /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/mri -r ./siteconf20191118-12178-12gps4k.rb extconf.rb | |
checking if the C compiler accepts ... yes | |
Building nokogiri using system libraries. | |
pkg-config could not be used to find libxml-2.0 | |
Please install either `pkg-config` or the pkg-config gem per | |
gem install pkg-config -v "~> 1.1" | |
pkg-config could not be used to find libxslt | |
Please install either `pkg-config` or the pkg-config gem per | |
gem install pkg-config -v "~> 1.1" | |
pkg-config could not be used to find libexslt | |
Please install either `pkg-config` or the pkg-config gem per | |
gem install pkg-config -v "~> 1.1" | |
ERROR: cannot discover where libxml2 is located on your system. please make sure `pkg-config` is installed. | |
*** 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: | |
--with-opt-dir | |
--without-opt-dir | |
--with-opt-include | |
--without-opt-include=${opt-dir}/include | |
--with-opt-lib | |
--without-opt-lib=${opt-dir}/lib | |
--with-make-prog | |
--without-make-prog | |
--srcdir=. | |
--curdir | |
--ruby=/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/bin/truffleruby | |
--help | |
--clean | |
--use-system-libraries=true | |
--with-zlib-dir | |
--without-zlib-dir | |
--with-zlib-include | |
--without-zlib-include=${zlib-dir}/include | |
--with-zlib-lib | |
--without-zlib-lib=${zlib-dir}/lib | |
--with-xml2-dir | |
--without-xml2-dir | |
--with-xml2-include | |
--without-xml2-include=${xml2-dir}/include | |
--with-xml2-lib | |
--without-xml2-lib=${xml2-dir}/lib | |
--with-libxml-2.0-config | |
--without-libxml-2.0-config | |
--with-pkg-config | |
--without-pkg-config | |
--with-xslt-dir | |
--without-xslt-dir | |
--with-xslt-include | |
--without-xslt-include=${xslt-dir}/include | |
--with-xslt-lib | |
--without-xslt-lib=${xslt-dir}/lib | |
--with-libxslt-config | |
--without-libxslt-config | |
--with-exslt-dir | |
--without-exslt-dir | |
--with-exslt-include | |
--without-exslt-include=${exslt-dir}/include | |
--with-exslt-lib | |
--without-exslt-lib=${exslt-dir}/lib | |
--with-libexslt-config | |
--without-libexslt-config | |
Contents of mkmf.log: | |
"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/llvm/native/bin/graalvm-native-clang -o conftest -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include/ruby/backward -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I. -Wimplicit-function-declaration -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-format-invalid-specifier -Wno-format-extra-args -ferror-limit=500 conftest.c -L. -L/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib -rpath /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/llvm/native/lib -L/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext -rpath /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext -ltruffleruby -lpolyglot-mock " | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: int main(int argc, char **argv) | |
4: { | |
5: return 0; | |
6: } | |
/* end */ | |
"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/llvm/native/bin/graalvm-native-clang -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include/ruby/backward -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I. -Wimplicit-function-declaration -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-format-invalid-specifier -Wno-format-extra-args -ferror-limit=500 -o conftest.o -c conftest.c" | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: int main() {return 0;} | |
/* end */ | |
"pkg-config --exists libxml-2.0" | |
Process failed: #<Process::Status: pid 14069 exit 1> | |
package configuration for libxml-2.0 is not found | |
"pkg-config --exists libxslt" | |
Process failed: #<Process::Status: pid 14138 exit 1> | |
package configuration for libxslt is not found | |
"pkg-config --exists libexslt" | |
Process failed: #<Process::Status: pid 14139 exit 1> | |
package configuration for libexslt is not found | |
conftest.c:3:10: fatal error: 'libxml/xmlversion.h' file not found | |
#include <libxml/xmlversion.h> | |
^~~~~~~~~~~~~~~~~~~~~ | |
1 error generated. | |
"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/llvm/native/bin/graalvm-native-clang -E -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include/ruby/backward -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I. -Wimplicit-function-declaration -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-format-invalid-specifier -Wno-format-extra-args -ferror-limit=500 -g -DXP_UNIX conftest.c -o conftest.i" | |
Process failed: #<Process::Status: pid 14140 exit 1> | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: #include <libxml/xmlversion.h> | |
/* end */ | |
To see why this extension failed to compile, please check the mkmf.log which can be found here: | |
/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/gems/extensions/x86_64-linux/20.0.0-dev-1e423505/nokogiri-1.10.5/mkmf.log | |
extconf failed, exit code 1 | |
Gem files will remain installed in /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/gems/gems/nokogiri-1.10.5 for inspection. | |
Results logged to /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/gems/extensions/x86_64-linux/20.0.0-dev-1e423505/nokogiri-1.10.5/gem_make.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/llvm/native/bin/graalvm-native-clang -o conftest -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include/ruby/backward -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I. -Wimplicit-function-declaration -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-format-invalid-specifier -Wno-format-extra-args -ferror-limit=500 conftest.c -L. -L/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib -rpath /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/llvm/native/lib -L/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext -rpath /home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext -ltruffleruby -lpolyglot-mock " | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: int main(int argc, char **argv) | |
4: { | |
5: return 0; | |
6: } | |
/* end */ | |
"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/llvm/native/bin/graalvm-native-clang -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include/ruby/backward -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I. -Wimplicit-function-declaration -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-format-invalid-specifier -Wno-format-extra-args -ferror-limit=500 -o conftest.o -c conftest.c" | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: int main() {return 0;} | |
/* end */ | |
"pkg-config --exists libxml-2.0" | |
Process failed: # | |
package configuration for libxml-2.0 is not found | |
"pkg-config --exists libxslt" | |
Process failed: # | |
package configuration for libxslt is not found | |
"pkg-config --exists libexslt" | |
Process failed: # | |
package configuration for libexslt is not found | |
conftest.c:3:10: fatal error: 'libxml/xmlversion.h' file not found | |
#include | |
^~~~~~~~~~~~~~~~~~~~~ | |
1 error generated. | |
"/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/llvm/native/bin/graalvm-native-clang -E -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include/ruby/backward -I/home/nirvdrum/dev/workspaces/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/cext/include -I. -Wimplicit-function-declaration -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-format-invalid-specifier -Wno-format-extra-args -ferror-limit=500 -g -DXP_UNIX conftest.c -o conftest.i" | |
Process failed: # | |
checked program was: | |
/* begin */ | |
1: #include "ruby.h" | |
2: | |
3: #include | |
/* end */ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment