QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1330|回复: 2

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

[复制链接]
发表于 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
发表于 2006-4-20 18:14:56 | 显示全部楼层
[code:1]export varname="value"[/code:1]
仅对当前登录的控制台有效.
回复

使用道具 举报

 楼主| 发表于 2006-4-21 00:16:34 | 显示全部楼层
[quote:1486e785f7="fxdlxf"][code:1]export varname="value"[/code:1]
仅对当前登录的控制台有效.[/quote]

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

还遇到一个错误:
( cd flush; make );
make[1]: 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  -o  linux-gun/bin/user  src/user.c  linux-gnu/lib/libfl.a  -l pthread  -l crypto  -l spread
/usr/bin/ld: cannot find  -l spread
collect2: ld returned 1 exit status
make[1]: *** [linux-gnu/bin/user] Error 1
make[1]: Leaving directory '/root/GKA/ssp-2.1/flush'
make: *** [FLUSH] Error 2

这是为什么啊?很急,救命啊!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-6-29 09:07 , Processed in 0.070124 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表