From: Raul Parolari Date: 2007-11-12T06:04:08+09:00 Subject: Re: Help needed installing MySQL DBI Peter Vanderhaden wrote: > Raul, > I tried this, but I got the following error in step 2: > # ruby extconf.rb > extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) > from extconf.rb:1 > > The error is from the require 'mkmf' line in the extconf.rb script. How > can I find out what that is and where to get it? > Thanks again.... > Peter, I was wondering why you were executing that command, and I now saw that it is listed in the site. Now, the best when you install in Unix is to read the README file (or INSTALL, etc), because they are updated (not the instructions in the site from where you donwload; of course, glance at them, just in case, but go with the instructions in the distribution): In the README file under ruby-dbi, you will see that it says to do: ruby setup.rb config --with=dbi,dbd_pg, ... # it is an example ruby setup.rb setup ruby setup.rb install In your case, do this: $ sudo ruby setup.rb config --with=dbi,dbd_mysql $ sudo ruby setup.rb setup $ sudo ruby setup.rb install I hope that this helps, Raul -- Posted via http://www.ruby-forum.com/.