Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > messed up Fink due to .tcshrc

messed up Fink due to .tcshrc
Thread Tools
Mac Elite
Join Date: Nov 1999
Location: Sapulpa, OK
Status: Offline
Reply With Quote
Nov 10, 2003, 12:36 PM
 
I recently installed iirc again after doing a clean wipe and install of Panther, only to find that for some reason my .tcshrc file was deleted and a new one was made in it's place last night...

now none of my Fink stuff or iirc will boot I just get the following errors...

Code:
-bash: iirc: command not found
Does anyone know how to fix this and get my Fink and iirc back?

Thanks,
Mac Guru
"The young people of America need be taught that the only pride they may properly hold is in the content of their character, and the achievements they make. There is no legitimate pride or moral credit to be gained by virtue of sharing the same race with a great and admirable individual. "

My Website
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Nov 10, 2003, 01:13 PM
 
Bash is now the default shell in Panther. You can change it to tcsh in NetInfo Manager.

Bash access a couple of user configurable files when it starts in interactive mode in the Terminal. One is most commonly named .bash_profile (can also be .profile or .login-- synonymous). The other is .bashrc.

There are different ways to use these. In my .bash_profile I have:
Code:
. ~/.bashrc ENV=$HOME/.bashrc export ENV
There is a space between . and ~ in the first line. This script sets the ENV variable and points at .bashrc. I then keep most aliases, prompt info, etc in .bashrc.

Fink adds a line to .bashrc-
Code:
source /sw/bin/init.sh
which calls a script that adds /sw/bin and /sw/sbin to your path. This is what you are missing.

Craig
     
Fresh-Faced Recruit
Join Date: Jul 2003
Location: I'm not too sure at the moment
Status: Offline
Reply With Quote
Nov 10, 2003, 02:38 PM
 
I'm having the same problem...

I specified /bin/tcsh in the prefs under "Execute this command" but it won't recognize my Fink install or any of the MANY apps I have installed. I edited the .tcshrc and added 'source /sw/bin/init.sh' to it etc. but nada.

Any Luck guys?

PH
(Last edited by protohootie; Nov 10, 2003 at 02:45 PM. )
     
Fresh-Faced Recruit
Join Date: Jul 2003
Location: I'm not too sure at the moment
Status: Offline
Reply With Quote
Nov 10, 2003, 02:50 PM
 
ok now HERE's a funny one...

When my shell starts I get "Badly Placed ()'s"

Any idea what's up?

PH
     
Senior User
Join Date: Oct 2000
Location: Midwest
Status: Offline
Reply With Quote
Nov 10, 2003, 11:56 PM
 
protoetc-

What is in your .bashrc or .bash_profile? The message means that you have a syntax error in your script. More of one side of parens than the other, i.e. not balanced.

Post your file contents and we can help. It is awkward getting to know a new shell without some references.

Also what is the reponse when you type in shell and then press return?

Craig
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:49 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2