Hi,
I have a problem while installing DBI1.13 and DBD::Oracle modules linking with
Perl5.00503 which is existing as installed already. I supplied
PREFIX=/home/sched/opwsched/devtools as the dir_path where in I am interested to
install DBI and DBD. But always I am getting permission problem as it is pointing to
/usr/local/lib/perl5 where I do not have permission to open a dir. I have Unix user ID
(SOLARIS 2.7) but not ROOT. I enclosed perl -V output also. I attached the error
listing on execution of the commands. 1) perl Makefile.PL PREFIX=
/home/sched/opwsched/devtools 2) make 3) make test 4)perl -V.
Is there a way to install these modules in the dir_path I specified in PREFIX, without
ROOT permissions.
Please suggest me the solution. Does it require to install DBI and DBD in
/usr/local/lib ... always ? where PERL5 installed already.
Thanks,
Ram.
AT&T
Orlando, FL
ERROR LISTING:
cfoifdv4/home/sched/opwsched/devtools/DBI1.13 CASTDEV > perl Makefile.PL PREFIX=
/home/sched/opwsched/devtools
*** Note:
The optional PlRPC-modules (RPC::PlServer etc) are not installed.
If you want to use the DBD::Proxy driver and DBI::ProxyServer
modules, then you'll need to install the RPC::PlServer, RPC::PlClient,
Storable and Net::Daemon modules. The CPAN Bundle::DBI may help you.
You can install them any time after installing the DBI.
You do *not* need these modules for typical DBI usage.
Optional modules are available from any CPAN mirror, in particular
http://www.perl.com/CPAN/modules/by-module
http://www.perl.org/CPAN/modules/by-module
ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module
Writing Makefile for DBI
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.
cfoifdv4/home/sched/opwsched/devtools/DBI1.13 CASTDEV > make
mkdir blib
mkdir blib/lib
mkdir blib/arch
mkdir blib/arch/auto
mkdir blib/arch/auto/DBI
mkdir blib/lib/auto
mkdir blib/lib/auto/DBI
mkdir blib/man1
mkdir blib/man3
cp FAQ.pm blib/lib/FAQ.pm
cp Shell.pm blib/lib/Shell.pm
cp ProxyServer.pm blib/lib/ProxyServer.pm
cp ExampleP.pm blib/lib/ExampleP.pm
cp Proxy.pm blib/lib/Proxy.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp DBIODBC.pm blib/lib/DBIODBC.pm
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp Format.pm blib/lib/Format.pm
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp DBD.pm blib/lib/DBD.pm
cp NullP.pm blib/lib/NullP.pm
cp Sponge.pm blib/lib/Sponge.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp DBI.pm blib/lib/DBI.pm
cp W32ODBC.pm blib/lib/W32ODBC.pm
cp ADO.pm blib/lib/ADO.pm
/usr/local/bin/perl -I/usr/local/lib/perl5/5.00503/sun4-solaris -I/usr/local/lib
/perl5/5.00503 /usr/local/lib/perl5/5.00503/ExtUtils/xsubpp -typemap /usr/local
/lib/perl5/5.00503/ExtUtils/typemap DBI.xs >xstmp.c && mv xstmp.c DBI.c
gcc -c -I/usr/local/include -O -DVERSION=\"1.13\" -DXS_VERSION=\"1.13\" -f
PIC -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE -Wall -Wno-comment -DDBI_NO
_THREADS DBI.c
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
LD_RUN_PATH="" gcc -o blib/arch/auto/DBI/DBI.so -G -L/usr/local/lib DBI.o
chmod 755 blib/arch/auto/DBI/DBI.so
cp DBI.bs blib/arch/auto/DBI/DBI.bs
chmod 644 blib/arch/auto/DBI/DBI.bs
/usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00503/sun4-s
olaris -I/usr/local/lib/perl5/5.00503 dbiproxy.PL dbiproxy
Extracted dbiproxy from dbiproxy.PL with variable substitutions.
mkdir blib/script
cp dbiproxy blib/script/dbiproxy
/usr/local/bin/perl -I/usr/local/lib/perl5/5.00503/sun4-solaris -I/usr/local/lib
/perl5/5.00503 -MExtUtils::MakeMaker -e "MY->fixin(shift)" blib/script/dbiproxy
/usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00503/sun4-s
olaris -I/usr/local/lib/perl5/5.00503 dbish.PL dbish
Extracted dbish from dbish.PL with variable substitutions.
cp dbish blib/script/dbish
/usr/local/bin/perl -I/usr/local/lib/perl5/5.00503/sun4-solaris -I/usr/local/lib
/perl5/5.00503 -MExtUtils::MakeMaker -e "MY->fixin(shift)" blib/script/dbish
Manifying blib/man1/dbiproxy.1
Manifying blib/man3/DBIODBC.3
Manifying blib/man3/Shell.3
Manifying blib/man3/FAQ.3
Manifying blib/man3/ProxyServer.3
Manifying blib/man3/Format.3
Manifying blib/man3/DBD.3
Manifying blib/man3/DBI.3
Manifying blib/man1/dbish.1
Manifying blib/man3/Proxy.3
Manifying blib/man3/W32ODBC.3
Manifying blib/man3/ADO.3
cfoifdv4/home/sched/opwsched/devtools/DBI1.13 CASTDEV > make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/pe
rl5/5.00503/sun4-solaris -I/usr/local/lib/perl5/5.00503 test.pl
test.pl
DBI test application $Revision: 10.3 $
opendir(./../../../..): Permission denied at /usr/local/lib/perl5/5.00503/blib.p
m line 47
Cannot find blib even in /../../../../..
Switch: DBI 1.13 by Tim Bunce, 1.13
Available Drivers: ADO, ExampleP, Proxy, Sybase
dbi:ExampleP:: testing 5 sets of 20 connections:
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Connecting... 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Disconnecting...
Made 100 connections in 0 wallclock secs ( 0.03 usr + 0.01 sys = 0.04 CPU)
Testing handle creation speed...
5000 NullP statement handles cycled in 1.6 cpu+sys seconds (3205 per sec)
test.pl done
cfoifdv4/home/sched/opwsched/devtools/DBI1.13 CASTDEV > cd /usr/local/lib/perl5/
5.00503/
cfoifdv4/usr/local/lib/perl5/5.00503 CASTDEV >
cfoifdv4/cast/cstsched/test_perl/perl-5.8.0 CASTDEV > perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
Platform:
osname=solaris, osvers=2.7, archname=sun4-solaris
uname='sunos 5.7 generic_patch sun4u sparc sunw,ultra-1 '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='gcc', optimize='-O', gccversion=2.8.1
cppflags='-I/usr/local/include'
ccflags ='-I/usr/local/include'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'
Characteristics of this binary (from libperl):
Built under solaris
Compiled at Jun 27 1999 20:12:35
@INC:
/usr/local/lib/perl5/5.00503/sun4-solaris
/usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris
/usr/local/lib/perl5/site_perl/5.005
.
cfoifdv4/cast/cstsched/test_perl/perl-5.8.0 CASTDEV >