Hi all I have a Gemfile with this value gem ''mysql2'' but when I run this command ''$ bundle install'' on my host they said that "The command "bundle install --local" seems to be returning mysql2 dependency error now. Unfortunately mysql2 gem requires mysql 5.1+ ( refer: https://github.com/brianmario/mysql2/issues/109 ) whereas the server mysql version is 4.1.2. Since you are on a shared server, it is not possible to upgrade mysql version as it may affect many other users in the same server." how can I replace the expression gem ''mysql2'' created by default when I run ''rails new mystore -d=mysql'' to run with mysql 4.1.2? I am trying to install Spree following this link http://spreecommerce.com/documentation/getting_started.html Please advise! -- Posted via http://www.ruby-forum.com/. -- 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.
Frederick Cheung
2011-Apr-21 07:34 UTC
Re: GEMFile gem ''mysql2'' and mysql version is 4.1.2
On 21 Apr 2011, at 02:11, Pepe Sanchez <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi all > > I have a Gemfile with this value > > gem ''mysql2'' > > > but when I run this command ''$ bundle install'' on my host they said > that > > "The command "bundle install --local" seems to be returning mysql2 > dependency error now. Unfortunately mysql2 gem requires mysql 5.1+ ( > refer: https://github.com/brianmario/mysql2/issues/109 ) whereas the > server mysql version is 4.1.2. Since you are on a shared server, it is > not possible to upgrade mysql version as it may affect many other users > in the same server." > > how can I replace the expression > > gem ''mysql2'' > > created by default when I run > > ''rails new mystore -d=mysql'' > > to run with mysql 4.1.2?You can try changing mysql2 to mysql both in your gemfile and in your database.yml Mysql 4.1.2 is seriously old (may 2004) and it looks like it was an alpha release of the 4.1 series rather than a production ready version. The whole 4.1 series has been unsupported for years. That your host only provides this version suggests that they really don''t care that much Fred> > I am trying to install Spree following this link > http://spreecommerce.com/documentation/getting_started.html > > Please advise! > > -- > Posted via http://www.ruby-forum.com/. > > -- > 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. >-- 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.