ruby extconf.rb install mysql
checking for mysql_query() in mysqlclient.lib... no
hecking for main() in m.lib... yes
checking for mysql_query() in mysqlclient.lib... no
checking for main() in z.lib... no
checking for mysql_query() in mysqlclient.lib... no
checking for main() in socket.lib... no
checking for mysql_query() in mysqlclient.lib... no
checking for main() in nsl.lib... no
checking for mysql_query() in mysqlclient.lib... no
On Dec 20, 2005, at 6:22 AM, javachallenge@gmail.com wrote:
gem install mysql
generates this errors:
ruby extconf.rb install mysql
checking for mysql_query() in mysqlclient.lib... no
hecking for main() in m.lib... yes
checking for mysql_query() in mysqlclient.lib... no
checking for main() in z.lib... no
checking for mysql_query() in mysqlclient.lib... no
checking for main() in socket.lib... no
checking for mysql_query() in mysqlclient.lib... no
checking for main() in nsl.lib... no
checking for mysql_query() in mysqlclient.lib... no
I solved the problem by using 'ruby-mysql' gem instead of 'mysql'
Thanks Aleksi. This solved my problem. (I'm using Mac 10.6.8)
Regarding MAMP...
And by the way, I tried to use rails and passenger with MAMP and it was
really pain in the ass and won't recommend it.
... I decided to try to get things to work with MAMP and I was able to
get is up and running. Here's how. I installed the ruby-mysql gem with
the following configuration. (NO LINE BREAKS)
I've had similar problems on Ubuntu. However, luckily Ubuntu provides a
package called rubymysql (or something like that) which does the trick,
and I assume there is a .deb and a .rpm for it.
I installed the client libraries and it still didn't help on my linux
box. A bit frustrating, honestly. But, I finally did get it working.
Its worth it!
you dont need to install the mysql gem for rails... just configure
databases.yml (i believe is the file)
···
On 12/20/05, Hampton <hcatlin@gmail.com> wrote:
Java,
I've had similar problems on Ubuntu. However, luckily Ubuntu provides a
package called rubymysql (or something like that) which does the trick,
and I assume there is a .deb and a .rpm for it.
I installed the client libraries and it still didn't help on my linux
box. A bit frustrating, honestly. But, I finally did get it working.
Its worth it!