Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 02-22-2002, 11:16 PM   #1
ppmax
Triple-A Player
 
Join Date: Jan 2002
Posts: 69
/usr/share/init/tcsh/login

can anyone tell me whats in this directory? i uninstalled a few bits of software and now i get a small error when i start the terminal:

/usr/share/init/tcsh/login: No such file or directory.

thanks much

ppmax
ppmax is offline   Reply With Quote
Old 02-22-2002, 11:24 PM   #2
Novajo
Triple-A Player
 
Join Date: Jan 2002
Location: Toronto, Canada
Posts: 185
This is the file:

Code:
##
# LOGIN FILE
#
# Wilfredo Sanchez Jr. | tritan@mit.edu
# Dec. 5, 1990
#
# MIT Project Athena
#
# ORIGINAL SOURCES: /usr/athena/lib/login
#               and /usr/prototype_user/.login (ATHENA REL 7.2)
##

##
# Set paths
##
set path = (                                                    \
                ~/bin                                           \
                /usr/local/bin /usr/bin /bin                    \
                /usr/local/sbin /usr/sbin /sbin                 \
           )

if ($?version) then
  if ("$version" =~ tcsh*) then
    set path = ( "~/bin/${MACHTYPE}-${VENDOR}-${OSTYPE}" $path )
  endif
endif

setenv MANPATH "${HOME}/man:/usr/local/share/man:/usr/share/man"

if (-r "${tcsh_initdir}/path") source "${tcsh_initdir}/path"

##
# Read user's login
##
if (-r "${tcsh_initdir}/login.mine") then
  source "${tcsh_initdir}/login.mine"
endif
Novajo is offline   Reply With Quote
Old 02-23-2002, 12:54 AM   #3
ppmax
Triple-A Player
 
Join Date: Jan 2002
Posts: 69
thanks much--i appreciate you posting this. one last question (guess i should be in the newb's section)

it looks like im probably missing some other files; when i start the shell i get:

tcsh_initdir: Undefined variable.

can you point me to some docs or a website? im searching thru the fink list server archives now...

thx
ppmax
ppmax is offline   Reply With Quote
Old 02-23-2002, 04:49 AM   #4
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
Several questions:

Check your ~/.cshrc or ~/.tcshrc and if not right, make a new one with pico or vi and write just this line on it:

source /sw/bin/init.csh

don't forget to press return at the end.

Also, please can you post your .login file.

Cheers...
sao is offline   Reply With Quote
Old 02-23-2002, 10:25 AM   #5
ppmax
Triple-A Player
 
Join Date: Jan 2002
Posts: 69
thanks sao--

you suggest creating a .cshrc file or .tcshrc file to define another path for fink--but i dont have fink installed.

they way i got to this situation was that i had uninstalled fink and 2 or 3 older versions of xdarwin/xfree86. i used osxgnupkg tools to delete the files the xdarwin/xfree86 pkg files installed.
everything seems to work fine except for this small warning whenever i fire up the terminal.

as for the ~/.login file...i dont have one and dont think ive ever seen this in my home dir. are you asking about my /usr/share/init/tcsh/login file? if so i copied the one supplied below (unix line breaks, space at the end and all) so i believe that part is correct. if i am missing a ~/.login file please post the contents of yours.

the issue is that the tcsh_initdir referred to in the /usr/share/init/tcsh/login file is undefined. so where would this be defined?

thanks much
ppmax
ppmax is offline   Reply With Quote
Old 02-24-2002, 12:23 PM   #6
houchin
Major Leaguer
 
Join Date: Jan 2002
Location: Northern Virginai
Posts: 294
Re: /usr/share/init/tcsh/login

Quote:
Originally posted by ppmax
can anyone tell me whats in this directory? i uninstalled a few bits of software and now i get a small error when i start the terminal:

/usr/share/init/tcsh/login: No such file or directory.

There's a lot more in this file than just the login file, and tcsh wan'ts all of it to be there. The shell will work for the most part, but it's going to complain everytime you start it up, but you might find that a few things are not configured within your shell session as you want.

If you have access to another system with Mac OS X on it, go to that system and copy that entire directory back here. If not, maybe someone who has a web drop box can post the entire contents of that directory...
houchin is offline   Reply With Quote
Old 02-24-2002, 01:03 PM   #7
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
here's a tarball of the contents of /usr/share/init/tcsh/

http://home.mindspring.com/~bduart/ztcsh.tar

download that to disk via the option-click in IE (that is, don't let stuffit expand it)

copy that tarball to the root dir / and untar it to it's lovely home

Code:
sudo cp /full/path/to/ztcsh.tar /
cd /
sudo tar -xvf ztcsh.tar

sudo rm ztcsh.tar
exit
mervTormel is offline   Reply With Quote
Old 02-25-2002, 10:27 AM   #8
ppmax
Triple-A Player
 
Join Date: Jan 2002
Posts: 69
thanks for the help all--i rebuilt the /usr/.../tcsh dir and it didnt help.

so i reinstalled everything. good practice for setting up sendmail, mysql, etc again...
ppmax is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 02:42 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.