Problem reinstalling mysql gem

  • Thread starter Michael Satterwhite
  • Start date
M

Michael Satterwhite

I had to reload my system and am trying to bring up ruby on my kubuntu
system. I've compiled / installed ruby and rubygems. I then run
sudo gem install mysql -y

I select 2 when it asks for mysql 2.7 (ruby). It then runs a bit, then I
get the following errors:

ERROR: Failed to build gem native extension.
Gem files will remain installed in
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.

Results logged to
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

I have no idea what to look at other than the file that supposedly it
was logged to, but the "gem_make.out" file has absolutely nothing in it
(actually, it has 1 byte, but I think it's a space)

Can anyone offer any help.
As always, thanks in advance.
---Michael
 
M

Michael Satterwhite

Carl said:
Hi Michael,

If you are running on osx you probably have the compile problem listed
on this site:

Good try, but I'm running Kubuntu Linux.
 
C

Carl Woodward

Ahh k,

not sure then, you will need to get the error out or you can use apt
to install it?

Cheers,
Carl.
 
M

Michael Satterwhite

Carl said:
Ahh k,

not sure then, you will need to get the error out or you can use apt
to install it?

Getting the error out seems to be a problem. It tells me where it has
logged it, but it didn't put anything in that file.
 
S

Stefan Mahlitz

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael said:
Getting the error out seems to be a problem. It tells me where it has
logged it, but it didn't put anything in that file.

Try to install the Ubuntu-Mysql development packages. I guess it is
libmysqlclient12-dev, but I'm not sure about this.

If gem_make.out is empty you can have a look into mkmf.log (same directory).

Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFFaJrL9S2Eui6zfdQRAtGlAJ0Un51HeS5yCQhnAg1uNye0Vh65EACgraIB
2a09b1o5XuAiZDUtjSMyKU8=
=de8O
-----END PGP SIGNATURE-----
 
E

Ezra Zygmuntowicz

I had to reload my system and am trying to bring up ruby on my kubuntu
system. I've compiled / installed ruby and rubygems. I then run
sudo gem install mysql -y

I select 2 when it asks for mysql 2.7 (ruby). It then runs a bit,
then I
get the following errors:

ERROR: Failed to build gem native extension.
Gem files will remain installed in
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.

Results logged to
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

I have no idea what to look at other than the file that supposedly it
was logged to, but the "gem_make.out" file has absolutely nothing
in it
(actually, it has 1 byte, but I think it's a space)

Can anyone offer any help.
As always, thanks in advance.
---Michael


Hey Michael-

Run this command:

$ which mysql_config

If that returns a path to mysql_config then you can install the
mysql gem with this command:

$ sudo gem install mysql -- --with-mysql-config

If you don't have mysql_config in your path then you may be better
off trying to install the .deb package for libmysql-ruby from apt.

Cheers-

-- Ezra Zygmuntowicz
-- Lead Rails Evangelist
-- (e-mail address removed)
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top