红联Linux门户
Linux帮助

ubuntu libtool_args+=: not found解决办法

发布时间:2015-10-27 15:27:35来源:linux网站作者:雜貨鋪老闆

今天编译opencv2.0的时候,make后遇到如下情况:

libtool eval: 1: libtool_args+=: not found
libtool eval: 1: libtool_args+=: not found
libtool eval: 1: compile_command+=: not found
libtool eval: 1: finalize_command+=: not found
libtool eval: 1: libtool_args+=: not found
libtool eval: 1: compile_command+=: not found
libtool eval: 1: finalize_command+=: not found
libtool eval: 1: libtool_args+=: not found
libtool eval: 1: compile_command+=: not found


多方查证,发现是bin/sh->dash,ubuntu sh默认的是连接到dash。


解决方法两种:

(1)、bin/sh->bin/bash(sudo rm /bin/sh; cd /bin; ln -s bash sh)
(2)、文件里SHELL修改为bin/bash


Linux .o a .so .la .lo的区别及libtool相关介绍:http://www.linuxdiyf.com/linux/8120.html