marcus baker
6/28/2005 7:00:00 PM
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 <Daniel.Berger@qwest.com> 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
>
>