checking system version (for dynamic loading)... ./configure: 1: ./configure: Syntax error: Untermin

本文记录了解决在编译TCL8.4.11过程中遇到的configure脚本语法错误的过程。通过网上搜索和修改configure文件中多余的引号,成功解决了编译配置阶段的两个问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在编译tcl8.4.11的时候,刚刚运行了configure就出错了:

zz@zz:~/work/mystudff/temp/tcl8.4.11/unix$ ./configure --prefix=$PWD/installed 
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking how to run the C preprocessor... gcc -pipe -E
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... shared
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... ./configure: 1: ./configure: Syntax error: Unterminated quoted string

看提示好像是configure出了问题,于是我就上网去搜了,没有打开cnfigure看:)
得到的结果说是configure里的引号配对错误引起的,搜了关键字 system,找到了一看,还真是:

2133     system=MP-RAS-`awk '{print }' /etc/.relid'`

处理方式是去掉倒数第2个那个多出来的下引号,改为:

7611     system=MP-RAS-`awk '{print }' /etc/.relid`

多了一个下引号,本以为去掉之后可以直接执行完,没想到又有一个错误:

checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... ./configure: 1: ./configure: Syntax error: Unterminated quoted string

这回就有经验了,十有八九还是configure的问题啊,于是又搜FIONBIO,结果有找到了一处

7611     system=MP-RAS-`awk '{print }' /etc/.relid‘`

处理方式依旧是去掉多出来下引号,改为:

7611     system=MP-RAS-`awk '{print }' /etc/.relid`

然后再重新configure就可以了。

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值