Peter,
what os are you running?

sounds like you need to install the ruby1.8-dev package
should be something simple like

apt-get install ruby1.8-dev


http://rubyforge.org/forum/forum.php?thread_id=4161&forum_id=4050


On Nov 11, 2007, at 3:36 PM, 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....
>
> Raul Parolari wrote:
>> Peter Vanderhaden wrote:
>>> Raul,
>>> Thanks the reply.  Before I got your reply, I installed the DBI  
>>> package
>>> so that I could write Ruby scripts that access MySQL databases.   
>>> When I
>>> attempt to run a test script, I get the
>>> following error:
>>>
>>> /usr/local/lib/site_ruby/1.8/dbi.rb:344:in `load_driver': Could  
>>> not load
>>> driver (no such file to load -- mysql) (DBI::InterfaceError)
>>>         from /usr/local/lib/site_ruby/1.8/dbi.rb:227:in
>>> `_get_full_driver'
>>>         from /usr/local/lib/site_ruby/1.8/dbi.rb:213:in `connect'
>>>         from /root/bin/simple.rb:6
>>>
>>> I used the instructions at this link:
>>>
>>> www.kitebird.com/articles/rubi-dbi.html
>>>
>>> I noticed you mentioned something about one step you mentioned  
>>> not being
>>> clear in the kitebird article, do you think that might be my  
>>> problem?
>>> If not, do you have any idea how I'd go about figuring out what  
>>> the fix
>>> for this error is?
>>> Thanks again,
>>> PV
>>>
>>
>> Peter, just follow the 3 steps I listed, in their order: in  
>> particular,
>> step 2 (which installs the DRIVER msyql.rb) is the one which will  
>> solve
>> the problem.
>>
>> Good luck
>> Raul
>
> -- 
> Posted via http://www.ruby-forum.com/.
>