Hi, Try to execute:
export LD_LIBRARY_PATH=/usr/local/mysql5/lib:$LD_LIBRARY_PATH Other that this, I don't have any other suggestion for you :) And yes, you are right, on linux it should be probably added to /etc/profile or ~/.bash_profile. On 3/22/07, Nick McFarlane <[EMAIL PROTECTED]> wrote: > > OK, I'm not the sharpest tool in the box!! > > That should have been: > export LD_LIBRARY_PATH=/usr/local/mysql5/lib/mysql:$LD_LIBRARY_PATH > > I added it to /etc/profile and /etc/bashrc (just to be sure) on my > deployment machine. > > So now this bit works: > >irb > >require 'mysql.so' > => true > > but the application doesn't. I still get this error in production.log: > > RuntimeError (Mysql not loaded): > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/mysql_adapter.rb:7:in > `define_all_hashes_method!' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/mysql_adapter.rb:60:in > `require_mysql' > > /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.1/lib/active_record/connection_adapters/mysql_adapter.rb:78:in > `mysql_connection' > .... > > Does this mean that the path command worked for me but not gem? Strange... > Thanks > Nick -- Aurelian Web: http://www.locknet.ro --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-deployment?hl=en -~----------~----~----~----~------~----~------~--~---
