MinGW编译db-db-4.8.30.NC.tar.gz遇到unexpected EOF while looking for matching‘''

2 篇文章 0 订阅
在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命令,即可。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值