From: Hugh Sasse Staff Elec Eng Date: 2001-01-03T00:32:42+09:00 Subject: [ruby-talk:8518] Re: 1.6.2 on Solaris2.5.1 On Tue, 2 Jan 2001, ts wrote: > >>>>> "H" == Hugh Sasse Staff Elec Eng writes: > > H> brains hgs 42 %> ruby -w !$ > H> ruby -w ./extconf.rb > H> checking for gdbm_open() in -lgdbm... no > H> brains hgs 43 %> > > H> But this is not being used at all.... in the top Makefile the definitions > H> for EXTLIBS and EXTOBJS are blank, but I suppose that happens if you > H> don't ask for 'special' treatment of dynamic loading -- i.e. if you > H> just use the defaults. Or is that irrelevant? > > You are sure that you have used the original ruby-1.6.2.tar.gz, and not > tried to re-use the directory ruby-1.6.2 build from another system ? I did a make distclean. It claimed to trash the .config.cache and such. > > In ruby-1.6.2.tar.gz no Makefile exist for gdbm > > pigeon% tar ztvf ruby-1.6.2.tar.gz | grep gdbm > drwxr-xr-x matz/matz 0 2000-12-25 07:55:40 ruby-1.6.2/ext/gdbm/ > -rw-r--r-- matz/matz 41 1999-08-13 07:37:47 ruby-1.6.2/ext/gdbm/MANIFEST > -rw-r--r-- matz/matz 39 1999-08-13 07:37:47 ruby-1.6.2/ext/gdbm/README > -rw-r--r-- matz/matz 71 1999-08-13 07:37:47 ruby-1.6.2/ext/gdbm/depend > -rw-r--r-- matz/matz 131 1999-08-13 07:37:47 ruby-1.6.2/ext/gdbm/extconf.rb > -rw-r--r-- matz/matz 14535 2000-11-08 06:29:33 ruby-1.6.2/ext/gdbm/gdbm.c > pigeon% > > > ruby will create the Makefile by running "miniruby extconf.rb" when you > run "make" > > Try > > make distclean > ./configure > make That is what I did, but: gmake[1]: Leaving directory `/home/hgs/ruby/ruby-1.6.2/ext/fcntl' compiling gdbm gmake[1]: Entering directory `/home/hgs/ruby/ruby-1.6.2/ext/gdbm' gcc -fPIC -g -O2 -I/home/hgs/ruby/ruby-1.6.2 -I/home/hgs/ruby/ruby-1.6.2 -I/usr/local/include -DHAVE_GDBM_H -c gdbm.c gdbm.c:13: gdbm.h: No such file or directory gmake[1]: *** [gdbm.o] Error 1 gmake[1]: Leaving directory `/home/hgs/ruby/ruby-1.6.2/ext/gdbm' is the result of trying again. Note: checking whether OS depend dynamic link works... yes creating config.h updating cache ./config.cache creating ./config.status creating Makefile creating ext/extmk.rb -->brains hgs 50 %> grep -i dbm ext/extmk.rb -->brains hgs 51 %> gmake gcc -g -O2 -I. -I. -I/usr/local/include -c array.c gcc -g -O2 -I. -I. -I/usr/local/include -c bignum.c No mention of dbm in the extmk.rb > > to see if you have always the same error. > Is there a fix other than installing gdbm? > > Guy Decoux > > > Hugh hgs@dmu.ac.uk