使用gfortran无法编译一个老代码,考虑试一下g77,安装也是花了时间和精力,记录,也供大家参考。
主要是按这个博文操作http://forum.ubuntu.org.cn/viewtopic.php?f=112&t=294673
修改sources.list前先做一个备份sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
并且需要使用超级账户打开文件进行修改
在terminal中使用sudo gedit sources.list
打开后,在下图位置处增加相关语句

just added the following lines to the source.list after the lines of universe repositories for intrepid:
Code:
deb http://us.archive.ubuntu.com/ubuntu/ hardy universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
after that in the terminal:
Code:
sudo apt-get update
sudo apt-get install g77
特别提醒,按照以上方法,我没有安装成功,可能还是对应的服务端没有资源。
哪位高人搞定了,请留言指导,非常感谢!
网友评论