Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Fink problems' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Fink problems
Authored by: lngtones on Sep 16, '02 04:43:09PM

Ok, how do you get fink to work with this situation?

I\'ve added

source /sw/bin/init.csh

In .cshrc explicitly sourced from .tcshrc

I\'ve put it in .tcshrc

I\'ve put it in rc.mine

I\'ve put it in aliases.mine

yet it doesn\'t run it when I start a new session

fink will not be in my PATH

however, then I type on the command line:

source /sw/bin/init.csh

and everything works fine

why won\'t it run automatically?



[ Reply to This | # ]
Fink problems
Authored by: matt02 on Nov 13, '02 12:18:12AM

I don't know if anyone's still reading this, but the solution I found is to put 'source /sw/bin/init.csh' at the end of your .login file rather than your .cshrc file.

The reason is that the /usr/share/tcsh/examples/login script, which you sourced in your .login, sets the path and is called AFTER your .cshrc or .tcshrc. Thus it overwrites the path to Fink with the standard system paths.

When you source the init.csh file on the command line, of course it works, because the shell doesn't look at .login. It's a different story when you actually do log in again. So put your path to Fink at the end of your .login or in your ~/Library/init/tcsh/login.mine.



[ Reply to This | # ]
Fink problems - SOLVED!
Authored by: by on Nov 24, '02 07:51:46AM

I finally found the culprit:
.login branches to /usr/share/tcsh/examples/login where the path is set explicitely, so everything that's been sourced before is deleted...
If you comment it out
#/usr/share/tcsh/examples/login
everything works (again) as expected.

The question is now what am I missing by bypassing /usr/share/tcsh/examples/login...???

Best regards,
Michael



[ Reply to This | # ]
easy way
Authored by: clubphilly on Jan 21, '03 04:33:24PM

just delete the setenv .... which you have already defined somewhere else from the /usr/share/tcsh/examples/login file.. it's programming, not magic.



[ Reply to This | # ]