From: matz@... (Yukihiro Matsumoto) Date: 2000-09-21T15:02:05+09:00 Subject: [ruby-talk:5041] Re: ruby 1.6 install problem on AIX and HP (PR#59) Hi, In message "ruby 1.6 install problem on AIX and HP (PR#59)" on 00/09/21, wscott@ichips.intel.com writes: |I installed the new ruby version 1.6.0 on a number of machines today |and had problems with HPUX and AIX. | |On both machines, miniruby built and ran just fine but the code failed |to build the extensions. On both machines dbm failed to build because |it couldn't find libgdbm.a | |What happened was this: | |The mkmf.rb script tested to see if it could find a library by |building a test program using CONFIG['CC'] (gcc) and found libgdbm.a |installed and working. Our copy of gcc is installed in a site local |area along with most extra software like gdbm. | |The when the dynamicly link module was actually created it was linked |using LDSHARED. LDSHARED in the system linked and doesn't know about |the extra path to find libraries and fails. | |So the test for the library doesn't actually use the tools that will |be used when building the module. | |Also I don't see any options to the ./configure script to specify and |library and include paths to use in addition to the compiler defaults |and the directory where ruby will be installed. (This would have |given me a work around.) | |I am happy to try out ideas and let you know what happens. | |-Wayne You can specify the directory for the extra libraries to the configure script (or extconf.rb too). E.g. ./configure --with-xxx-yyy=DIR where xxx is either opt extra software path in general dbm path for dbm library gdbm path for gdbm library x11 ...for X11.. tk ...for Tk... tcl ...for Tcl... and yyy is either dir specifies -I DIR/include -L DIR/lib include specifies -I DIR lib specifies -L DIR Hope this helps. I should have document these somewhere. I'll CC this mail to the ruby-talk list for the record. matz