在windows中,使用QT5.2.1自带的mingw4.8.0编译db-db-4.8.30.NC.tar.gz时,突然提示下面这样的错误,百思不得其解,请求高人帮助:./libtool: eval: line 7854: unexpected EOF while looking for matching ' ' './libtool: eval : line 7855 syntax error: unexpected end of file我是在msys中进行编译的命令如下:
cd /c/deps/
tar xvfz db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
../dist/configure --disable-replication --enable-mingw --enable-cxx
make
我找了半天,这两行内容,好像没有什么错误,百思不得其解,打开libtool文件后,内容如下所示:
7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 | save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" eval cmd=\"$cmd\" $opt_silent || { func_quote_for_expand "$cmd" eval "func_echo $func_quote_for_expand_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? # Restore the uninstalled library and exit if test "$mode" = relink; then ( cd "$output_objdir" && \ $RM "${realname}T" && \ $MV "${realname}U" "$realname" ) fi exit $lt_exit } done |
其中第7854行内容如下所示:
$opt_dry_run || eval "$cmd" || {
将这行内容中的cmd变量上的双引号,换成单引号即可以解决这个错误提示问题:
$opt_dry_run || eval '$cmd' || {
修改后,继续执行make命令,即可。