问题:
我试图安装geopsy软件,但当我运行sudo make install
时发生以下错误:
cd mseed/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /opt/geopsy-3.3.0/mseed/mseed.pro ) && make -f Makefile install
make[1]: Entering directory '/opt/geopsy-3.3.0/mseed'
[ -d /opt/geopsy-3.3.0/lib ] || mkdir -p /opt/geopsy-3.3.0/lib
cp '/opt/geopsy-3.3.0/lib/libmseed.a' and '/opt/geopsy-3.3.0/lib/libmseed.a' are the same file
make[1]: *** [Makefile:30: install] Error
make[1]: Leaving directory '/opt/geopsy-3.3.0/mseed'
make: *** [Makefile:152: sub-mseed-install_subtargets-ordered] Error 2
sudo ./configure -prefix /path sudo make -j 2
我是Ubuntu的新手。
答案1:
要解决这个问题,请先尝试安装make命令,首先也是最明显的安装方法是执行以下命令:
sudo apt install make
然而,另一个替代方案,也可能是你想要的解决方案是安装整个开发包build-essential,它还包括make命令:
sudo apt install build-essential
如果make命令仍未找到,请检查make binary可执行文件是否存在:
ls /usr/bin/make
/usr/bin/make
检查你是否可以使用完整路径执行命令:
/usr/bin/make --version
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
现在,确保make的路径是可执行shell路径的一部分:
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
现在,你可以尝试重新安装make命令:
sudo dpkg-reconfigure make