RedFlag Linux 6Sp3 安装pdksh源码包报错解决方法
Hi, I'm trying to install pdksh as part of the required packages for Oracle 11G
# tar zxvf pdksh.tar.gz
# cd pdksh
# ./configure --prefix=/usr
When I try to "make" got the following error
creating.h is unchanged
date > stamp-h
config.h is unchanged
date > stamp-h
./siglist.sh "gcc -E -DHAVE_CONFIG -IO. -I" < ./siglist.in > tmpsiglist.out
sort: open failed: +2n: No such file or directory
make: ** [siglist.out] Error 1
解决方法 ,添加环境变量:
# export _POSIX2_VERSION=199209
再次make 就正常了。
Quote:
Code: sort +2n Code: export _POSIX2_VERSION=199209 | |
# make install
./mkinstalldirs /usr/local/bin /usr/local/man/man1
/usr/bin/install -c ksh /usr/local/bin/`echo ksh|sed 's,x,x,'`
/usr/bin/install -c -m ksh.1 /usr/local/man/man1/`echo ksh|sed 's,x,x,`.1
NOTE: /etc/shells does not contain /usr/local/bin/ksh you should add it if you want to set your shell to ksh
在将 /usr/bin/ksh 添加到 /etc/shells 里面。
目录 返回
首页