From: Ezra Zygmuntowicz Date: 2006-11-27T05:13:31+09:00 Subject: Re: Problem reinstalling mysql gem On Nov 24, 2006, at 8:10 PM, Michael Satterwhite wrote: > 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 -- ez@engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)