Sending this reply back to the list....... On Jan 3, 2011, at 17:33, Thomas Scofield wrote:
> On Jan 3, 2011, at 6:22 PM, Ryan Schmidt wrote: > >> Er, right. Sorry, I forgot, /opt/local/bin/perl is provided by perl5.8 not >> perl5. Either way, it looks like /opt/local/bin/perl is supposed to be >> there. MacPorts claims it installed it as part of your perl5.8 port, as >> expected. Is it, in fact, there? (If not, deactivate and then re-activate >> perl5.8.) What happens when you run it? Here's a simple test you can try: >> >> /opt/local/bin/perl -e 'print "hello\n"' > > Here is more than you asked for: > > Mac20952:notes scofield$ ls -l /opt/local/bin/perl* > lrwxr-xr-x 1 root admin 9 Aug 17 23:37 /opt/local/bin/perl5 -> > perl5.8.9 > lrwxr-xr-x 1 root admin 9 Aug 17 23:37 /opt/local/bin/perl5.8 -> > perl5.8.9 > -rwxr-xr-x 2 root admin 1297824 Aug 17 23:37 /opt/local/bin/perl5.8.9 > -rwxr-xr-x 2 root admin 44765 Aug 17 23:37 /opt/local/bin/perlbug > -rwxr-xr-x 2 root admin 17965 Aug 17 23:37 /opt/local/bin/perlcc > -rwxr-xr-x 2 root admin 236 Aug 17 23:37 /opt/local/bin/perldoc > -rwxr-xr-x 2 root admin 12286 Aug 17 23:37 /opt/local/bin/perlivp > -rwxr-xr-x 2 root admin 44765 Aug 17 23:37 /opt/local/bin/perlthanks > Mac20952:notes scofield$ /opt/local/bin/perl5 -e 'print "hello\n"' > hello > > I get the same "hello" printed if I exchange "perl5" with "perl5.8" or > "perl5.8.9", as you might suspect. Actually I wanted you to run /opt/local/bin/perl (not perl5, perl5.8 or perl5.8.9). But based on your "ls -l" it does not appear to exist. > Also, in response to an earlier question you asked, > > $ port installed perl5.8 perl5 > The following ports are currently installed: > perl5 @5.8.9_0 (active) > perl5.8 @5.8.9_3 (active) Please deactivate and reactivate your perl5.8 port. Per your previous "port contents" output we saw that MacPorts believes it installed /opt/local/bin/perl via that port, but your "ls -l" shows it is not there. Deactivating and reactivating perl5.8 should fix that: sudo port -f deactivate perl5.8 sudo port activate perl5.8 If that does not make /opt/local/bin/perl appear, then rebuild perl5.8: sudo port -n upgrade --force perl5.8 > Nevertheless, you can gather from previous responses that I have the > Apple-installed version of perl (5.10.0, found in /usr/bin) ahead of the > MacPorts one in my path (i.e., /usr/bin takes precedence over > /opt/local/bin). Since it seems to be the newer version of perl, it seems > like I would be silly (and perhaps would break other things in my system) to > make it go the other way. The usual setup is for /opt/local/bin to precede /usr/bin in your PATH. However, that's only for your convenience in using the shell; you're free to set up your PATH in any way that makes sense to you. MacPorts itself doesn't take your PATH into consideration when building ports. _______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
