虚拟化容器,大数据,DBA,中间件,监控。

RedFlag Linux 6Sp3 安装pdksh源码包报错解决方法

03 11月
作者:admin|分类:系统运维

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


CONFIG_FILES="" CONFIG_HEADERS=config.h ./config.status
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:

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!
  



#  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 里面。





浏览2650 评论0
返回
目录
返回
首页
VirtualBox开启显卡3D加速 Web应用防火墙 FreeWAF