MacErwin:lib yves$ which gem
/usr/local/bin/gem
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'mysql'
LoadError: dlsym(0x1458c70, Init_mysql): symbol not found - /Users/
yves/.gem/ruby/1.8/gems/mysql-2.7/lib/mysql.bundle
from /Users/yves/.gem/ruby/1.8/gems/mysql-2.7/lib/mysql.bundle
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
36:in `require'
from (irb):2
On 30 oct, 11:24, Frederick Cheung <[EMAIL PROTECTED]> wrote:
> On 30 Oct 2008, at 10:13, Erwin wrote:
>
>
>
>
>
> > (running OS X 10.5.5, MySQL 5, Rails 2.1, Ruby 1.8.7)
>
> > I do not understand why after running :
>
> > ------
>
> > sudo gem update --system
> > Updating RubyGems
> > Nothing to update
>
> > sudo gem install rubygems-update
> > Successfully installed rubygems-update-1.3.1
> > 1 gem installed
>
> > sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/
> > mysql_config
> > Building native extensions. This could take a while...
> > Successfully installed mysql-2.7
> > 1 gem installed
>
> What does
> which gem
> say?
>
> Fred
>
>
>
> > and restarted my rails app, I still have this warning.....
>
> > DEPRECATION WARNING: You're using the Ruby-based MySQL library that
> > ships with Rails. This library will be REMOVED FROM RAILS 2.2. Please
> > switch to the offical mysql gem: `gem install mysql` See
> >http://www.rubyonrails.org/deprecationfor details. (called from
> > mysql_connection at /usr/local/lib/ruby/gems/1.8/gems/
> > activerecord-2.1.2/lib/active_record/connection_adapters/
> > mysql_adapter.rb:81)
>
> > what's missing ?
>
> > everything seems to be into : /usr/local/lib/ruby
--~--~---------~--~----~------------~-------~--~----~
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 [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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---