I recently downgraded from ruby 1.8.7-p72 to 1.8.6-p287 and now whenever i try to access the mysqldatabase my rails server (WEBrick) crashes with the following error: ruby: symbol lookup error: /usr/lib/ruby/site_ruby/1.8/i686-linux/mysql.so: undefined symbol: rb_str_set_len i first thought it was some sort of linking error or something due to the downgrade, but i just made another DB from scratch and keep getting the same result. Does anyone have an idea of what could be the problem or how to fix it? -R -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Probably because your mysql gem has been built against 1.8.6. I''d try reinstalling the mysql gem. Fred Sent from my iPhone On 24 Nov 2008, at 19:18, Rene Cienfuegos <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org > wrote:> > I recently downgraded from ruby 1.8.7-p72 to 1.8.6-p287 and now > whenever > i try to access the mysqldatabase my rails server (WEBrick) crashes > with > the following error: > > ruby: symbol lookup error: > /usr/lib/ruby/site_ruby/1.8/i686-linux/mysql.so: undefined symbol: > rb_str_set_len > > i first thought it was some sort of linking error or something due to > the downgrade, but i just made another DB from scratch and keep > getting > the same result. > > Does anyone have an idea of what could be the problem or how to fix > it? > > -R > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I tried that too, but didn''t work. The thing that i did right after i posted the message was to remove the mysql.so in /usr/lib/ruby/site_ruby/1.8/i686-linux/ probably not the best solution, but it worked. thanks for the answer -R -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---