make无法执行

来源:互联网 发布:labview数据采集教程 编辑:程序博客网 时间:2024/06/05 00:18

莫名其妙这次工程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就是麻烦。

原创粉丝点击