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

标签 c linux interpreter

我正在尝试使用 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

最佳答案

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

牛头怪:/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。

关于c - 安装 cint 解释器时,运行 ./configure 返回语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26514959/

相关文章:

linux - 在 Visual Studio Code 中使用脚本设置环境

Linux 查找命令 shell 扩展

scala - 在运行时编译和执行Scala代码

python - Ruby 和 Python 如何实现它们的交互式控制台?

python - 沙盒/逐行运行 python 代码

c - Sublime Text - 有什么方法可以从标准 C 库中查看方法的定义吗?

c - 为什么此代码打印行而不是单个字符

c - 在 C99 模式之外使用的“for”循环初始声明

linux - 终端和 vim 之间的键绑定(bind)冲突

c - nvidia cuda使用机器的所有核心