On 9/5/07, Louis-Philippe <[EMAIL PROTECTED]> wrote:
>
> ok so I tried something:
>
> -bash-2.05b$ /usr/bin/perl -MMath::GMP -le 'print "ok"'
> Can't locate Math/GMP.pm in @INC (@INC contains: /usr/local/lib/perl5/
snip
> -bash-2.05b$ /opt/local/bin/perl -MMath::GMP -le 'print "ok"'
> ok
snip

Ok, so this means my shot in the dark multiple interpreter theory is
confirmed.  One way to make sure the official (i.e. Apple built)
interpreter is found first is to make sure /usr/bin is first in your
PATH.  You could also say

/usr/bin/perl -MCPAN -e install Net::SSH::Perl

to ensure that it is building the modules for the interpreter in
/usr/bin (or replace /usr/bin with /opt/local/bin if you want to use
that one instead).

Personally I would try to get rid of the extra interpreters.  They
will undoubtedly confuse you again in the future (this is also what I
don't like the #!/usr/bin/env perl shebang line, it is just plain
confusing).

Reply via email to