mkmf.rb broken in cvs?

B

Brad Hilton

Hello,

I recently noticed I was unable to install a ruby module that used mkmf
to generate a Makefile.

Just typing

require 'mkmf'

from within irb showed me the problem. It died with:

"can't find header files for ruby"

The problem appears to be that mkmf defines

CONFIG = Config::MAKEFILE_CONFIG

from rbconfig.rb. MAKEFILE_CONFIG, however, does not have its values
replaced with real directories like Config::CONFIG does.

So, when mkmf accesses something like CONFIG['archdir'] it ends up with
"$(rubylibdir)/$(sitedir)" rather than a real directory.

Just changing one line in mkmf.rb from

CONFIG = Config::MAKEFILE_CONFIG
to
CONFIG = Config::CONFIG

solves the problem for me.

Thanks,
Brad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,049
Latest member
Allen00Reed

Latest Threads

Top