Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gem install mysql error

3,840 views
Skip to first unread message

javach...@gmail.com

unread,
Dec 20, 2005, 6:18:27 AM12/20/05
to
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

Both in Linux and in Windows.

Any idea?

Thanks in advance. JC

Caleb Tennis

unread,
Dec 20, 2005, 6:32:07 AM12/20/05
to
Do you have the mysql client libraries installed?

javach...@gmail.com

unread,
Dec 20, 2005, 7:34:10 AM12/20/05
to
Caleb Tennis wrote:
> Do you have the mysql client libraries installed?

I have mysql server installed. Where do I get the "client" libraries?
Do I need to gem install mysql to use Rails?

Thanks.

Hampton

unread,
Dec 20, 2005, 9:07:55 AM12/20/05
to
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!

-hampton.

x1

unread,
Dec 20, 2005, 9:49:09 AM12/20/05
to
you dont need to install the mysql gem for rails... just configure
databases.yml (i believe is the file)

javach...@gmail.com

unread,
Dec 20, 2005, 10:03:11 AM12/20/05
to
Thank you guys. I will try once I get home and let you know.

Marcin Biegun

unread,
Jan 24, 2011, 1:03:44 PM1/24/11
to
Try this (Debian, Ubuntu):

# aptitude install libmysqlclient16-dev

--
Posted via http://www.ruby-forum.com/.

l.ariv...@gmail.com

unread,
May 7, 2013, 3:30:04 AM5/7/13
to
for my case, ubunt12.04 and rails2.3.2

sudo apt-get install libmysqlclient-dev

done the magick
0 new messages