 |
 |
setenv: Syntax Error
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2003
Status:
Offline
|
|
To make a long story short, I was trying to install something (QEMU or some molecular biology software, I can't remember) which required some interaction with the Terminal. I never did get it to install but now I get this message when I open Terminal.app:
Welcome to Darwin!
tcsh: setenv: Syntax Error.
Any idea what I did here and how to rectify the problem?
Thanks
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status:
Offline
|
|
Originally posted by bierslayer:
To make a long story short, I was trying to install something (QEMU or some molecular biology software, I can't remember) which required some interaction with the Terminal. I never did get it to install but now I get this message when I open Terminal.app:
Welcome to Darwin!
tcsh: setenv: Syntax Error.
Any idea what I did here and how to rectify the problem?
Thanks
Yep, usually you can check the .tcshrc and .login files in your home directory, these files get run when you launch a new shell and are used for setting up the environment for the shell (variables, paths, settings). Use the Terminal to invoke the "pico" editor to edit these files... or if you don't feel comfortable try a command such as: open .tcshrc which will open the file in TextEdit and allow you to edit and save from there. Look for lines containing "setenv" commands.

|
"In Nomine Patris, Et Fili, Et Spiritus Sancti"
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Midwest
Status:
Offline
|
|
Or .bashrc/.profile/.bash_profile if you are using 10.3.
Craig
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status:
Offline
|
|
I think he's using tcsh, not bash.
hint: tcsh: setenv: Syntax Error.
|
|
signatures are a waste of bandwidth
especially ones with political tripe in them.
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Midwest
Status:
Offline
|
|
oops. Note to self:..work on reading more slowly!
C-
(Last edited by suthercd; Aug 10, 2004 at 02:38 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2003
Status:
Offline
|
|
Okay....I have to plead ignorance here. I'm not well versed in the use of the Terminal. I'm not sure how to find/open the .tcshrc or .login files. Also, what edits would I make to those files ? Thanks for your help folks!
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status:
Offline
|
|
do yourself a favor and just type:
grep -r setenv *
and see what it returns rather than poking around for files that may or may not exist.
|
|
signatures are a waste of bandwidth
especially ones with political tripe in them.
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2003
Status:
Offline
|
|
Holy moly! I get a huge pile of text scrolling by and at the end it tells me:
grep: db: No such file or directory
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Oct 2000
Location: Midwest
Status:
Offline
|
|
Open the Terminal. Enter 'ls -al | more' without the single quotes. The '|' (pipe) is shift-\ on my keyboard. This will list the files in your Home (Users/yourname) directory, one screen at a time. Terminal by defualt opens with its working directory as the Home directory. Use the space-bar to display the next screen.
When your prompt returns you have viewed a list of all the files and folders in your Home directory. If you have a .tcshrc file, it will have been listed. If it is there, the advice given by [API] should do what you need. If you get stuck, just ask again.
Craig
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status:
Offline
|
|
type this:
grep -c setenv *
then wait for the results (could be a while)
if you don't get anything, then do it recursively:
grep -c -r setenv *
|
|
signatures are a waste of bandwidth
especially ones with political tripe in them.
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2003
Status:
Offline
|
|
Okay, I tried 'ls -al | more' and I don't see a .tcshrc or .login file. I do see a .cshrc though. When I try 'grep -c setenv *' I get a bunch of "Operation not permitted" lines and "grep: db: No such file or directory" at the end.
When I type "grep -c -r setenv *" I get:
grep: db: No such file or directory
?????? 
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status:
Offline
|
|
Originally posted by bierslayer:
Okay, I tried 'ls -al | more' and I don't see a .tcshrc or .login file. I do see a .cshrc though. When I try 'grep -c setenv *' I get a bunch of "Operation not permitted" lines and "grep: db: No such file or directory" at the end.
When I type "grep -c -r setenv *" I get:
grep: db: No such file or directory
??????
Are you running this from your home directory or the root directory?
It sounds like the root directory, so do a:
cd ~
first, then run that command.
|
|
signatures are a waste of bandwidth
especially ones with political tripe in them.
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Jul 2003
Status:
Offline
|
|
I'm definitely not running from root. However, I did as you suggest and still get the "no such file" message. May I ask what one would expect to see when running this command?
Thanks for your time.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
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
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|