Linux C Shell错误的问题:localpath:未定义变量
我对Linux和shell命令都没有经验 我存储文件的路径是/home/cadence 我已经尝试过其他几个解决方案,但都有.csh错误,经过多次尝试,这是我的最终结果,不幸的是,它没有取得成果。我收到的错误是我收到了一个带有“localpath:Undefined variable”的错误 下面是完整的源代码,我不知道如何进一步使用它Linux C Shell错误的问题:localpath:未定义变量,linux,shell,redhat,csh,Linux,Shell,Redhat,Csh,我对Linux和shell命令都没有经验 我存储文件的路径是/home/cadence 我已经尝试过其他几个解决方案,但都有.csh错误,经过多次尝试,这是我的最终结果,不幸的是,它没有取得成果。我收到的错误是我收到了一个带有“localpath:Undefined variable”的错误 下面是完整的源代码,我不知道如何进一步使用它 # % source cadence_setup.csh # edit the path of environment setenv Cade
# % source cadence_setup.csh
# edit the path of environment
setenv CadenceHOME /home/cadence
# Set environment variables for Cadence software,
setenv CDSHOME /home/cadence/IC618-500-8
setenv MMSIMHOME /home/cadence/SPECTRE19-10-199
setenv PVSHOME /home/cadence/PVS19-11-000
setenv ASSURAHOME /home/cadence/ASSURA416-001-618
setenv XCELLHOME /home/cadence/XCELLIUMMAIN19-03-008
setenv QUANTUSHOME /home/cadence/QUANTUS20-10-00
setenv GENUSHOME /home/cadence/GENUS19-12-000
setenv INNOVUSHOME /home/cadence/INNOVUS19-12-000
setenv LCUHOME /home/cadence/LCU4.30.002
# Set license file location for Cadence software
setenv CDS_LIC_FILE 5280@sjflex3:5280@sjflex2:5280@sjflex1:5280@srv-sgtrn2
##################################################################
## DO NOT update any env. Variable below:
##################################################################
setenv LM_LICENSE_FILE $CDS_LIC_FILE
# Set Artist Netlisting Mode to Analog #
setenv CDS_Netlisting_Mode Analog
# Set these variables in case we need to troubleshoot PVS failures
# Set variables to make Linux happy
setenv LANG en_US
# Set your program search path properly ....
# Build up a list of all of the options. Please verify the localPath snd sysPath settings are valid
# set localPath = (. ~/bin ~/local/bin /usr/local/pvt /usr/ucb /usr/local \
# /usr/local/bin /usr/local/Public/bin /opt/Acrobat4/bin \
# /usr/lib/openoffice/program /sbin /usr/X11R6/bin )
set cdsPath1=$LCUHOME/tools/bin \
$CDSHOME/tools/bin \
$CDSHOME/tools/dfII/bin \
$MMSIMHOME/tools/bin \
$PVSHOME/tools/bin \
$ASSURAHOME/tools/bin \
$XCELLHOME/tools/bin \
$QUANTUSHOME/tools/bin \
$GENUSHOME/tools/bin \
$INNOVUSHOME/tools/dfII/bin )
# set sysPath = (/usr/ucb /usr/etc /usr/openwin/bin /usr/sbin /usr/bin /bin )
# Changing the order here since pvs executable in /usr/sbin conflicts with PVE
# installation
set path=( $cdsPath1 $localPath $sysPath )
set PATH=( $path)
set filec
setenv history 50
您正在编写
set path=($cdsPath1$localPath$sysPath)
,但未将任何内容分配给localPath
。做一个
setenv localPath ( /whatever/path/you /would/like/to/see/here )
使用此变量之前。请参阅我对您问题的回答。除此之外,如果你,你是说,对Shell编程缺乏经验,那么为什么你要开始使用像csh这样的奇特Shell,而不是使用更常见的Shell,比如bash或zsh,在那里你可以找到更多有知识的人,一旦你陷入困境?