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

I work for a company whose sun boxes and operating systems are managed by a third party who will not divulge the root password (even on a temporaray basis) for me to do my install. I therefore tried to install as myself and then export PERL5LIB to capture the path of the directories I've installed into. I tried to install the DBI and got permission violations although if I do a perl -e "use DBI;" it seems to find it. The DBD which is DBD-DB2-0.74 for Universal DB2 however comes up with on the perl Makefile.PL LIB=/usr/gibson (i.e. directory I'm installing into) a string of errors... In file included from DB2.xs:7: DB2.h:13: DBIXS.h: No such file or directory In file included from DB2.xs:7: DB2.h:19: dbd_xsh.h: No such file or directory *** Error code 1 make: Fatal error: Command failed for target `DB2.o' This is the first time I've installed DBI module on Solaris, and the first time I've installed the UDB2 dbd driver. On Dec Unix + with Ingres dbd I've had no problems... Any thoughts? Cheers The Rabbi

Replies are listed 'Best First'.
Re: Installing Perl DBI & DBD not as root
by physi (Friar) on Apr 10, 2001 at 13:59 UTC
    Probaly you should begin with installing your own version of perl in an accessable directory.
    In our project here, we want to get rid of the root-administrator. So we put all projectrelated stuff like perl, gcc ... in a own directory. DBI and DBD:CVS work greate in this way. But remenber, to put 'YOUR-PERL-PATH' in front of the 'SYSTEM-PERL-PATH'.