Here is the error running bundle install vendor/gems on server:
Installing nokogiri (1.5.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR
For Ubuntu:
sudo apt-get install libxml2 libxml2-dev libxslt-dev zlib1g-dev
sudo gem install nokogiri -v '1.8.2' -- --use-system-libraries
For MacOS:
brew install libxml2
gem install nokogiri -v '1.8.2' -- --use-system-libraries \
--with-xml2-include=$(brew --prefix libxml2)/include/libxml2
You need to have all the necessary libraries installed on your machine. When you installed RVM , it should have listed this for you. On the current version of rvm, you can run rvm requirements
to see the exact list. Right now, that list is:
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion