Don't worry, this is a well known problem.
I don't know how to explain it (maybe I'll say stupid things) but when you source several files from your .tcshrc, the source /sw/bin/init.csh is forgotten.
You can see that by typing setenv, where you'll notice that the path variable doesn't have the fink path.

This is how I sorted it (but there could be plenty of more smart solutions):
I have a .tcshrc (and no .login nor .logout) in which there is:

[11:16am manu ~]% more .tcshrc
# init fink
source /sw/bin/init.csh
# personalisation de la config
source ~/tcsh_conf/alias
source ~/tcsh_conf/completion
source ~/tcsh_conf/divers
source ~/tcsh_conf/environnement
source ~/tcsh_conf/path
#
You see that it points toward several files that I put in ~/tcsh_conf/... and that's nice since these are visible files, easy to change when needed (well, that's lazy, but...).
In those files, I put the relevant init I need on my Mac, e.g.:
[11:22am manu ~/tcsh_conf]% more path
# Les autres paths
set path = ( $ABSOFT/bin $path )
set path = ( /usr/local/bin $path )
set path = ( /Users/manu/projets/GeantGate $path )
set path = ( /Users/manu/Documents/UnixPerso/scripts $path )
set path = ( /Users/manu/projets/geant/pro/bin/Darwin-g++ $path )
set path = ( /Users/manu/projets/geant/pro/examples/novice/N01 $path )
set path = ( /Users/manu/projets/geant/pro/examples/novice/N02 $path )
# Pour root
set path = ( $ROOTSYS/bin $path )
# setenv DYLD_LIBRARY_PATH /usr/local/lib
# setenv DYLD_LIBRARY_PATH = ( $ROOTSYS/lib /usr/local/lib $DYLD_LIBRARY_PATH )
# set DYLD_LIBRARY_PATH = /usr/local/lib:$ROOTSYS/lib
#

or:
[11:22am manu ~/tcsh_conf]% more environnement
# variables globales
setenv ROOTSYS /usr/local/root/pro
setenv DYLD_LIBRARY_PATH /usr/local/lib:$ROOTSYS/lib
setenv ABSOFT /Applications/Absoft
setenv PRINTER E6-laser
setenv HOST E6-TiBook
# autres
##
setenv ENV_SET # avoid repeat
umask 022 # files created are -rw-r--r--
# setenv TERM vt100-color
# setenv CVSEDITOR emacs
set prompt="%{\033[0;32m%}[%{\033[33m%}%t %n %{\033[33m%}%{\033[33m%}%c3%{\033[32m%}]%{\033[0m%}%# "
#

completion and alias come straight from /usr/share/tcsh/examples/aliases and /usr/share/tcsh/examples/completion
(I copy/pasted the content I think...).

Well it seems to work fine, except for the 'TERM_PROGRAM:undefined variable' problem
for which I received a solution from this forum:

The issue about "TERM_PROGRAM:undefined variable" has come up recently
on this list. It appears when using some of the example shell
programs--specifically by calling /usr/share/tcsh/examples/aliases in
.cshrd .

Here's a posted solution:

"Stefano" <[EMAIL PROTECTED]>'s approach
"
Edit the file /usr/share/tcsh/examples/aliases and put

"if ($?TERM_PROGRAM) then" and "endif" around the
lines

if ("$TERM_PROGRAM" == "Apple_Terminal") then
alias settermtitle 'echo -n ""'
endif "

Hope this helps...

Manuel

Le vendredi, 1 nov 2002, � 10:48 Europe/Paris, Francesco Q. a �crit :

Sigh!
trying to enable aliases in Jaguar ( I knew they were disabled ...), I moved
aliases from usr/share/tcsh/examples/aliases to usr/share/tcsh/aliases
and typed
echo "source /usr/share/tcsh/examples/rc" > ~/.tcshrc
echo "source /usr/share/tcsh/examples/login" > ~/.login
echo "source /usr/share/tcsh/examples/logout" > ~/.logout
Now Fink is a command not found, even if I restore the default.
Do I need to reinstall?



-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Fink-beginners mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to