This post is for documenting two gem installation issues I got when reinstalling an old project. Running bundle update results to two issues on gem:

Note

Again, this is an old installation of rails gems. Chances are these issues might have been resolved by newer versions, though based on experience, this gem errors are very common.

The most usual reason why the installation won't proceed is that some libraries are not found on the system thus requires you install them.

Please note that the steps below are done in Ubuntu environment. A different approach or library version might be needed for other operating systems

An error occurred while installing mysql (2.9.1)

Exact Error:
An error occurred while installing mysql (2.9.1), and Bundler cannot continue.
Make sure that `gem install mysql '2.9.1'` succeeds before bundling.

Command in Console:
sudo apt-get install mysql-server mysql-client libmysqlclient-dev

An error occurred while installing eventmachine (1.0.3)

Exact Error:
An error occurred while installing eventmachine (1.0.3), and Bundler cannot continue.
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.

Command in Console:
sudo apt-get install zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev

No comments :

Post a Comment