 |
 |
terminal fubar!!! help!!!
|
 |
|
 |
|
Grizzled Veteran
Join Date: May 2002
Location: On the moon
Status:
Offline
|
|
i tried installing an X11 app, Gimp specifically.
now whenever i open the terminal is give me the following
"Last login: Wed Jan 22 19:24:22 on ttyp1
Welcome to Darwin!
/usr/share/init/tcsh/rc: No such file or directory.
>
"
how do i fix this? any help would be great.
|
|
24" iMac 2.13ghz C2D | 15" MBP 2ghz CD | "Soundwave" 60GB 5G iPod
|
| |
|
|
|
 |
|
 |
|
Moderator Emeritus 
Join Date: Mar 2001
Location: Austin, MN, USA
Status:
Offline
|
|
You can still do things, right? I mean, > is your prompt now, from the looks of it. It looks to me like your rc file has been deleted or corrupted somehow. You could replace it by using Pacificist to reinstall it or getting it from another Mac.
If you can't use the terminal, then it's a whole different story. We'll come to that bridge when we get there, though.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: May 2002
Location: On the moon
Status:
Offline
|
|
yeah i can still use the terminal. i can type bash or zsh and get into a shell. i like the TCSH (the default) shell.
according to my system there is no /usr/share/init directory at all. the TCSH shell is in the /usr/share directory as it should be. if i try to run the shell, even as root, is always says permission denied.
i mean this is no big deal, but it seems to happen quite often when you try and install X11 apps. there has to be an easy fix.
if anyone could email me the correct files at dwishbone@mac.com id be most thankful.
|
|
24" iMac 2.13ghz C2D | 15" MBP 2ghz CD | "Soundwave" 60GB 5G iPod
|
| |
|
|
|
 |
|
 |
|
Moderator Emeritus 
Join Date: Mar 2001
Location: Austin, MN, USA
Status:
Offline
|
|
I just realized, I don't have that file either. I thought we were talking about:
/usr/share/tcsh/examples/rc
Do you have a .login or .cshrc file in your home directory? Check the contents of that file to see if it's trying to source the file that cannot be found.
The second thing you can do is go into Terminal prefs and select it to "execute this command" and point it to /bin/tcsh. Right now I think you're running the default login shell.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: May 2002
Location: On the moon
Status:
Offline
|
|
i went into my users folder and did a sudo ls command.
there is no .login file, but there is a .cshrc file. i looked at it in pico and it just contains one line of text.
"source /sw/bin/init.csh"
isnt the "sw" directory where fink and packages put alot of X11 apps? ive never plundered around to see if the "sw" directory exists before i install Unix apps...but i know i never see it there.
i believe its pointing to the wrong file. what should it be pointing to?
right now i have a temp fix. the ZSH shell seems to be working fine so i went to the terminal preferences and told it to use that shell.
in a way this is good. i am learning more about unix. right now im somewhere in the intermediate area when it comes to UNIX. like most X users, it was my first consistant use of a UNIX OS.
|
|
24" iMac 2.13ghz C2D | 15" MBP 2ghz CD | "Soundwave" 60GB 5G iPod
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Aug 2001
Status:
Offline
|
|
Originally posted by dwishbone:
i went into my users folder and did a sudo ls command.
there is no .login file, but there is a .cshrc file. i looked at it in pico and it just contains one line of text.
"source /sw/bin/init.csh"
isnt the "sw" directory where fink and packages put alot of X11 apps? ive never plundered around to see if the "sw" directory exists before i install Unix apps...but i know i never see it there.
i believe its pointing to the wrong file. what should it be pointing to?
right now i have a temp fix. the ZSH shell seems to be working fine so i went to the terminal preferences and told it to use that shell.
in a way this is good. i am learning more about unix. right now im somewhere in the intermediate area when it comes to UNIX. like most X users, it was my first consistant use of a UNIX OS.
Your .cshrc file is trying to read the /sw/bin/init.csh file that was probably installed by fink at some point. I cannot verify right now but I bet the /sw/bin/init.csh file is trying to read default tcsh init file that was provided by Apple which was moved or changed when Jaguar was released. There are probably a number of ways to fix that:
1. Try upgrading to the most recent version of Fink. They had to update it to get it to work with Jaguar if I remember correctly and it may point to the new file that was provided by Apple.
2. Rename your .cshrc file to something else so it is not read by the terminal when it is started. This is assuming you want to continue to use the tcsh shell with the Terminal.app
3. Remark out the line in the .cshrc file by putting a "#" at the begining of the line.
4. Switch to a different shell for use with the Terminal.app. You have chosen to use the zsh shell but you can also use bash if you like. Bash does not read the .cshrc file when initializing and should be included with Jaguar. To change your default shell completely/correctly, you have to also modify the default shell for your username in the Netinfo database. Otherwise your problem will still occur when you log in remotely or any other way aside from the Terminal.app.
5. You could modify the /sw/bin/init.csh to point to the new location of the default initialization file that has been provided by Apple. I believe Xeo may have refered to the correct path to the file in his post, but I cannot verify this.
|
|
WWWWaaaaaaaaaaaaaaa!!!!!!!!
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|