分页: 1 / 1

求助如何设置环境变量?

发表于 : 2008-01-15 14:01
fydapg
下面为说明书上环境变量设置说明,但看不懂:
Setting Environment Variables

The path to the MouseAtlas software needs to be set for the PATH variable.

For example, if the path is the default /opt/MouseAtlas/bin:-

For sh, ksh, bash shell add these lines to your .profile file

PATH=($PATH:/opt/MouseAtlas/bin)

export $PATH

For csh add this line to your .cshrc file.

set path = ($path /opt/MouseAtlas/bin)

For tcsh add the same line to your .tcshrc file.

set path = ($path /opt/MouseAtlas/bin)

Remember to restart any terminal sessions to pick up the new path.

Testing The Installation

If the above steps have been carried out successfully, you will now be able to start the software from the command line.

The "MAPaint" program should start like the example screen shot below.







请问说明书上的环境变量如何设的。我已经运行到这步了,前面的解压我会了,没写上去了。下面是终端显示:
fs@fs-laptop:~$ cd /home/fs/Linux
fs@fs-laptop:~/Linux$ sudo ./setupMA.ksh
Press return to install in default directory /opt/MouseAtlas
Or enter an installation directory [/opt/MouseAtlas]: 这步我是按回车键的,没错吧
Installing in /opt/MouseAtlas
/opt/MouseAtlas already exists
/opt/MouseAtlas already contains these files:
bin
Do you want to overwrite these? [y/n](n) y
Copying files
Finished MouseAtlas Installation

****IMPORTANT****
To automatically use the software you will need to set your PATH variable

For sh, ksh, bash shell add these lines to .profile
PATH=($PATH:/opt/MouseAtlas/bin)
export $PATH

For csh, tcsh add this line to .cshrc or .tcshrc
set path = ($path /opt/MouseAtlas/bin)

fs@fs-laptop:~/Linux$ 下面该怎么输入?请写一下详细步骤。

发表于 : 2008-01-15 14:10
zpq2004
如果是ubuntu的话,
就在终端下输入命令
cd
sudo vi .profile
在PATH最后加上:/opt/MouseAtlas/bin
保存
重启

发表于 : 2008-01-15 14:11
yiding_he
vi 用不惯的话就直接:

代码: 全选

gedit ~/.profile

发表于 : 2008-01-15 16:24
fydapg
我用的是ubuntu,请写详细点好吗?

发表于 : 2008-01-15 17:25
yaoms
快捷键 alt+F2
在 弹出的框中输入 gedit 然后回车

然后找到这行:
PATH=~/bin:"${PATH}"
改成
PATH=~/bin:"${PATH}":/opt/MouseAtlas/bin

保存退出。

发表于 : 2008-01-17 13:04
fydapg
那么执行这个软件改用什么命令呢?

发表于 : 2008-06-26 19:22
mxd271966940
yaoms 写了:快捷键 alt+F2
在 弹出的框中输入 gedit 然后回车

然后找到这行:
PATH=~/bin:"${PATH}"
改成
PATH=~/bin:"${PATH}":/opt/MouseAtlas/bin

保存退出。
但是现在8.04里面没有PATH变量了