make无法执行

在工程中遇到make clean和make都无法执行的问题,报错包括无规则执行目标`clean'和找不到makefile。进一步发现libtool版本不匹配,提示需要更新aclocal.m4并重新运行autoconf。执行相关命令后,尽管生成了Makefile,但在后续make过程中仍然遇到关于基础库的链接错误,需要检查相关依赖目录并可能需要在子目录重新make。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值