我使用以下命令在 Ubuntu 19.04 上安装 g77 编译器:
sudo gedit /etc/apt/sources.list
然后在该文件的底部添加:
deb [trusted=yes] old-releases.ubuntu.com/ubuntu hardy universe
deb-src [trusted=yes] old-releases.ubuntu.com/ubuntu hardy universe
deb [trusted=yes] old-releases.ubuntu.com/ubuntu hardy-updates universe
deb-src [trusted=yes] old-releases.ubuntu.com/ubuntu hardy-updates universe
然后:
sudo apt update
sudo apt install g77
我也试过:
sudo apt update
sudo apt install fort77 gfortran
使用“make”命令安装HypoDD双差震源定位程序时,出现以下行:
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
使用此命令时:
find /usr/ -name crti*
我发现这些文件存在于以下路径中:
/usr/libx32/crti.o
/usr/mipsel-linux-gnu/lib/crti.o
/usr/lib32/crti.o
/usr/lib/x86_64-linux-gnu/crti.o
如何解决此问题以运行“make”命令?
我使用以下说明解决了问题:http ://seanelvidge.com/2017/01/install-g77-on-ubuntu-14-04/如下:
然后添加到文件末尾
保存然后关闭