On 11/25/2004 08:03 AM, Chris Holt said:
After being prepped by experiences of others in the README.aix
> file. I beleive (see below), I have a good installation. But > on running my fist test prog I appear to have a permissions > problem. This litlle ditty does not fail when run as root, > but anyone else and it aborts on the 'use DBI;'.
That is certainly an indication that you don't have permission for something. Especially since root succeeds.
$ cat ora.pl #!/bin/perl -w
use DBI; use strict;
my ($dbname, $user, $passwd) = ('exua', 'remote', 'remote');
#$dbh = DBI->connect("dbi:Oracle:$dbname", $user, $passwd);
#$dbh->do("SELECT * FROM DUAL");
$ $ ./ora.pl Can't locate loadable object for module DBI in @INC
> (@INC contains: /usr/opt/perl5/lib/5.8.0/aix-thread-multi > /usr/opt/perl5/lib/5.8.0 > /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi > /usr/opt/perl5/lib/site_perl/5.8.0 > /usr/opt/perl5/lib/site_perl .) at
> /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/DBI.pm line 254./usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/DBI.pm line 254 BEGIN failed--compilation aborted at
Compilation failed in require at ./ora.pl line 3. BEGIN failed--compilation aborted at ./ora.pl line 3.
...
permissions on the directories and files under /usr/opt/perl5 appear
> to be OK, at least world readable. Any ideas?
DBI.so is executable which was my first guess at the problem, make sure the directories have executable permisson for you too.
...
364664 260 -r-xr-xr-x 1 root exua 264738 Nov 25 10:14
> /usr/opt/perl5/lib/site_perl/5.8.0/aix-thread-multi/auto/DBI/DBI.so
-- Mac :}) ** I usually forward private questions to the appropriate mail list. ** Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html Cthulhu in 2004. Don't settle for the lesser evil.
