ruby on rails – Use compiled system MySql gem in production – Education Career Blog

With Rails 2.8 I am using a system gem compiled on a Solaris server, used as production. Rails 3 uses bundler and when I deploy with Capistrano and execute bundle install, bundler is not capable to install that gem. MySql gem must be compiled from source as I documented here: http://riccardotacconi.blogspot.com/2009/10/how-to-install-mysqlruby-on-solaris.html. Is there a way to tell to bundler/Rails3 to use the system MySql gem? This problem is blocking my deployment problem and crashing the applicaiton.

,

You can define where you gem is whith :path

gem 'mysql', :path => '/path_to_mysql_in_system'

Leave a Comment