安装cint解释器时,运行./configure会返回语法错误。

4

我试图按照网站上提供的指南(下方有指南供参考)来安装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

也许你正在使用错误的 shell。尝试更改 configure 脚本中的 #!shebang。还有,configure 脚本的第 23 行是什么? - wildplasser
第23行和第34行对我来说看起来不对,即使有shebang也是如此。也许你应该检查另一个版本。 - wildplasser
@iceman你之前解决过这个问题吗?我在Ubuntu14上还是遇到了同样的问题,而且距离你的帖子已经一年了。 - john_science
1个回答

0

也许他们已经在最新版本中修复了它。我刚刚尝试了你的步骤,但是使用了他们网站上的最新版本:

minotaur:/tmp> cd cint-5.18.00/
minotaur:/tmp/cint-5.18.00> ./configure
猜测架构为linuxx8664gcc
使用当前CINT核心
使用/usr/lib64/libreadline.a
使用/usr/lib64/libncurses.a

创建构建目录...
编写Makefile.conf...
编写cint/inc/configcint.h...
删除Apiif.cxx
编写bin/cint-config...
编写config.status...
创建Makefile...
创建reconfigure...
完成。

运行“make”来构建cint。
运行“make help”以查看可用的构建目标。
minotaur:/tmp/cint-5.18.00>

因此,在我的Slackware 13.1系统上,cint-5.18.00的配置步骤似乎有效。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接