christzb 发表于 2006-4-20 12:42:35

查询或设置环境变量的指令

我看到 linux 有 setenv 命令,是用来查询或设置环境变量的指令的,但是我在 redhatlinux 9 中输入
setenv SSL_DIR /usr
结果显示 bash: setenv: command not found
这是为什么啊?有哪位大哥帮帮忙了
----------------------------
有人让我用 set 命令,但是好像没有用
我输入 set SSL_DIR /usr
结果在 ./configure 时显示 configure error: SSL_DIR not defined. Please set the enviroment variable SSL_DIR to indicate the openssl location ( i.e. setenv SSL_DIR ~/openssl ).
我不行了,大家帮忙啊! :?:

这程序的 readme 说要
define the following environment variables SSL_DIR, SSL_INC, SP_DIR and SP_INC. They are used by the configure file to find libcrypto.a (Openssl) and libsp.a (Spread) libraries

fxdlxf 发表于 2006-4-20 18:14:56

export varname="value"
仅对当前登录的控制台有效.

christzb 发表于 2006-4-21 00:16:34

export varname="value"
仅对当前登录的控制台有效.

多谢了。环境设置完成,问一下我在 make 时,显示:Nothing to be done for 'all'   是什么意思啊???

还遇到一个错误:
( cd flush; make );
make: Entering directory '/root/GKA/ssp-2.1/flush'
gcc-g-O2-Wall-I/root/GKA/spread/include-I./src-I../stdutil/include-D_REENTRANT-DNDEBUG-L/root/GKA/spread-olinux-gun/bin/usersrc/user.clinux-gnu/lib/libfl.a-l pthread-l crypto-l spread
/usr/bin/ld: cannot find-l spread
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory '/root/GKA/ssp-2.1/flush'
make: *** Error 2

这是为什么啊?很急,救命啊!
页: [1]
查看完整版本: 查询或设置环境变量的指令