There''s a common problem when you run bundle install and it tries to install the msql2 gem but fails when mysql itself is not installed on the machine. What if you have mysql installed on a different machine (because you don''t want your web application which is accessible to the public and your mysql database on the same machine)? In this case, do you still have to install mysql on the web application machine just for the sole purpose of making this error go away? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Walter Lee Davis
2013-Apr-27 18:45 UTC
Re: mysql on different server than rails application
On Apr 27, 2013, at 2:31 PM, John Merlino wrote:> There''s a common problem when you run bundle install and it tries to > install the msql2 gem but fails when mysql itself is not installed on > the machine. What if you have mysql installed on a different machine > (because you don''t want your web application which is accessible to > the public and your mysql database on the same machine)? In this case, > do you still have to install mysql on the web application machine just > for the sole purpose of making this error go away?You have to install the MySQL **client** command-line software on your Rails server, so the mysql2 gem will build clean against it. Be sure to add the dev headers, too. Walter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.