在Fedora 15 下安装pdksh时所遇到的问题

在Fedora 15上编译pdksh时遇到错误,解决方法是设置环境变量_POSIX2_VERSION。参照链接提供的解决方案,在同一终端中编译即可成功。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

今天在Fedora 15下编译pdksh源文件出现了以下错误:

./siglist.sh "gcc -E  -DHAVE_CONFIG_H -I. -I." < ./siglist.in > tmpsiglist.out
sort: 打开失败: +2n: 没有那个文件或目录
make: *** [siglist.out] 错误 1


谷歌了一下,在这里找到了答案:http://www.linuxquestions.org/questions/linux-newbie-8/installing-pdksh-on-centos-728015/


Quote:
Originally Posted by jbaltodano View Post
sort: open failed: +2n: No such file or directory
The new POSIX standard does not support the syntax
Code:
sort +2n
anymore, hence the error you get. A workaround is to specify an older POSIX standard. Just do:
Code:
export _POSIX2_VERSION=199209

in the same terminal where you're compiling and the trick is done!



原来是由于环境变量_POSIX2_VERSION没有设置的问题。

关于_POSIX2_VERSION是什么东西,可以参考:

http://www.ibm.com/developerworks/cn/linux/l-cn-posix/index.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值