莫名其妙这次工程make clean和make都执行不了,提示如下:
make clean 提示make: **No rule to make target `clean'. Stop.
Make提示make: *** No targets specified and no makefile found. Stop.
尝试了多次,曾有一次的提示是:
../libtool: line 466: CDPATH: command not found
../libtool: line 1144: func_opt_split: command not found
libtool: Version mismatch error. This is libtool 2.2.6 Debian-2.2.6a-4, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-4
libtool: and run autoconf again.
在目录lbs下ls,发现makefile不见了o(︶︿︶)o
进入lbs上一级目录 ,执行: rm -rf auto* configure
然后再执行: autoreconf
最后: ./configure --prefix=/home/jabbberd/jabberd_install --enable-debug --enable-mysql --enable-ssl --enable-develper --with-extra-library-path=/home/jabberd/software/udns-0.0.9 --with-extr-include-path=/home/jabberd/software/udns-0.0.9
configure会生成Makefile文件
然后拷贝libtool到
cp /usr/bin/libtool 到configure目录(即lbs上一级目录)
之后再进入lbs进行make,仍会提示一些关于lbs要链接的基础库 libsx.la的错误
可能需要重新进入sx、mio等目录make,根据提示定。
自动生成makefile就是麻烦。
在工程中遇到make clean和make都无法执行的问题,报错包括无规则执行目标`clean'和找不到makefile。进一步发现libtool版本不匹配,提示需要更新aclocal.m4并重新运行autoconf。执行相关命令后,尽管生成了Makefile,但在后续make过程中仍然遇到关于基础库的链接错误,需要检查相关依赖目录并可能需要在子目录重新make。
871

被折叠的 条评论
为什么被折叠?



