Put the "source /sw/bin/init.csh" line in ~/Library/init/tcsh/path and things should work fine.
The FAQ entry may be supplanted soon, since the developers are working on a path setup package. On Mon, 2003-03-17 at 11:24, Sebastian Tennant wrote: > <fontfamily><param>Comic Sans MS</param>Hi all. > > > 'fink scanpackages' kept giving me 'Command not found.' All I could > find on the fink FAQ pages was this:</fontfamily> > > > <excerpt><bold><fontfamily><param>Trebuchet MS</param>Q3.18: I've > edited my .cshrc and started a new terminal, but I still get "command > not found" errors when I run fink or anything that I installed with > fink. > > > A: </fontfamily></bold><fontfamily><param>Trebuchet MS</param>(This > assumes you are using > </fontfamily><fontfamily><param>Courier</param>tcsh > </fontfamily><fontfamily><param>Trebuchet MS</param>). When > </fontfamily><fontfamily><param>Courier</param>tcsh > </fontfamily><fontfamily><param>Trebuchet MS</param>is started, it > first reads system-wide scripts, and then those for your user account. > It looks first for > </fontfamily><fontfamily><param>Courier</param>~/.tcshrc > </fontfamily><fontfamily><param>Trebuchet MS</param>, and if that > isn't found, </fontfamily><fontfamily><param>Courier</param>~/.cshrc > </fontfamily><fontfamily><param>Trebuchet MS</param>; note that if you > have both, only > </fontfamily><fontfamily><param>Courier</param>~/.tcshrc > </fontfamily><fontfamily><param>Trebuchet MS</param>gets run. > > > What has probably happened is that some application package (e.g. > CodeWarrior) has created a > </fontfamily><fontfamily><param>Courier</param>~/.tcshrc > </fontfamily><fontfamily><param>Trebuchet MS</param>, and therefore > </fontfamily><fontfamily><param>Courier</param>~/.cshrc > </fontfamily><fontfamily><param>Trebuchet MS</param>isn't being read. > A good fix is to add the following line to > </fontfamily><fontfamily><param>Courier</param>~/.tcshrc > </fontfamily><fontfamily><param>Trebuchet MS</param>: > > > </fontfamily><fontfamily><param>Courier</param>source > ~/.cshrc<color><param>0000,AAAA,4747</param> > > </color></fontfamily></excerpt><bigger><bigger> > > </bigger></bigger><fontfamily><param>Comic Sans MS</param>If you are > using the example configuration found in /usr/share/tcsh/examples, > (which does have some quite cool features), then you will already have > a one line ~/.tcshrc file: > > </fontfamily><bigger><bigger> > > </bigger></bigger><fontfamily><param>Courier</param> > source > /usr/share/tcsh/examples/rc > > </fontfamily><fontfamily><param>Comic Sans MS</param>Adding the line: > > </fontfamily><fontfamily><param>Courier</param> > source ~/.cshrc > > </fontfamily><fontfamily><param>Comic Sans MS</param> > will > not do the trick. Leave it as it is. > > > As you can see from the /usr/share/tcsh/examples/README below, this > configuration also creates a ~/.login file and a > > ~/.logout file as well. In order for fink to install, (and run in > the future), you should disable all three by renaming them > > .tcshrc_disabled, .login_disabled & .logout_disabled for instance. I > think the conflict lies in the file sourced by .login but you might as > well disable all three as they are part of a package, (so to speak). > Close and open a new Terminal window and now ~/.cshrc will be > correctly read and fink will install and run like a dream. > > > A quick work around, (until someone more knowledgeable than me finds > exactly where the conflict lies, which I hope they will), that quickly > does all the renaming is to create two aliases. I've called mine > finkon and finkoff. Add the line: > > > </fontfamily><fontfamily><param>Courier</param>alias finkon 'mv > ~/.tcshrc ~/.tcshrc_disabled; mv ~/.login ~/.login_disabled; mv > ~/.logout ~/.logout_disabled' > </fontfamily><fontfamily><param>Comic Sans MS</param><smaller>(one > line, ignore any wrapping) > > </smaller> > > to your aliases.mine file in ~/Library/init/tcsh, and add the line: > > > </fontfamily><fontfamily><param>Courier</param> alias finkoff 'mv > ~/.tcshrc_disabled ~/.tcshrc; mv ~/.login_disabled ~/.login; mv > ~/.logout_disabled > ~/.logout'</fontfamily><fontfamily><param>Comic Sans MS</param><smaller> (again, > ignore line wrapping) > > > </smaller>to your ~/.cshrc file. > > > I'd love to hear from anyone who's actually spotted/fixed the conflict. > > > Seb. > > > Here's the /usr/share/tcsh/examples/README: > > </fontfamily><bigger><bigger> > > </bigger></bigger><excerpt><fontfamily><param>Courier</param>This > directory contains some useful tcsh files. > > > In order to use this configuration, type the following three commands: > > > echo "source /usr/share/tcsh/examples/rc" > ~/.tcshrc > > echo "source /usr/share/tcsh/examples/login" > ~/.login > > echo "source /usr/share/tcsh/examples/logout" > ~/.logout > > > To do this system-wide, do the same instead to /etc/csh.cshrc, > /etc/csh.login, and /etc/csh.logout. > > > In order to customize tcsh: > > > mkdir ~/Library/init/tcsh > > > and create the following files there as necessary: > > > aliases.mine - shell aliases > > completions.mine - completions > > environment.mine - environment > > rc.mine - run commands > > path - command search path > > > See the corresponding file in /usr/share/init/tcsh for more > information about the role of each file. You can easily extend or > override the configuration provided by the default file. For example, > you can add more aliases by adding the appropriate commands in > aliases.mine. > > > -Fred > > Massachusetts Institute of Technology > > [EMAIL PROTECTED] > > </fontfamily></excerpt><fontfamily><param>Courier</param> > > </fontfamily><fontfamily><param>Comic Sans MS</param>P.S. You may > well find that /usr/share/init/ doesn't exist. So much for more > information!</fontfamily> -- Alexander K. Hansen Associate Research Scientist, Columbia University visiting MIT Plasma Science and Fusion Center Levitated Dipole Experiment 175 Albany Street, NW17-219 Cambridge, MA 02139-4213 ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Fink-beginners mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-beginners
