gem install rails -v 4.2.4
Fetching: activesupport-4.2.4.gem (100%)
Successfully installed activesupport-4.2.4
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: /home/kuronekocon/ruby/gems/gems/nokogiri-1.6.7.2/ext/nokogiri
/home/kuronekocon/.rbenv/versions/2.2.4/bin/ruby -r ./siteconf20160216-1901-h26lhv.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
*** 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/kuronekocon/.rbenv/versions/2.2.4/bin/$(RUBY_BASE_NAME)
--help
--clean
--use-system-libraries
/home/kuronekocon/.rbenv/versions/2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:319:in `to_specs': Could not find 'mini_portile2' (~> 2.0.0.rc2) among 9 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/kuronekocon/.gem/ruby/2.2.0:/home/kuronekocon/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0', execute `gem env` for more information
from /home/kuronekocon/.rbenv/versions/2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/dependency.rb:328:in `to_spec'
from /home/kuronekocon/.rbenv/versions/2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:65:in `gem'
from extconf.rb:396:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/kuronekocon/ruby/gems/extensions/x86_64-linux/2.2.0-static/nokogiri-1.6.7.2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/kuronekocon/ruby/gems/gems/nokogiri-1.6.7.2 for inspection.
Results logged to /home/kuronekocon/ruby/gems/extensions/x86_64-linux/2.2.0-static/nokogiri-1.6.7.2/gem_make.outgem list
*** LOCAL GEMS ***
actionmailer (4.2.5.1)
actionpack (4.2.5.1)
actionview (4.2.5.1)
activejob (4.2.5.1)
activemodel (4.2.5.1)
activerecord (4.2.5.1)
activesupport (4.2.5.1, 4.2.5, 4.2.4)
arel (7.0.0, 6.0.3)
bigdecimal (1.2.7, 1.2.6)
builder (3.2.2)
bundler (1.11.2)
concurrent-ruby (1.0.0)
erubis (2.7.0)
globalid (0.3.6)
i18n (0.7.0)
io-console (0.4.5, 0.4.3)
json (1.8.3, 1.8.1)
loofah (2.0.3)
mail (2.6.3)
mime-types (3.0, 2.99)
mime-types-data (3.2015.1120)
mini_portile2 (2.1.0, 2.0.0)
minitest (5.8.4)
psych (2.0.17, 2.0.8)
rack (1.6.4)
rack-test (0.6.3)
rails (4.2.5.1)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.3)
railties (4.2.5.1)
rake (10.5.0, 10.4.2)
rdoc (4.2.2, 4.2.0)
rubygems-update (2.5.2)
sprockets (3.5.2)
sprockets-rails (3.0.1)
thor (0.19.1)
thread_safe (0.3.5)
tzinfo (1.2.2)So it looks like I have mini_portile2 installed, but Nokogiri can't find it?
I've tried installing different versions of Ruby (2.3.0) and Rails (4.2.5), but I get the same error. I was able to install Rails under another domain/user account on the same VPS server at the beginning of the year. Perhaps I need specific versions to install properly?
Mark O.
--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at https://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.
gem install rails -v 4.2.5
Fetching: activesupport-4.2.5.gem (100%)
Successfully installed activesupport-4.2.5
Fetching: mini_portile2-2.0.0.gem (100%)
Successfully installed mini_portile2-2.0.0
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
current directory: /home/kuronekocon/ruby/gems/gems/nokogiri-1.6.7.2/ext/nokogiri
/home/kuronekocon/.rbenv/versions/2.2.4/bin/ruby -r ./siteconf20160216-29213-16t7m33.rb extconf.rb
checking if the C compiler accepts ... yes
--
gem uninstall mini_portile2kuronekocon@kuronekocon.com [~]# gem list
*** LOCAL GEMS ***
actionmailer (4.2.5.1)
actionpack (4.2.5.1)
actionview (4.2.5.1)
activejob (4.2.5.1)
activemodel (4.2.5.1)
activerecord (4.2.5.1)
activesupport (4.2.5.1, 4.2.5)
arel (7.0.0, 6.0.3)
bigdecimal (1.2.7, 1.2.6)
builder (3.2.2)
bundler (1.11.2)
concurrent-ruby (1.0.0)
erubis (2.7.0)
globalid (0.3.6)
i18n (0.7.0)
io-console (0.4.5, 0.4.3)
json (1.8.3, 1.8.1)
loofah (2.0.3)
mail (2.6.3)
mime-types (3.0, 2.99)
mime-types-data (3.2015.1120)
minitest (5.8.4)
psych (2.0.17, 2.0.8)
rack (1.6.4)
rack-test (0.6.3)
rails (4.2.5.1)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.3)
railties (4.2.5.1)
rake (10.5.0, 10.4.2)
rdoc (4.2.2, 4.2.0)
rubygems-update (2.5.2)
sprockets (3.5.2)
sprockets-rails (3.0.1)
thor (0.19.1)
thread_safe (0.3.5)
tzinfo (1.2.2)
kuronekocon@kuronekocon.com [~]# gem install bundler
Successfully installed bundler-1.11.2
1 gem installed
kuronekocon@kuronekocon.com [~]# gem env home
/home/kuronekocon/ruby/gems