配置脚本无法识别 Shell

配置脚本无法识别 Shell

当我尝试从源代码编译不同的包(例如,,,ipsec-tools等等openvpn)时,我总是从配置脚本中得到相同的错误:

$ ./configure

./configure: This script requires a shell more modern than all
./configure: the shells that I found on your system.
./configure: Please tell ****@***.org and
./configure: ***@***.org about your system, including
./configure: any error possibly output before this message. Then
./configure: install a modern shell, or manually run the script
./configure: under such a shell if you do have one.

在我的系统上我有一个 bash shell ( GNU bash version 3.00)。

查看这些配置脚本,我注意到它们支持 bash v.2,所以我不明白问题可能出在哪里。

答案1

Bash 3.00 已经相当老了(大约六年了);我使用的 4.2 已经有三年了。

尝试使用较新的 bash;如果失败,请尝试 zsh 和 ksh,它们都可以分别使用apt-get install ksh和安装在您的 Ubuntu 中apt-get install zsh

相关内容