在fedeora12下自带了kdevelop<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />3.5.4,但用kdevelp3.5.4 编译文件或工程时会出现如下错误:
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
./libtool: line 818: X--tag=CC: command not found
../libtool: line 851: libtool: ignoring unknown tag : command not found
../libtool: line 818: X--mode=compile: command not found
../libtool: line 985: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 986: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1129: Xgcc: command not found
../libtool: line 1129: X-DHAVE_CONFIG_H: command not found
../libtool: line 1129: X-I.: command not found
../libtool: line 1129: X-I/home/belial/Hello/src: No such file or directory
../libtool: line 1129: X-I..: command not found
../libtool: line 1129: X-O0: command not found
../libtool: line 1129: X-g3: command not found
../libtool: line 1129: X-MT: command not found
../libtool: line 1129: Xhello.lo: command not found
../libtool: line 1129: X-MD: command not found
../libtool: line 1129: X-MP: command not found
../libtool: line 1129: X-MF: command not found
../libtool: line 1129: X.deps/hello.Tpo: No such file or directory
../libtool: line 1129: X-c: command not found
寻找问题:
可以猜想是libtool出了问题,GNU libtool 是一个通用库支持脚本,将使用动态库的复杂性隐藏在统一、可移植的接口中。
查看自己所建工程目录下的ltmain.sh脚本文件,发现该脚本中指定的libtool VERSION=1.5a
但是用rpm -qa|grep libtool 查看到libtool的版本为2.2.6。应该这是版本不兼容出错了;
解决方法:
利用互联网参考了一些帖子,用以下方法把该问题得以解决:
1.找到libtool2.2.6的ltmain.sh :一般在/usr/share/libtool/config 目录中
2.把该ltmain.sh拷贝到自己所建的工程目录下,覆盖原有的ltmain.sh
3.如果这时已有debug目录了,也得把debug目录下的ltmian.sh覆盖
4.重新automake configure 等等就可以了
Enjoy it!
网上有一个关于在Ubuntu下面解决该问题的办法,贴出来共参考(具体没有去试)
解决方法1:
原因:由于新版的libtool的bug引起,在新利得管理中uninstall libtool2.5.*再下载libtool_1.5.26安装就可以了。
下载libtool_1.5.26-1ubuntu1_i386.deb,解压得到libtool_1.5.26-1Ubuntu1_i386.deb
解决方法2:
在debug目录下找到libtool,把里面的$echo全部替换为$ECHO
文章评论(0条评论)
登录后参与讨论