Re: Strange problem with @INC

2007-01-10 Thread Joel Rees


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

2007-01-10 Thread Jay Savage

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

2007-01-10 Thread Doug McNutt
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. --