我想在我的Ubuntu12.04 64位笔记本电脑上安装一个g77编译器。以下情况也是如此:
deb http.hu.Archive.ubuntu.com/ubuntu/ hardy deb-src .//hu.Archive.ubuntu.com/ubuntu/ hardy universe deb http:.hu.Archive.ubuntu.com/ubuntu.com/ubuntu/hardy- deb./hu..ubuntu.com/ubuntu/hardy-更新universe
sudo apt-get update
sudo apt-get install g77当时一切看起来都很好。但是当我试图在我的g77程序上使用Fortran77进行编译时。我发现了以下错误:
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status发布于 2012-10-30 15:37:01
尝试安装fort77 (sudo Apt install fort77),它也安装f2c。使用f77,它调用f2c转换器来编译/链接。祝好运。
https://askubuntu.com/questions/209560
复制相似问题