On 2007-04-04 10:25:42 +0200, Johannes Gritsch wrote:
> Obviously root user gets another PATH variable than a normal user. From your 
> output I would assume the correct perl version to use is somewhere under 
> /usr/local (most probably /usr/local/bin). Rearrange PATH for root before 
> calling perl should do the trick.
> 
> If in doubt, do
> 
> echo $PATH
> 
> as normal user and set the result for root before calling perl.
> 
> 
> OTOH, why do you you have to use *ROOT* for *ORACLE* things? This is looks a 
> little bit like a design flaw ...

For scripts the PATH shouldn't matter since the full path of the perl
binary is normally in the #! line.

However, the PATH does matter when you do the usual "perl Makefile.PL &&
make && make test && make install" dance or when invoking cpan (although
you can use absolute paths in this case, too).

I'm ignoring the case of perl one-liners here. I don't think you can do
much useful work with DBI in one line ...

        hp


-- 
   _  | Peter J. Holzer    | If I wanted to be "academically correct",
|_|_) | Sysadmin WSR       | I'd be programming in Java.
| |   | [EMAIL PROTECTED]      | I don't, and I'm not.
__/   | http://www.hjp.at/ |   -- Jesse Erlbaum on dbi-users

Attachment: pgpvaoOEVjl5v.pgp
Description: PGP signature

Reply via email to