Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/perl use DBI; $first='First'; $last='Last'; print "Inserting Data"; $dbh=DBI->connect('dbi:Oracle:SURVEY','userid','password') || die "Dat +abase ca nnot be connected"; $status=$dbh->do(qq{Insert into t_friend (first_name,last_name) values +('$first', '$last')}); if($status!=0) { print "Inserted.."; } else { print "cannot Insert"; } $dbh->disconnect;
But when called from the browser I get this error:
install_driver(Oracle) failed: Can't load '/usr/local/lib/perl5/site_perl/5.6.0/ aix/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: dlopen: /usr/local/lib/pe rl5/site_perl/5.6.0/aix/auto/DBD/Oracle/Oracle.so: Permission denied at /usr/loc al/lib/perl5/5.6.0/aix/DynaLoader.pm line 200. at (eval 8) line 3 Compilation failed in require at (eval 8) line 3. Perhaps a required shared library or dll isn't installed where expected at /usr/HTTPServer/cgi-bin/test2.cgi line 31Pls help ASAP
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: URGENTperl test3.cgi runs fine at command line .. Fails when called from browser
by tilly (Archbishop) on Dec 24, 2000 at 20:13 UTC | |
|
Re: URGENTperl test3.cgi runs fine at command line .. Fails when called from browser
by chipmunk (Parson) on Dec 24, 2000 at 23:35 UTC | |
|
Re: URGENTperl test3.cgi runs fine at command line .. Fails when called from browser
by PotPieMan (Hermit) on Dec 24, 2000 at 21:23 UTC |