From: marcus baker Date: 2005-06-29T04:00:02+09:00 Subject: Re: mkmf and oracle problem - not detecting header files Have you set your ORACLE_HOME environment variable to the directory containing 'rdbms/demo/oci.h', in your case /home/oracle/9204? run a 'printenv ORACLE_HOME' to see if it shows up as such. if not, then depending on your shell: export ORACLE_HOME=/home/oracle/9204 On 6/28/05, Daniel Berger wrote: > Hi all, > > Oracle 9.2.0.4 > Mandriva Linux 2.6.8.1 > Ruby 1.8.2 > > I suspect I need a good dose of caffeine, because I can't figure out why > the ruby-oci package isn't picking up the Oracle header files. To > simplify things as much as possible, I created a test extconf.rb script > that looks like this: > > # extconf.rb > require "mkmf" > dir_config("oracle") > have_header("oci.h") > > # To demonstrate that the oci.h file does exist > >ls /home/oracle/9204/rdbms/demo/oci.h > /home/oracle/9204/rdbms/demo/oci.h > > I tried several different things - what am I doing wrong? > > >ruby extconf.rb > checking for oci.h... no > > >ruby extconf.rb --with-oracle-dir=/home/oracle/9204 > checking for oci.h... no > > >ruby extconf.rb --with-oracle-dir=/home/oracle/9204/rdbms/demo > checking for oci.h... no > > >ruby extconf.rb --with-oracle-include=/home/oracle/9204/rdbms/demo > checking for oci.h... no > > Regards, > > Dan > >