Oracle DBI on Solaris 8

While installing perl 5.8.5 today and installing all of the modules needed for a web server, I ran into the ELF problem again with Oracle-DBD and a 64-bit operating system. The fix required the following steps:

  1. Set PATH to have /usr/ccs/bin before /usr/local/bin so Sun’s strip is called instead of the Gnu strip.

    Export environment variable to use gcc instead of the cc stub installed on Solaris.
    # CC=gcc; export CC

  2. Set your Oracle environment.
  3. Create the make file.
    # perl Makefile.PL
  4. Edit the resulting make file. Remove the “-o build” flags and change all references for Oracle libraries from lib to lib32., e.g. ../v920/rdbms/lib becomes ../v920/rdbms/lib32.
  5. Compile and install.
    # make; make install

Comments are closed.