I am trying to install a package (bundle install), Ruby 1.8.7 is installed in Ubuntu 14.0.4. And he cannot install the package and throws an error:
An error occurred while installing nokogiri (1.4.7), and Bundler cannot
continue. Make sure that 'gem install nokogiri -v '1.4.7'' succeeds before bundling.
so now i tried to get nokogiri 1.4.7 s but this failed showed
$ sudo gem install nokogiri -v '1.4.7'
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
so I tried again to get this libxml2, but ended up getting the following message:
$ sudo gem install libxml2
ERROR: Could not find a valid gem 'libxml2' (>= 0) in any repository
ERROR: Possible alternatives: libxml4r
$ sudo gem install libxml4r
ERROR: Error installing libxml4r
extconf failure: need libxml2.
I tried with the link :
$ gem install nokogiri
$ bundle install
but still the same nokogiri mistake coming again. I have no idea how to proceed. Help me please!!!!
source
share