Getting mysql running

Now need to get MySQL installed. I am having the following trouble
installing

sudo gem install mysql – --with-mysql-config=/usr/bin/mysql_config

ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb --with-mysql-config=/usr/bin/mysql_config
extconf.rb:10:in `require’: no such file to load – mkmf (LoadError)
from extconf.rb:10

Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

Any ideas?

On Thu, Jul 29, 2010 at 11:28 AM, Dis T. [email protected] wrote:

/usr/bin/ruby1.8 extconf.rb --with-mysql-config=/usr/bin/mysql_config
extconf.rb:10:in `require’: no such file to load – mkmf (LoadError)
from extconf.rb:10

This error means you are missing ruby development libraries needed for
compilation.

apt-cache search ruby | grep dev


Greg D.
destiney.com | gregdonald.com

ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

sudo aptitude install libmysqlclient15-dev

(or whatever version the libmysqlclient is at for your system)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs