【问题标题】:While installing cint interpreter, running ./configure returns a syntax error安装 cint 解释器时,运行 ./configure 会返回语法错误
【发布时间】: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


【解决方案1】:

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

牛头怪:/tmp> cd cint-5.18.00/
牛头怪:/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...
正在创建重新配置...
完成。

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

所以配置步骤似乎适用于我的 Slackware 13.1 系统上的 cint-5.18.00。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-10-20
    • 2014-11-25
    • 2011-02-24
    • 2015-11-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多