我在Kali Linux中工作,试图从源代码(https://github.com/gnss-sdr/gnss-sdr)构建gnss-sdr,我得到了以下make错误。
/bin/bash: aclocal-1.14: command not found
Makefile:957: recipe for target '/root/gpspoof/gnss-sdr/thirdparty/glog/glog-0.3.4/aclocal.m4' failed
make[3]: *** [/root/gpspoof/gnss-sdr/thirdparty/glog/glog-0.3.4/aclocal.m4] Error 127
CMakeFiles/glog-0.3.4.dir/build.make:111: recipe for target 'glog-0.3.4/src/glog-0.3.4-stamp/glog-0.3.4-build' failed
make[2]: *** [glog-0.3.4/src/glog-0.3.4-stamp/glog-0.3.4-build] Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/glog-0.3.4.dir/all' failed
make[1]: *** [CMakeFiles/glog-0.3.4.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
root@kali:~/gpspoof/gnss-sdr/build# aclocal
aclocal aclocal-1.15 我已经安装了aclocal-1.15,我觉得我需要修复错误消息中提到的aclocal.m4文件。我在那个aclocal.m4文件中编辑了aclocal的版本号,这给了我一个关于automake的不同错误。
root@kali:~/gpspoof/gnss-sdr/build# make
[ 1%] Performing build step for 'glog-0.3.4'
cd /root/gpspoof/gnss-sdr/thirdparty/glog/glog-0.3.4 && automake-1.14 --gnu
/bin/bash: line 4: automake-1.14: command not found
Makefile:928: recipe for target '/root/gpspoof/gnss-sdr/thirdparty/glog/glog-0.3.4/Makefile.in' failed
make[3]: *** [/root/gpspoof/gnss-sdr/thirdparty/glog/glog-0.3.4/Makefile.in] Error 1
CMakeFiles/glog-0.3.4.dir/build.make:111: recipe for target 'glog-0.3.4/src/glog-0.3.4-stamp/glog-0.3.4-build' failed
make[2]: *** [glog-0.3.4/src/glog-0.3.4-stamp/glog-0.3.4-build] Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/glog-0.3.4.dir/all' failed
make[1]: *** [CMakeFiles/glog-0.3.4.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2同样,我安装的automake版本是1.15。
发布于 2016-09-22 08:59:32
解决方案是使用aclocal文件在错误中提到的目录中运行aclocal、autoconf、automake、make --distclean。
https://stackoverflow.com/questions/39625663
复制相似问题