Ruby and gem version compatibility -


i had ssh-session ubuntu server. latest available ruby package -full apt-get install ruby1.9.1-full. after apt-get install rubygems1.9.1 problem that:

root@...:~# gem install nokogiri error:  error installing nokogiri:     nokogiri requires ruby version >= 1.9.2 

and didn't know, version of nokogiri had install. tried guess:

root@...:~# gem install nokogiri -v 1.5.10 building native extensions.  take while... error:  error installing nokogiri:     error: failed build gem native extension.  ..........bla..bla..bla... 

and had switch rvm way (there had 1.9.3 , no further problems gems needed).

but anyway prefer non-rvm way, question is: how know, version of gem compatible ruby?

inspecting changlog.rdoc of nokogiri in source:

1.6.0.rc1 / 2013-04-14

this release based on v1.5.9, , not contain fixes mentioned in notes v1.5.10.

   notes         mini_portile runtime dependency         ruby 1.9.2 , higher required     features         (mri) source code libxml 2.8.0 , libxslt 1.2.26 packaged gem. these libraries compiled @ gem install time unless environment variable nokogiri_use_system_libraries set. version_info (also `nokogiri -v`) exposes whether libxml compiled packaged source, or system library used.         (windows) libxml upgraded 2.8.0     deprecations         support ruby 1.8.7 , prior has been dropped 

you may give previous version try, 1.5.10 / 2013-06-07

for errors of building native extension, shall check build log of nokogiri. it's system missed library dependencies, such libxml, libyaml, etc. rvm may handle dependency you, in manner, don't error while building rvm.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -