From: Phillip Gawlowski Date: 2010-12-07T16:27:16+09:00 Subject: Re: install mysql problem On Tue, Dec 7, 2010 at 8:15 AM, Pen Ttt wrote: > in my console, > pt@pt:~$ sudo gem install mysql > [sudo] password for pt: > 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 > pt@pt:~$ gem -v > 1.3.7 > pt@pt:~$ > what's wrong? You are missing the headerfiles for MySQL. If you re on a binary distribution, "apt-get install mysql-dev" or "yum install mysql-dev" should make the gem install work (adjust the installation command to your distribution of *NIX of choice, of course). -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.