not sure what is wrong with mv DBI-1.52 DBI here or why you need to do
this in the first place.
> 4) cd /opt/gpsy/dbdsource/DBI
>
> 5) Perform the following:
>
> (i) Ensure that the new Perl v5.8.3 path is present in the $PATH environment variable and that this version of Perl is now the default Perl (hence it should be defined in $PATH variable before /usr/bin)
>
> export ORACLE_HOME=/u01/app/oracle/product/11.1.0/db_1
> export ORACLE_BASE=/u01/app/oracle
> export PATH=/usr/bin:/opt/gpsy/dbdsource:$ORACLE_HOME:$ORACLE_BASE:$PATH
this export is contrary to the comment above. If you have a perl binary
somewhere other thn /usr/bin and you want to use it the path to it needs
to be before /usr/bin.
>
> (ii) In /opt/gpsy/dbdsource/DBI/Makefile.PL add the below parameters after COMPRESS => 'gzip -v9', SUFFIX => 'gz',
> },
>
> INST_BIN => "/opt/gpsy/dbdsource/DBI",
> INST_EXE => "/opt/gpsy/dbdsource/DBI",
> INST_LIB => "/opt/gpsy/dbdsource/DBI",
> INST_ARCHLIB => "/opt/gpsy/dbdsource/DBI",
> INST_SCRIPT => "/opt/gpsy/dbdsource/DBI",
> INST_MAN1DIR => "/opt/gpsy/dbdsource/DBI",
> INST_MAN3DIR => "/opt/gpsy/dbdsource/DBI",
>
> (iii) Run:
>
> perl Makefile.PL
>
> Change the macros in the Makefile
>
> From
> PERLPREFIX = /opt/perl_32
> SITEPREFIX = /opt/perl_32
> VENDORPREFIX =/opt/perl_32
>
> To
> PERLPREFIX = /opt/gpsy/dbdsource/DBI
> SITEPREFIX = /opt/gpsy/dbdsource/DBI
> VENDORPREFIX = /opt/gpsy/dbdsource/DBI
I had a feeling there is an option or env var to do all the above but I
cannot remember what it is right now.
> (iv) Run:
> make
>
> (v) Run:
> make test
>
> (vi) make install
>
>
>
> I am getting following error in step (iv) Run make
>
>
>
> running Mkbootstrap for DBI ()
> chmod 644 DBI.bs
> rm -f /opt/gpsy/dbds/DBI/auto/DBI/DBI.so
> LD_RUN_PATH="" /usr/bin/ld -b +vnocompatwarnings -L/usr/lib/hpux32 DBI.o -o /opt/gpsy/dbds/DBI/auto/DBI/DBI.so
> chmod 755 /opt/gpsy/dbds/DBI/auto/DBI/DBI.so
> cp DBI.bs /opt/gpsy/dbds/DBI/auto/DBI/DBI.bs
> chmod 644 /opt/gpsy/dbds/DBI/auto/DBI/DBI.bs
> /opt/perl_32/bin/perl "-I/opt/gpsy/dbds/DBI" "-I/opt/gpsy/dbds/DBI" dbiprof.PL dbiprof
> Extracted dbiprof from dbiprof.PL with variable substitutions.
> cp dbiprof /opt/gpsy/dbds/DBI/dbiprof
> cp: cannot access dbiprof: No such file or directory
> *** Error exit code 1
I presume /opt/perl_32/bin/perl is the perl you want to use?
What does:
opt/perl_32/bin/perl "-I/opt/gpsy/dbds/DBI" "-I/opt/gpsy/dbds/DBI"
dbiprof.PL dbiprof
output when you run it manually. For me it outputs:
martin@bragi:~/svn/dbi/trunk$ perl ./dbiprof.PL dbiprof
Extracted dbiprof from ./dbiprof.PL with variable substitutions.
dbiprof syntax OK
You seem to be missing the last message
and I have a dbiprof file afterwards. What are the permissions on your
current working directory and how do they compare with who you are
running this as?
>
>
> Please help me in resolving this issue.
>
> Thanks
> Regards
> Pravin
Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com