On 1/9/07, Jesse Engel <[EMAIL PROTECTED]> wrote:
for some reason, X11 has a different version of @INC than reported with apple's terminal. if i runperl -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
Jesse, It looks like you upgraded your Perl to 5.8 using fink instead of installing it manually. Fink installed to /sw and then updated the rc file (.cshrc, .profile, etc.) for your login shell to source a file that, among other things, adds "/sw/bin" to your path and $PERL5LIB. When you launch from X-11, though, none of the Fink files get sourced and $PERL5LIB doesn't get set. You'll need to either source the fink rc file, run your scripts from the terminal, or install Perl to a standard location instead of the Fink /sw tree. The easiest thing would probably be to fink initialization stuff to your ~./xinitrc. Google .xinitrc for all the gory details. 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!
