Re: Strange problem with @INC
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Jesse Engel) wrote: for some reason, X11 has a different version of @INC than reported with apple's terminal. if i run perl -e 'foreach (@INC) { print $_\n;}' with apple_terminal, i get for me, under 'terminal' i get : /usr/local/lib/perl5/5.8.8/darwin-2level /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/darwin-2level /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl . under 'x11' : - /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl . -- klp
Re: Strange problem with @INC
all suggestions are gladly welcomed. i haven't had any time to poke at it but hopefully i can find something good. i'm imagining that the lack of an xinitrc file other than the default is the culprit. i have installed perlmodules via fink and that probably has created some issues as well. thanks for all of the hints. jesse Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index
Re: Strange problem with @INC
On 平成 19/01/10, at 9:25, Jesse Engel wrote: hmm, no, just the default /usr/bin/perl. i've thought about installing 5.8.8, but haven't yet. i changed my shell to bash (doesn't everyone?) in both xterm and apple_terminal and i did make a .bashrc in which i changed the default value of $PATH to this: PATH=$PATH:/sw/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/bin:/ sw/share/doc/man Some reason for having a man directory in your executable path? Would you perhaps prefer to set a manpath (man man)? Or maybe I'm just busybodying, in which case just ignore me.
Re: Strange problem with @INC
On 1/9/07, Jesse Engel [EMAIL PROTECTED] wrote: hmm, no, just the default /usr/bin/perl. i've thought about installing 5.8.8, but haven't yet. i changed my shell to bash (doesn't everyone?) in both xterm and apple_terminal and i did make a .bashrc in which i changed the default value of $PATH to this: PATH=$PATH:/sw/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/bin:/sw/share/doc/man i am getting different outputs for echo $PATH; xterm returns more search paths. also, printenv doesn't return a PERL5LIB under xterm. i guess a good way to modify $PERL5LIB would be cool, although i have read from several sources that it is better to use lib /foo/bar; than to modify $PERL5LIB. You've installed fink at some point, and you've either used it to install something Perl-related (maybe a utility that is written in Perl? Psync? SpamAssassin?) and as part of that process, you or the installer have updated your rc file to add directories under /sw to $PERL5LIB (or to source a config file that does that). This probably happened when you ran /sw/bin/pathsetup.sh as recommended by the Fink install quide. This has nothing to do with Terminal.app; the only thing that touches /sw is Fink. /sw doesn't even exist on the system until Fink creates it, and any reference to /sw that exists in any path or environment variable was set by either you or Fink. See if your .profile or .bash_profile or .login or other rc file (I'm sure there are a few I've forgotten) doesn't have a line similar to test -r sw/bin/init.sh . sw/bin/init.sh It won't be in .bashrc, though, unless you added it yourself. As I said before, you have two options here. Since reinstalling all your Finked software manually probably isn't appealing, what you need to do is use your .xinitrc file to setup the fink environment in X. Either setup your PATH and PERL5LIB manually in .xinitrc (it works just like any other rc file) or source /sw/bin/init.sh. Google xinitrc for the gory details; the Fink X FAQ with detailed directions is actually the first hit. HTH, -- jay -- This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] private and confidential daggerquill [at] gmail [dot] com http://www.tuaw.com http://www.downloadsquad.com http://www.engatiki.org values of β will give rise to dom!
Re: Strange problem with @INC
At 08:53 -0500 1/10/07, Jay Savage wrote: As I said before, you have two options here. Since reinstalling all your Finked software manually probably isn't appealing, what you need to do is use your .xinitrc file to setup the fink environment in X. Either setup your PATH and PERL5LIB manually in .xinitrc (it works just like any other rc file) or source /sw/bin/init.sh. Another option on a Mac is to define $PERL5LIB at the time of login to the OS itself. That is done with an XML file $HOME/.MacOSX/environment.plist where you can set environment variables that are set up for all applications you activate. Apple has a note on it that CAN be found on apple,com. A well behaved rc file will NOT remove things previously defined but /etc/cshrc, the global startup file, can and will overwrite any $PATH you set in environment.plist. -- -- The greenhouse effect due to water vapor has never been fully modeled and weather forecasting remains irreducibly complex. It is clear that global warming is the act of an Intelligent Designer. --
Strange problem with @INC
for some reason, X11 has a different version of @INC than reported with apple's terminal. if i run perl -e 'foreach (@INC) { print $_\n;}' with apple_terminal, i get /sw/lib/perl5/5.8.1/darwin-thread-multi-2level /sw/lib/perl5/5.8.1 /sw/lib/perl5/darwin-thread-multi-2level /sw/lib/perl5 /sw/lib/perl5/darwin /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl . however, under xterm with the same command i get only the lines listed below /sw/lib/perl5/darwin (in the above example). i understand that i can have 'use lib /foo/bar' but it would be nice to have consistency. Also, printenv returns less values in X11 than in apple_terminal. any ideas why? tia, jesse __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Strange problem with @INC
hmm, no, just the default /usr/bin/perl. i've thought about installing 5.8.8, but haven't yet. i changed my shell to bash (doesn't everyone?) in both xterm and apple_terminal and i did make a .bashrc in which i changed the default value of $PATH to this: PATH=$PATH:/sw/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/bin:/sw/share/doc/man i am getting different outputs for echo $PATH; xterm returns more search paths. also, printenv doesn't return a PERL5LIB under xterm. i guess a good way to modify $PERL5LIB would be cool, although i have read from several sources that it is better to use lib /foo/bar; than to modify $PERL5LIB. i'm poking through man x to see if i can find something. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Strange problem with @INC
On Jan 9, 2007, at 6:25 PM, Jesse Engel wrote: i'm poking through man x to see if i can find something. That's a red herring. As Jay indicated, the only difference between your two environments is that under Terminal.app you've got $PERL5LIB set (to /sw/lib/perl5), but under X11 you don't. -Ken