nguye103 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have installed Oracle 9i client and now am trying to install DBD::Oracle.

When I run perl Makefile.PL, everything seems ok except for these 2 errors:

/opt/oracle/oracle_9i/bin/sqlplus: cannot execute binary file

and Checking for functioning wait.ph Scalar found where operator expected at (eval 205) line 1, near "'int' $__val" (Missing operator before $__val?)

When I run make, these errors pop up:

Oracle.xs:191: warning: unused variable `startp' {standard input}: Assembler messages: {standard input}:2: Warning: Unrecognized .section attribute: want a,w,x {standard input}:2: Warning: Unrecognized .section attribute: want a,w,x {standard input}:2: Error: Rest of line ignored. First ignored character is `,'. {standard input}:11: Warning: Unrecognized .section attribute: want a,w,x {standard input}:11: Warning: Unrecognized .section attribute: want a,w,x {standard input}:11: Error: Rest of line ignored. First ignored character is `,'. {standard input}:4725: Warning: Unrecognized .section attribute: want a,w,x {standard input}:4725: Error: Rest of line ignored. First ignored character is `,'. make: *** Oracle.o Error 1

and when I go to run make install, the same erros from make pop up. I thought these errors were minor, but when I ran the test.pl, it says:

install_driver(Oracle) failed: Can't locate loadable object for module DBD::Oracle in @INC Compilation failed in require at (eval 1) line 3. Perhaps a module that DBD::Oracle requires hasn't been fully installed at /home/oracle/DBD-Oracle-1.16/blib/lib/Oraperl.pm line 58 Compilation failed in require at test.pl line 37. BEGIN failed--compilation aborted at test.pl line 37.

I don't really know the reason why DBD::Oracle to install proper...whether it may be caused by the client for Oracle 9i or something else. Any help would be much appreciated. Thanks!

Replies are listed 'Best First'.
Re: DBD::Oracle installation
by dragonchild (Archbishop) on Nov 16, 2004 at 19:41 UTC
    /opt/oracle/oracle_9i/bin/sqlplus: cannot execute binary file

    This is not a minor error. Have you verified that Oracle installed correctly? Like, can you use sqlplus to get to your database? If sqlplus doesn't work, then DBD::Oracle will surely not work.

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

      I reinstalled Oracle and now when I go to instal DBD Oracle, this comes up when i run make:

      cc -c -I/opt/oracle/oracle_9i/rdbms/demo -I/opt/oracle/oracle_9i/rdbms/public -I/opt/oracle/oracle_9i/plsql/public -I/opt/oracle/oracle_9i/network/public -I/opt/oracle/oracle_9i/rdbms/demo -I/opt/oracle/oracle_9i/rdbms/public -I/opt/oracle/oracle_9i/rdbms/demo -I/usr/lib/perl5/site_perl/5.8.3/i586-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -Wall -pipe -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -fPIC "-I/usr/lib/perl5/5.8.3/i586-linux-thread-multi/CORE" -DUTF8_SUPPORT Oracle.c
      {standard input}: Assembler messages:
      {standard input}:2: Warning: Unrecognized .section attribute: want a,w,x
      {standard input}:2: Warning: Unrecognized .section attribute: want a,w,x
      {standard input}:2: Error: Rest of line ignored. First ignored character is `,'.
      {standard input}:11: Warning: Unrecognized .section attribute: want a,w,x
      {standard input}:11: Warning: Unrecognized .section attribute: want a,w,x
      {standard input}:11: Error: Rest of line ignored. First ignored character is `,'.
      {standard input}:4113: Warning: Unrecognized .section attribute: want a,w,x
      {standard input}:4113: Error: Rest of line ignored. First ignored character is `,'.
      make: *** Oracle.o Error 1
        You are beyond my knowledge. Please cross-post this to the mailing list listed in the DBD::Oracle documentation.

        Being right, does not endow the right to be rude; politeness costs nothing.
        Being unknowing, is not the same as being stupid.
        Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
        Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.