Installing MySql using Ruby Gems

I’m using Kubuntu Breezy and I’m trying to install MySql using Ruby I’m
using ruby 1.8.3 and gem 0.8.11

jimmyb@scooter:~$ sudo gem install mysql
Attempting local installation of ‘mysql’
Local gem file not found: mysql*.gem
Attempting remote installation of ‘mysql’
Updating Gem source index for: http://gems.rubyforge.org
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.
ruby extconf.rb install mysql\n

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

The gem_make.out file has only one line:
ruby extconf.rb install mysql

I opened the file ‘extconf.rb’ and commented out the required file
‘mkmf’
but I get the same error.

Any suggestions?

Jimmy Brock wrote:

I’m using Kubuntu Breezy and I’m trying to install MySql using Ruby I’m
using ruby 1.8.3 and gem 0.8.11

I opened the file ‘extconf.rb’ and commented out the required file
‘mkmf’
but I get the same error.

Any suggestions?

Did you sudo apt-get install ruby1.8-dev?

Alex Y. wrote:

Jimmy Brock wrote:

I’m using Kubuntu Breezy and I’m trying to install MySql using Ruby I’m
using ruby 1.8.3 and gem 0.8.11

I opened the file ‘extconf.rb’ and commented out the required file
‘mkmf’
but I get the same error.

Any suggestions?

Did you sudo apt-get install ruby1.8-dev?

That solved my problem.

Thanks a LOT!