Benjamin Mark wrote: > "Bob McGowan" <bob_mcgo...@symantec.com> wrote in message > news:4c110b04.60...@symantec.com... >> On 06/09/2010 08:43 AM, Benjamin Mark wrote: >>> Hello, >>> >>> I wan't to install the DBD::Oracle package on Ubuntu 8.04 LTS. >>> I've installed a Oracle 10gR2 database (not the client) which is running >>> well. >>> >>> Everytime I wan't to install the package I got the message: >>> >>> ##################################################################### >>> Removing previously used /home/administrator/.cpan/build/DBD-Oracle-1.24 >>> >>> CPAN.pm: Going to build P/PY/PYTHIAN/DBD-Oracle-1.24b.tar.gz >>> >>> Argument "6.30_01" isn't numeric in subroutine entry at Makefile.PL line >>> 10 >>> main::BEGIN() called at /usr/share/perl/5.8/ExtUtils/MakeMaker.pm >>> line 10 >>> eval {...} called at /usr/share/perl/5.8/ExtUtils/MakeMaker.pm >>> line >>> 10 >>> Using DBI 1.601 (for perl 5.008008 on i486-linux-gnu-thread-multi) >>> installed >>> in /usr/lib/perl5/auto/DBI/ >>> Argument "6.30_01" isn't numeric in numeric ge (>=) at Makefile.PL line >>> 61. >>> >>> Configuring DBD::Oracle for perl 5.008008 on linux >>> (i486-linux-gnu-thread-multi) >>> >>> Remember to actually *READ* the README file! Especially if you have any >>> problems. >>> >>> Trying to find an ORACLE_HOME >>> Your LD_LIBRARY_PATH env var is set to '' >>> >>> The ORACLE_HOME environment variable is not set and I couldn't >>> guess >>> it. >>> It must be set to hold the path to an Oracle installation directory >>> on this machine (or a machine with a compatible architecture). >>> See the appropriate README file for your OS for more information. >>> ABORTED! >>> >>> Running make test >>> Make had some problems, maybe interrupted? Won't test >>> Running make install >>> Make had some problems, maybe interrupted? Won't install >>> ######################################################################## >>> >>> The ORACLE_HOME and LD_LIBRARY_PATH is set for user administrator (root >>> priviliges) and oracle user. >>> But It seems the installer doesn't find it anyway. For what user do I >>> have >>> to execute the cpan programm to fetch the environment variables and get >>> access to the oracle directories? >>> >>> Thx >>> >>> Ben >>> >> Hi, Ben, >> >> You need to have access to Oracle libraries for the build to work. >> >> It's easiest if that install is on the same machine you're using to >> compile DBD::Oracle on. The implication of the error is that it could >> be installed on another machine and accessed from yours, say using NFS >> or Samba. >> >> In any case, there needs to be a path to the library files, which is >> defined by both ORACLE_HOME and LD_LIBRARY_PATH variables. >> >> Have you installed Oracle locally? FYI, it's also easier if you use >> Oracle's Instant Client package. >> >> -- >> Bob McGowan > > Hi Bob, > > thx for your answer. Yes the oracle 10g is on the same machine. > But for any reason the installer/compiler can't see the right libraries > packages but the path is definetivly the right one. > In the maintime I've succeeded to the tell the user the right environment > variables but the installer still has problems. > > ##################################################################### > CPAN.pm: Going to build P/PY/PYTHIAN/DBD-Oracle-1.24b.tar.gz > > Argument "6.30_01" isn't numeric in subroutine entry at Makefile.PL line 10 > main::BEGIN() called at /usr/share/perl/5.8/ExtUtils/MakeMaker.pm > line 10 > eval {...} called at /usr/share/perl/5.8/ExtUtils/MakeMaker.pm line > 10 > Using DBI 1.601 (for perl 5.008008 on i486-linux-gnu-thread-multi) installed > in /usr/lib/perl5/auto/DBI/ > Argument "6.30_01" isn't numeric in numeric ge (>=) at Makefile.PL line 61. > > Configuring DBD::Oracle for perl 5.008008 on linux > (i486-linux-gnu-thread-multi) > > Remember to actually *READ* the README file! Especially if you have any > problems. > > The ORACLE_HOME environment variable value (/home/oracle/product/10gR2) is > not valid. > It must be set to hold the path to an Oracle installation directory > on this machine (or a machine with a compatible architecture). > For an Instant Client install, the directory should include an sdk > subdirectory. > See the appropriate README file for your OS for more information. > ABORTED! > Running make test > Make had some problems, maybe interrupted? Won't test > Running make install > Make had some problems, maybe interrupted? Won't install > bugzi...@bugzilla:/var/www/html/bugzilla$ > ##################################################################### > > Thx for any help > > Best regards > > Ben > > >
I find the easiest way to get DBD::Oracle working is this: o get Oracle InstantClient for your platform o unzip it somewhere (perhaps inside /home/oracle on your machine) o make sure all dirs and files in the instantclient dir are readable by the users and installers o set LD_LIBRARY_PATH to point at instant client dir e.g., export LD_LIBRARY_PATH=/home/oracle/instantclient_11_1/ o download DBD::Oracle, untar it and change into created dir o run perl Makefile.PL, make, make test sudo make install Hope this helps. Martin -- Martin J. Evans Easysoft Limited http://www.easysoft.com