Re: New Perl-Installation on new OS X
[email protected] (Vic Norton) Thu, 9 Jun 2011 10:55:46 -0400
| Newsgroups | perl.macosx |
|---|---|
| Message-ID | <[email protected]> |
I recently installed Fink to see if it had "pdffonts". This conversation = has scared me; I have uninstalled Fink. I certainly don't want to start = looking for Perl modules in /sw. Now I see no PERL5LIB in %ENV. I guess Perl is looking in /System/Library/Perl/5.10.0 /Library/Perl/5.10.0 /System/Library/Perl/Extras/5.10.0 but I really don't know. Regards, Vic On Jun 9, 2011, at 7:08 AM, Sherm Pendley wrote: > On Thu, Jun 9, 2011 at 6:43 AM, Marek Stepanek > <[email protected]> wrote: >>=20 >> But perhaps this list could help me, to get @INC and $PERL5LIB clean = of /sw >> ... How is it possible, that I have $PERL5LIB set to >>=20 >> %ENV: >> PERL5LIB=3D"/sw/lib/perl5:/sw/lib/perl5/darwin" >>=20 >> I only see two files: >>=20 >> ~/.profile >>=20 >> and >>=20 >> ~/.tcshrc >=20 > PERL5LIB can be set in either one; which one is executed depends on > what shell you're using. The current default shell is Bash, which > reads .profile - at one point in ancient history, the default was > Tcsh, which reads .tcshrc. >=20 >> in the first file I only have one line: >>=20 >> test -r /sw/bin/init.sh && . /sw/bin/init.sh >=20 > If you haven't changed your default shell, that's the culprit. It > executes Fink's init.sh script, which exports the PERL5LIB environment > variable. Again, this behavior goes back a while - they used to think > it was a good idea for the system Perl to be able to see modules that > Fink had installed under /sw/lib. >=20 > I haven't used Fink in a while - I switched to MacPorts - but I > *thought* they stopped doing that after a few Mac OS X releases, each > with a new version of Perl that disagreed with those modules, showed > them how problematic that was. If you've been migrating for a while, > that line in .profile could be a remnant from an old install. >=20 > At any rate, delete (# or comment) that line, exit from the shell > session and start a new one, and that should clear up your PERL5LIB > variable. >=20 >> To export the right PERL5LIB, can I add the following line to = ~/.tcshrc >>=20 >> set PERL5LIB =3D (/System/Library/Perl/5.10.0:/Library/Perl/5.10.0) >=20 > That wouldn't accomplish anything - PERL5LIB just adds to the default > paths, and the above are already in the default. >=20 >> Syntax seems alright, but I have still the /sw path at the beginning: >=20 > Did you log out of the current shell session, and back in? These > startup files are only processed when you start a new shell session, > not every time they're changed. >=20 > sherm-- >=20 > --=20 > Cocoa programming in Perl: > http://camelbones.sourceforge.net