Forum: Ruby on Rails Strange error when installing mysql

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B3683eda561564f831b128b8e8105a5f?d=identicon&s=25 Kristian Frost (Guest)
on 2007-06-15 12:06
Hello everyone,

I am getting this error when i am trying to install the mysql driver.

I do the following: sudo gem install mysql, i chose number 3 and then i
get this error:

Building native extensions.  This could take a while...
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
        from extconf.rb:1

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

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

Any ideas how to fix this?

Thanks in advance.

E4dad3c2612b4df51d0771c878c88ad2?d=identicon&s=25 Jochem Kossen (Guest)
on 2007-06-15 12:35
(Received via mailing list)
You're missing the ruby development headers. If this is a Debian based
system, or Ubuntu, you need to install the ruby1.8-dev package (and
libmysqlclient15-dev for mysql itself).


Jochem Kossen
This topic is locked and can not be replied to.