From: Ian Macdonald Date: 2003-06-09T03:16:34+09:00 Subject: Re: Problem compiling mysql-ruby --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun 08 Jun 2003 at 17:14:35 +0900, Markus Jais wrote: > hello > > I just downloaded mysql-ruby-2.4.4 > > and I can not compile it: > > ruby extconf.rb --with-mysql-config > checking for mysql.h... yes > creating Makefile > extconf.rb:33: uninitialized constant CPP (NameError) > > > > I have ruby > ruby 1.8.0 (2003-03-03) [i686-linux] > and MySQL 4.0.12 on RedHat 7.3 Try the attached patch to extconf.rb. It works for me. Ian -- Ian Macdonald | A man who cannot seduce men cannot save System Administrator | them either. -- Soren Kierkegaard ian@caliban.org | http://www.caliban.org | | --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ruby-mysql.diff" diff -uNr mysql-ruby-2.4.4.orig/extconf.rb mysql-ruby-2.4.4/extconf.rb --- mysql-ruby-2.4.4.orig/extconf.rb 2003-01-28 15:59:59.000000000 -0800 +++ mysql-ruby-2.4.4/extconf.rb 2003-05-21 00:13:59.000000000 -0700 @@ -30,10 +30,12 @@ File::open("conftest.c", "w") do |f| f.puts src end +CPP = "#{CONFIG['CPP']} -E %s -I#{$hdrdir} %s %s conftest.c" cpp = Config::expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '') unless system "#{cpp} > confout" then exit 1 end + File::unlink "conftest.c" error_syms = [] --CE+1k2dSO48ffgeK--