Showing posts with label Gem. Show all posts
Showing posts with label Gem. Show all posts

Friday, May 11, 2012

An error occured while installing rmagick - Rails 3 Gem(Ubuntu 11.10)

Issue while installing rmagick gem:

An error occured while installing rmagick (2.13.1), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.

Solution would be installing rmagick code library.

Possible solution for this issue would be installing postgresql-server for building a server-side extension or libpq-dev for building a client-side application
$ sudo apt-get install libmagickcore-dev libmagickwand-dev

$ sudo apt-get install libmagickcore-dev libmagickwand-dev


Saturday, April 21, 2012

An error occured while installing pg (0.13.2), and Bundler cannot continue - Rails 3 & PostgreSQL issues


"An error occured while installing pg (0.13.2), and Bundler cannot continue.
Make sure that `gem install pg -v '0.13.2'` succeeds before bundling"

Reason for this error could be "failed to build gem native extension", so make sure you have installed PostgreSQL headers properly.

For Ubuntu/Linux flavor, Use following command to install PostgreSQL client and development package

sudo apt-get install libpq-dev

Hope it may helpful to rectify you're problem with rails 3 application with PostgreSQL.

An error occured while installing mysql2 (0.3.11), and Bundler cannot continue

"An error occured while installing mysql2 (0.3.11), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling."

Reason for this error could be due to lack of mysql header, so make sure you have installed mysql headers properly.

For Ubuntu/Linux flavor, Use following command to install MySQL client and development package

sudo apt-get install mysql-client libmysqlclient-dev

Hope it may helpful to rectify you're problem.