Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Perl on OSX > Re: LWP install...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 982 of 1076
Post > Topic >>

Re: LWP install error

by trey@[EMAIL PROTECTED] (Trey Harris) Aug 28, 2007 at 09:35 AM

In a message dated Tue, 28 Aug 2007, Marek Stepanek writes:
> First I installed a new Perl 5.8.8 in /usr/local/ - Apple's OSX is
> up-to-date and Xcode installed!
>
> First something, where I am not sure about: I made
>
> % mv /usr/bin/perl /usr/bin/perl_out
> % ln /usr/local/bin/perl5.8.8 /usr/bin/perl
>
> Is this right?

"Right" in what sense?  This will have the effect of "/usr/bin/perl", or 
just "perl" in most PATHs, using your install rather than the Apple 
install, if that's what you mean by "right".

However, you now have Apple code running against a Perl it wasn't tested 
with, and you are keeping around all of a Perl version that is no longer 
usable, just wasting disk space (since, to my knowledge, no programs start

with #!/usr/bin/perl_out).

I personally would undo your last two steps, and just write your programs 
to use #!/usr/local/bin/perl, and adjust your PATH so that /usr/local/bin 
comes before /usr/bin.  That way, code written for Macs that expects 
#!/usr/bin/perl to be the Apple-supplied Perl will continue to work as 
expected.

Trey
 




 5 Posts in Topic:
LWP install error
marekstepanek@[EMAIL PROT  2007-08-28 15:08:41 
Re: LWP install error
trey@[EMAIL PROTECTED] (  2007-08-28 09:35:43 
Re: LWP install error
sherm@[EMAIL PROTECTED]   2007-08-28 09:36:21 
Re: LWP install error
marekstepanek@[EMAIL PROT  2007-08-29 17:01:06 
Re: LWP install error
sherm@[EMAIL PROTECTED]   2007-08-29 11:06:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 0:18:19 CST 2008.