As I need to upgrade a Rails app to 3.1 , I am trying to deploy it on a remote production server ( Linux Debian, after installing Rails 3.0.9 under rvm with all needed gems including mysql2 version 0.2.18 used by the app) after deployment, starting the app, I get a Load error w mysql2... ** [out :: www.mydomain.com] /var/www/vhosts/mydomain.com/rails/ testsbga/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.18/lib/mysql2.rb: 9:in `require'': libmysqlclient_r.so.15: cannot open shared object file: No such file or directory - /var/www/vhosts/mydomain.com/rails/ testsbga/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.18/lib/mysql2/ mysql2.so (LoadError) ** [out :: www.mydomain.com] from /var/www/vhosts/mydomain.com/rails/ testsbga/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.18/lib/mysql2.rb: 9:in `<top (required)>'' I surely forgot something when install mysql2 w this gem set ... but I don''t see what .. ( I am using the same server w Rails 3.1 wo any problem...) thanks for your feedback -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Add to your Gemfile: gem ''mysql'' then run `bundle`. On 14 янв, 17:25, Erwin <yves_duf...-ee4meeAH724@public.gmane.org> wrote:> As I need to upgrade a Rails app to 3.1 , I am trying to deploy it on > a remote production server ( Linux Debian, after installing Rails > 3.0.9 under rvm with all needed gems including mysql2 version 0.2.18 > used by the app) > > after deployment, starting the app, I get a Load error w mysql2... > > ** [out ::www.mydomain.com] /var/www/vhosts/mydomain.com/rails/ > testsbga/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.18/lib/mysql2.rb: > 9:in `require'': libmysqlclient_r.so.15: cannot open shared object > file: No such file or directory - /var/www/vhosts/mydomain.com/rails/ > testsbga/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.18/lib/mysql2/ > mysql2.so (LoadError) > ** [out ::www.mydomain.com] from /var/www/vhosts/mydomain.com/rails/ > testsbga/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.18/lib/mysql2.rb: > 9:in `<top (required)>'' > > I surely forgot something when install mysql2 w this gem set ... > but I don''t see what .. > > ( I am using the same server w Rails 3.1 wo any problem...) > > thanks for your feedback-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
thanks , actually was an issue with rvm gem set, fixed ( I cloned my localhost gem set ..) On Jan 14, 10:31 pm, Alex Mercer <alexey.boby...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Add to your Gemfile: > gem ''mysql'' > then run `bundle`. > > On 14 янв, 17:25, Erwin <yves_duf...-ee4meeAH724@public.gmane.org> wrote: > > > > > > > > > As I need to upgrade a Rails app to 3.1 , I am trying to deploy it on > > a remote production server ( Linux Debian, after installing Rails > > 3.0.9 under rvm with all needed gems including mysql2 version 0.2.18 > > used by the app) > > > after deployment, starting the app, I get a Load error w mysql2... > > > ** [out ::www.mydomain.com] /var/www/vhosts/mydomain.com/rails/ > > testsbga/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.18/lib/mysql2.rb: > > 9:in `require'': libmysqlclient_r.so.15: cannot open shared object > > file: No such file or directory - /var/www/vhosts/mydomain.com/rails/ > > testsbga/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.18/lib/mysql2/ > > mysql2.so (LoadError) > > ** [out ::www.mydomain.com] from /var/www/vhosts/mydomain.com/rails/ > > testsbga/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.18/lib/mysql2.rb: > > 9:in `<top (required)>'' > > > I surely forgot something when install mysql2 w this gem set ... > > but I don''t see what .. > > > ( I am using the same server w Rails 3.1 wo any problem...) > > > thanks for your feedback-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Maybe Matching Threads
- ruby-debug19 error undefined symbol: ruby_current_thread
- Bundler - how to re-install all gems after os update?
- Advice needed --- Best way to get mysql2 gem installed to interact with Mysql Database?
- connect': Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) (Mysql2
- mysql2 gem instalmlation on Ubuntu 10.04/Windows XP having Ruby 1.9.2