DaVinci <bombadil / wanadoo.es> wrote: > > > Have any of you experienced problems with mkmf.rb of ruby 1.6.2?... > > > > > > When I try to configure python/ruby module with: > > > > > > ruby extconf.rb > > > > > > get the error: > > > > > > checking for Py_Initialize() in -lpython1.5... no > > > > > > and Makefile is not created. > > > > Could you show me the whole output of extconf.rb? > > # ruby extconf.rb > checking for /usr/lib/python1.5/config/Makefile... yes > checking for LIBS... yes > checking for Py_Initialize() in -lpython1.5... no Some change in mkmf.rb causes the problem as you guessed. Try this patch. --- extconf.rb 1999/11/08 05:46:24 1.2 +++ extconf.rb 2001/01/08 15:24:01 @@ -57,7 +57,7 @@ exit end end -$LOCAL_LIBS << py_extralibs +py_extralibs.split.each{|lib| have_library(lib.sub(/^-l/, ''))} if have_library("python1.5", "Py_Initialize") && have_header("Python.h") # If DEBUG defined, you need python compiled with Py_DEBUG defined, Masaki Fukushima