我使用以下命令在 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”命令安装时低下DD双差地震震源定位程序中,出现以下几行:
/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”命令的问题?
答案1
我使用以下说明解决了该问题:http://seanelvidge.com/2017/01/install-g77-on-ubuntu-14-04/如下:
sudo find /usr/ -name "crti.o"
gedit ~/.bashrc
然后添加到文件末尾
LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
export LIBRARY_PATH
保存并关闭
source ~/.bashrc