【发布时间】:2014-10-22 18:53:32
【问题描述】:
我正在尝试使用their website 上提供的说明安装cint 解释器(说明也包含在下面,作为参考)。运行./configure 命令时,出现以下错误:
~/cint-5.16.19$ ./configure
./configure: 23: ./configure: Syntax error: "(" unexpected
看到我开始时没有包含任何括号,这似乎很奇怪......
有什么建议吗? (我在 Xubuntu 14 中使用 bash shell。)
来自cint的说明:
$ tar xfz cint-5.16.19-source.tar.gz <--this step worked
$ cd cint-5.16.19 <--this step worked
$ ./configure <--this step not working
$ gmake
编辑:包括更多信息。
configure 中的相关行(即上面错误消息引用的第 23 行)如下:
ARCHS=(linux linuxicc macgcc djgpp cygwin mingw mwerks hpux aix msvc7 msvc8 solaris solarisgcc)
关于 shell 兼容性,configure 文件开头包含以下内容:
# This is a bash script, which works with any reasonable sh.
# Solaris sh is not, so we have to start bash, and call ourselves again.
[ "x$1" != "x__have_the_proper_shell@" ] && ( \
uname -a | grep -i sunos > /dev/null \
&& (bash $0 __have_the_proper_shell@ "$*") \
|| (sh $0 __have_the_proper_shell@ "$*") \
)
[ "x$1" != "x__have_the_proper_shell@" ] && exit
shift
【问题讨论】:
-
可能是您使用了错误的外壳。尝试更改配置脚本中的 #!shebang。并且:什么在配置脚本的第 23 行?
-
第 23 行和第 34 行在我看来是错误的,即使有一个 shebang。也许你应该破解另一个版本。
-
@iceman 你能解决这个问题吗?我在 Ubuntu 14 上仍然遇到同样的问题,距离你的帖子已经整整一年了。
标签: c linux interpreter