Unable to install vagrant-aws on Mavericks and Ubuntu 12.04
$ vagrant plugin install vagrant-aws
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
An error occurred while installing nokogiri (1.6.2), and Bundler cannot continue.
Make sure that gem install nokogiri -v '1.6.2' succeeds before bundling.
I can successfully gem install nokogiri -v '1.6.2' independently
The error from ~/.vagrant.d/gems/gems/nokogiri-1.6.2/ext/nokogiri/mkmf.log is
"clang -o conftest -I/Applications/Vagrant/embedded/include/ruby-2.0.0/universal-darwin12.5.0 -I/Applications/Vagrant/embedded/include/ruby-2.0.0/ruby/backward -I/Applications/Vagrant/embedded/include/ruby-2.0.0 -I. -I/Users/svarakhedi/.vagrant.d/gems/gems/nokogiri-1.6.2/ports/x86_64-apple-darwin12.5.0/libxslt/1.1.28/include -I/Users/svarakhedi/.vagrant.d/gems/gems/nokogiri-1.6.2/ports/x86_64-apple-darwin12.5.0/libxml2/2.8.0/include/libxml2 -I/usr/include -I/Users/svarakhedi/.vagrant.d/gems/gems/nokogiri-1.6.2/ports/x86_64-apple-darwin12.5.0/libxml2/2.8.0/include/libxml2 -I/usr/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/vagrant-substrate/staging/embedded/include -DNOKOGIRI_LIBXML2_PATH="/Users/svarakhedi/.vagrant.d/gems/gems/nokogiri-1.6.2/ports/x86_64-apple-darwin12.5.0/libxml2/2.8.0" -DNOKOGIRI_LIBXSLT_PATH="/Users/svarakhedi/.vagrant.d/gems/gems/nokogiri-1.6.2/ports/x86_64-apple-darwin12.5.0/libxslt/1.1.28" -I/vagrant-substrate/staging/embedded/include -fno-common -pipe -g -DXP_UNIX -DNOKOGIRI_USE_PACKAGED_LIBRARIES conftest.c -L/Users/svarakhedi/.vagrant.d/gems/gems/nokogiri-1.6.2/ports/x86_64-apple-darwin12.5.0/libxml2/2.8.0/lib -L/Users/svarakhedi/.vagrant.d/gems/gems/nokogiri-1.6.2/ports/x86_64-apple-darwin12.5.0/libxslt/1.1.28/lib -L/vagrant-substrate/staging/embedded/lib -L/usr/lib -L. -L/Applications/Vagrant/embedded/lib -L. -L/vagrant-substrate/staging/embedded/lib -Wl,-rpath,@loader_path/../lib -Wl,-rpath,@executable_path/../lib -fstack-protector -L/vagrant-substrate/staging/embedded/lib -Wno-error=unused-command-line-argument-hard-error-in-future -lexslt -lm -liconv -lpthread -lz -lxml2 -lxslt -lm -liconv -lpthread -lz -lxml2 -llzma -lruby.2.0.0 -llibxml2 -lexslt -lm -liconv -lpthread -lz -lxml2 -lxslt -lm -liconv -lpthread -lz -lxml2 -llzma -lpthread -ldl -lobjc " conftest.c:7:27: error: too few arguments to function call, single argument 'cur' was not specified int t(void) { xmlParseDoc(); return 0; } ~~~~~~~~~~~ ^ /Users/svarakhedi/.vagrant.d/gems/gems/nokogiri-1.6.2/ports/x86_64-apple-darwin12.5.0/libxml2/2.8.0/include/libxml2/libxml/parser.h:841:11: note: 'xmlParseDoc' declared here XMLPUBFUN xmlDocPtr XMLCALL
I am having the same nokogiri 1.6.2 error with Ubuntu 12.04. The mkmf.log just has a warning this time though
gcc -o conftest -I/opt/vagrant/embedded/include/ruby-2.0.0/x86_64-linux -I/opt/vagrant/embedded/include/ruby-2.0.0/ruby/backward -I/opt/vagrant/embedded/include/ruby-2.0.0 -I. -I/usr/include -I/vagrant-substrate/staging/embedded/include -I/vagrant-substrate/staging/embedded/include -fPIC -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline conftest.c -L/usr/lib -Wl,-R/usr/lib -L/vagrant-substrate/staging/embedded/lib -Wl,-R/vagrant-substrate/staging/embedded/lib -L. -L/opt/vagrant/embedded/lib -Wl,-R/opt/vagrant/embedded/lib -L. -L/vagrant-substrate/staging/embedded/lib -fstack-protector -rdynamic -Wl,-export-dynamic -L/vagrant-substrate/staging/embedded/lib -Wl,-R/vagrant-substrate/staging/embedded/lib '-Wl,-rpath,/../lib' -Wl,-R -Wl,/opt/vagrant/embedded/lib -L/opt/vagrant/embedded/lib -lruby -lpthread -lrt -ldl -lcrypt -lm -lc " In file included from /opt/vagrant/embedded/include/ruby-2.0.0/ruby.h:33:0, from conftest.c:1: /opt/vagrant/embedded/include/ruby-2.0.0/ruby/ruby.h: In function ‘rb_float_value’: /opt/vagrant/embedded/include/ruby-2.0.0/ruby/ruby.h:777:6: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] /opt/vagrant/embedded/include/ruby-2.0.0/ruby/ruby.h:777:6: warning: negative integer implicitly converted to unsigned type [-Wsign-conversion] conftest.c: In function ‘t’: conftest.c:7:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
Experiencing the same issue on OSX 10.9.2 but also able to install nokogiri 1.6.2 independently.
Note: nokogiri 1.6.2 was released on the 12/05 (yesterday) so likely the version bump is causing this.
Ditto on this, exhausted SO on this also:
http://stackoverflow.com/questions/22413689/vagrant-cannot-install-nokogiri-dependent-plugins http://stackoverflow.com/questions/6753000/nokogiri-error-failed-to-build-gem-native-extension?lq=1
Thanks Wroked for me as per per the first SO link: NOKOGIRI_USE_SYSTEM_LIBRARIES=1 vagrant plugin install vagrant-aws
Whoa, yes, I did that previously and it did not. Something I did in-between must of also helped...