On 2 Mar 2009, at 3:44pm, Conrad Taylor wrote:

> On Mon, Mar 2, 2009 at 7:35 AM, Ian Piper <[email protected]> wrote:
>
> On 2 Mar 2009, at 3:21pm, Conrad Taylor wrote:
>
> > So, where did you install MySQL and what version of it did you
> > install?
> >
> > -Conrad
>
> /usr/local/mysql  - that was the location that the installer chose. I
> am currently running MySQL version 5.0.45 on an Intel iMac with Mac OS
> X 10.5.6. And I haven't changed anything recently apart from upgrading
> from Rails 2.1.0 (where things worked fine) to Rails 2.2.2 (where they
> don't).
>
> :-)
>
> OK, where is the following file located:
>
> mysql_config
>
> Once you located the parent directory of the above file, you should  
> be able to
> do the following:
>
> sudo gem install kwatch-mysql-ruby -- --with-mysql- 
> config=<insert_parent_directory_here>/mysql_config
>

Thanks - unfortunately, this didn't work... here is the transcript:

=====
frost:euops ian$ which mysql_config
/usr/local/mysql/bin/mysql_config
frost:euops ian$ sudo gem install kwatch-mysql-ruby -- --with-mysql- 
config=/usr/local/mysql/bin/mysql_config
Building native extensions.  This could take a while...
Successfully installed kwatch-mysql-ruby-2.8.1
1 gem installed
frost:euops ian$ rake db:create:all
(in /Users/ian/projects/rails/euops)
!!! The bundled mysql.rb driver has been removed from Rails 2.2.  
Please install the mysql gem and try again: gem install mysql.
rake aborted!
dlopen(/Library/Ruby/Gems/1.8/gems/kwatch-mysql-ruby-2.8.1/lib/ 
mysql.bundle, 9): Library not loaded: /usr/local/mysql/lib/mysql/ 
libmysqlclient.15.dylib
   Referenced from: /Library/Ruby/Gems/1.8/gems/kwatch-mysql- 
ruby-2.8.1/lib/mysql.bundle
   Reason: image not found - /Library/Ruby/Gems/1.8/gems/kwatch-mysql- 
ruby-2.8.1/lib/mysql.bundle
=====

though the bundle is there:

=====
frost:euops ian$ ls -al /Library/Ruby/Gems/1.8/gems/kwatch-mysql- 
ruby-2.8.1/lib/
total 352
drwxr-xr-x   3 root  admin     102  2 Mar 15:50 .
drwxr-xr-x  12 root  admin     408  2 Mar 15:50 ..
-rwxr-xr-x   1 root  admin  176560  2 Mar 15:50 mysql.bundle
=====

Would it make sense to completely clear out my Rails installation and  
start again?

BTW, regarding Robert's posting about architecture flags, I have never  
done this on my Intel Macs and never previously had a problem. So I  
don't think that's the answer (though I could be wrong - wouldn't be  
the first time).



Ian.
--





--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to