在编译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就可以了。