[Thread Prev][Thread Next][Thread Index]

Re: Path to Perl



ouch.  resisting urge to flame.

> When I ran setup it insisted on finding Perl in /usr/dist instead of in
> /opt/PERL even though the new version was at the front of my PATH.
> I got around it by umounting /usr/dist. Wouldn't it be nice if it used the
> PATH to find Perl instead of just assuming that if there's Perl in /usr/dist,
> that's the one to use.

yes, wouldn't it be nice.. wait a minute!  it is!

echo "Locating Perl 5..."
for cmd in perl5 perl
do
        for dir in `echo $PATH | sed -e 's/:/ /g'`
        do

As you can see it is checking your PATH and there is no hardcoded "/usr/dist".
However, it looks for "perl5" before just "perl".  This could be your problem.
Do you have /opt/PERL/perl5?
/usr/dist/exe/perl5 exists which is why it finds it first.

	- Alan
------------------------------------------------------------------------
***********************************************************
*             This is a public mailing list!              *
* Please do not publish Sun proprietary information here! *
*        -  -  -  -  -  -  -  -  -  -  -  -  -  -         *
*             http://www.moshpit.org/pilotmgr             *
***********************************************************


SourceForge.net Logo