我有Ubuntu 10.04和gcc版本4.4.3
我一直在尝试安装这个名为SUPER_LU的库,其中有一些代码是用Fortran编写的。在顶级目录中键入make会给我以下错误
gaurish108@gaurish108-laptop:~/Desktop/Research Meetings/PETSC and SUper LU/SuperLU_4.0$ make
( cd INSTALL; make )
make[1]: Entering directory `/home/gaurish108/Desktop/Research Meetings/PETSC and SUper LU/SuperLU_4.0/INSTALL'
g77 -o testdlamch dlamch.o lsame.o dlamchtst.o
***make[1]: g77: Command not found***
make[1]: *** [testdlamch] Error 127
make[1]: Leaving directory `/home/gaurish108/Desktop/Research Meetings/PETSC and SUper LU/SuperLU_4.0/INSTALL'
make: *** [install] Error 2
在我尝试下载一些数学库的时候,这也发生在我身上了?总是认为g77 cam与gcc捆绑在一起。当我尝试使用sudo apt-get install g77单独安装g77时 这就是我得到的
gaurish108@gaurish108-laptop:~/Desktop/Research Meetings/PETSC and SUper LU/SuperLU_4.0$ sudo apt-get install g77[sudo] password for gaurish108:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package g77 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package g77 has no installation candidate
我该怎么办?需要一些紧急帮助......谢谢
答案 0 :(得分:0)
从gcc 4.0开始,g77已被gfortran取代。