LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 04-14-2008, 02:56 AM   #1
leblebi
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
.tcshrc error and setting env. variables


Hello

i am using the tcsh shell and want to define my env variables in a .tcshrc file that i ve generated under my user directory (/home/user)

when i login to my user, i get the following error:

.tcshrc: Command not found.
setenv: Syntax Error.

additionally, when i run the env command, i cannot see any of the paths i defined in my .tcshrc file

i would be happy if you can help me on this issue

my tcshrc file is as follows:

".tcshrc" 46 lines, 1423 characters
#@(#)local.profile 1.8 05/07/15 SMI
stty istrip


setenv PATH=/usr/bin:/usr/sfw/bin:/usr/local/ncarg/bin:/sbin:/usr/local/bin:/usr/local/sbin:/opt/intel_fc_80/include:/opt/intel_fc_80/bin/:/opt/intel_cc_80/bin/:/opt/intel_cc_80/include:/home/photochemical/MM5V3/RIP:/opt/pgi/linux86/6.2/bin:$PATH

source /opt/intel_fc_80/bin/ifortvars.csh
source /opt/intel_cc_80/bin/iccvars.csh

setenv MANPATH=/usr/dt/man:/usr/local/ncarg/man:/usr/man:/usr/local/man:/opt/intel_fc_80/man:/opt/intel_cc_80/man:/opt/pgi/linux86/6.2/man:$MANPATH


setenv NCARG_ROOT=/usr/local/ncarg:$NCARG_ROOT
setenv NCARG_BIN=/usr/local/ncarg/bin:$NCARG_BIN
setenv NCARG_LIB=/usr/local/ncarg/lib:$NCARG_LIB
setenv NCARG_INCLUDE=/usr/local/ncarg/include:$NCARG_INCLUDE
setenv RIP_ROOT=/usr/local/MM5V3/RIP:$RIP_ROOT




export DISPLAY="193.140.202.30:0.0"

setenv PATH=/opt/pgi/linux86/6.2/bin:$PATH
setenv MANPATH=/opt/pgi/linux86/6.2/man:$MANPATH
setenv LM_LICENSE_FILE=/opt/pgi/license.dat:$LM_LICENSE_FILE


thanks in advance

Ulas
 
Old 04-14-2008, 03:02 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
The syntax of setenv (and set) doesn't use an equal character between the variable name and value, e.g.
Code:
setenv PATH "/opt/pgi/linux86/6.2/bin:$PATH"
That accounts for the "syntax error" message, but I don't know about the "Command not found". Perhaps one of the source commands references a non-existing file, or one of those files contains an invalid command name.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
env variables ekdya Debian 3 03-14-2006 02:33 PM
setting env. variables arunsri Slackware 3 03-26-2005 06:49 AM
Suse ent 9.0 setting Env variables not staying. suncloud Linux - Enterprise 1 03-13-2005 04:13 AM
Setting perm env. variables for a super user. Tarts Slackware 7 08-02-2003 10:21 PM
setting env variables globally raven Linux - General 6 02-21-2003 09:04 AM


All times are GMT -5. The time now is 06:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration