1. 安装sal: 解压文件, 命令: ./install.sh
2. 设置环境变量: export PATH="$/home/marstnt/sal-3.0/bin" 然后用export命令查看,之后,sal-sim就可以用了。不过会有提示:
“WARNING: SALPATH is now called SALCONTEXTPATH.
WARNING: The environment variable SALCONTEXTPATH is undefined, assuming "." (i.e., just the current directory). The SALCONTEXTPATH specifies which directories will be searched for SAL context files. This is NOT a problem, but if you want a different search path, then you need to set the environment variable SALCONTEXTPATH.
”
3. 其实可以忽略上一步,当sal安装好后直接在命令
export SALCONTEXTPATH=.:/home/marstnt/sal-3.0/bin/ (绿色部分要改!)
export PATH=$PATH:/home/marstnt/sal-3.0/bin/
但是在重启命令行终端后一切又会恢复到默认设置,为了之久化,我们需要在etc/bash.bashrc最后添加相同命令
#sal
export SALCONTEXTPATH=.:/home/marstnt/sal-3.0/bin/
export PATH=$PATH:/home/marstnt/sal-3.0/bin/
重启命令终端!
这样就可以使用sal了
PS:获取root: sudo su 退出root:exit
sudo vim /etc/bash.bashrc 按i进入插入模式,在最后一行添加
#sal
export SALCONTEXTPATH=.:/home/marstnt/sal-3.0/bin/
export PATH=$PATH:/home/marstnt/sal-3.0/bin/
按ESC 再按: 在lastline 输入w 再输q(保存退出)
2. 设置环境变量: export PATH="$/home/marstnt/sal-3.0/bin" 然后用export命令查看,之后,sal-sim就可以用了。不过会有提示:
“WARNING: SALPATH is now called SALCONTEXTPATH.
WARNING: The environment variable SALCONTEXTPATH is undefined, assuming "." (i.e., just the current directory). The SALCONTEXTPATH specifies which directories will be searched for SAL context files. This is NOT a problem, but if you want a different search path, then you need to set the environment variable SALCONTEXTPATH.
”
3. 其实可以忽略上一步,当sal安装好后直接在命令
export SALCONTEXTPATH=.:/home/marstnt/sal-3.0/bin/ (绿色部分要改!)
export PATH=$PATH:/home/marstnt/sal-3.0/bin/
但是在重启命令行终端后一切又会恢复到默认设置,为了之久化,我们需要在etc/bash.bashrc最后添加相同命令
#sal
export SALCONTEXTPATH=.:/home/marstnt/sal-3.0/bin/
export PATH=$PATH:/home/marstnt/sal-3.0/bin/
重启命令终端!
这样就可以使用sal了
PS:获取root: sudo su 退出root:exit
sudo vim /etc/bash.bashrc 按i进入插入模式,在最后一行添加
#sal
export SALCONTEXTPATH=.:/home/marstnt/sal-3.0/bin/
export PATH=$PATH:/home/marstnt/sal-3.0/bin/
按ESC 再按: 在lastline 输入w 再输q(保存退出)
没有评论:
发表评论