linux - C Shell bug 的问题:localpath:未定义的变量
问题描述
我对 Linux 和 shell 命令都没有经验。
我存储文件的路径是 /home/cadence
我已经尝试了其他一些带有 .csh 错误的其他解决方案,经过多次试验,这是我的最终结果,不幸的是它没有取得成果。我收到的错误是我收到“localpath:未定义变量”的错误
以下是完整的源代码,我不确定如何进一步使用它。
# % 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 )
在使用这个变量之前。
推荐阅读
- docker - 如何将主机目录挂载到 docker 容器中
- visual-studio-2019 - Visual Studio 2019 中的 vsto 文件夹发布问题
- android - 当我想将修剪后的视频上传到 Firebase 时出现“FileNotFoundException”
- mongodb - 获取所有文件,并在相等(相似性)的情况下 - 稍后的
- java - Jersy IllegalArgumentException jersey.repackaged.org.objectweb.asm.ClassReader JDK17 和 tomcat 9 抛出异常
- python - Pytorch与转置之间的不同输出
- javascript - 如何使用 javascript 或 jQuery 动态更改 Bootstrap 5 下拉菜单的偏移量?
- javascript - 如何在 nodejs 中使用 wroker 线程让代码执行得更快?
- python-3.x - 在linux上安装32位python以避免错误的ELF类:ELFCLASS32
- cmake - 如何在 esp-idf 的 idf_component_register 函数中正确使用 SRC_DIRS 参数?