From: Rich McGrath Date: 2010-05-06T01:35:11+09:00 Subject: Re: sudo gem install mysql problem --0016e64cd7ecda46da0485db686d Content-Type: text/plain; charset=ISO-8859-1 This Doc might help. https://help.ubuntu.com/community/RubyOnRails Rich On Wed, May 5, 2010 at 12:30 PM, Luis Lavena wrote: > On May 5, 10:41 am, Pen Ttt wrote: > > today i have installed ubuntu10.04. > > pt@pt-laptop:~$ ruby -v > > ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] > > pt@pt-laptop:~$ gem -v > > 1.3.5 > > pt@pt-laptop:~$ sudo gem install mysql > > Building native extensions. This could take a while... > > ERROR: Error installing mysql: > > ERROR: Failed to build gem native extension. > > > > /usr/bin/ruby1.8 extconf.rb > > extconf.rb:10:in `require': no such file to load -- mkmf (LoadError) > > from extconf.rb:10 > > > > Gem files will remain installed in /var/lib/gems/1.8/gems/mysql-2.8.1 > > for inspection. > > Results logged to > > /var/lib/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out > > > > how to sovle the problem? > > You need a full Ruby installation, from the path "/var/lib" looks like > you're running Ubuntu. > > Please install ruby-dev package and try again. > > Also, you need mysql and libmysql-dev packages to compile. > > -- > Luis Lavena > > -- Rich McGrath Tech Lead for Bitmob.com rich.mcgrath@bitmob.com www.Bitmob.com www.twitter.com/Bitmobrich --0016e64cd7ecda46da0485db686d--