如何安装gfortran4.8
Tofloor
poster avatar
V
deepin
2020-01-31 01:25
Author
如题,安装老是说依赖,不行。求指导。
Reply Favorite View the author
All Replies
avatar
zhangn1985
deepin
2020-01-31 05:10
#1
对于确定版本,很可能装不上去,因为GCC4.8实在太老了。直接安装gfortran可能有戏。
Reply View the author
avatar
187******12
deepin
2020-01-31 05:16
#2
把安裝步驟和錯誤信息貼出來吧。
目前倉庫裡的版本是gfortran(4:6.3.0-4)
Reply View the author
avatar
V
deepin
2020-02-01 00:58
#3
https://bbs.deepin.org/post/188341
对于确定版本,很可能装不上去,因为GCC4.8实在太老了。直接安装gfortran可能有戏。 ...

wjw@wjw-PC:~$ sudo apt-get install gfortran
[sudo] wjw 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
gfortran : 依赖: gfortran-6 (>= 6.3.0-9~) 但是它将不会被安装
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
wjw@wjw-PC:~$ sudo apt-get install gfortran*
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
注意,根据Glob 'gfortran*' 选中了 'gfortran-sparc64-linux-gnu'
注意,根据Glob 'gfortran*' 选中了 'gfortran-6-sh4-linux-gnu'
注意,根据Glob 'gfortran*' 选中了 'gfortran-5-doc'
注意,根据Glob 'gfortran*' 选中了 'gfortran-6-mips64-linux-gnuabi64'
注意,根据Glob 'gfortran*' 选中了 'gfortran-6-multilib-mips-linux-gnu'
注意,根据Glob 'gfortran*' 选中了 'gfortran-6-multilib-sparc64-linux-gnu'
注意,根据Glob 'gfortran*' 选中了 'gfortran-arm-linux-gnueabi'
注意,根据Glob 'gfortran*' 选中了 'gfortran-mips64el-linux-gnuabi64'
注意,根据Glob 'gfortran*' 选中了 'gfortran-6-powerpc64le-linux-gnu'
注意,根据Glob 'gfortran*' 选中了 'gfortran-6-s390x-linux-gnu'
注意,根据Glob 'gfortran*' 选中了 'gfortran-mod-14'
注意,根据Glob 'gfortran*' 选中了 'gfortran-mips64-linux-gnuabi64'
注意,根据Glob 'gfortran*' 选中了 'gfortran-powerpc64-linux-gnu'
注意,根据Glob 'gfortran*' 选中了 'gfortran-multilib-s390x-linux-gnu'
注意,根据Glob 'gfortran*' 选中了 'gfortran-mingw-w64'
注意,。。。。。。。。。。。。。。。。。。。。
gfortran-multilib-mips64el-linux-gnuabi64 : 依赖: gcc-multilib-mips64el-linux-gnuabi64 (>= 4:6.3.0-4) 但是它将不会被安装
gfortran-multilib-mipsel-linux-gnu : 依赖: gcc-multilib-mipsel-linux-gnu (>= 4:6.3.0-4) 但是它将不会被安装
gfortran-multilib-powerpc-linux-gnu : 依赖: gcc-multilib-powerpc-linux-gnu (>= 4:6.3.0-4) 但是它将不会被安装
gfortran-multilib-powerpc64-linux-gnu : 依赖: gcc-multilib-powerpc64-linux-gnu (>= 4:6.3.0-4) 但是它将不会被安装
gfortran-multilib-s390x-linux-gnu : 依赖: gcc-multilib-s390x-linux-gnu (>= 4:6.3.0-4) 但是它将不会被安装
gfortran-multilib-sparc64-linux-gnu : 依赖: gcc-multilib-sparc64-linux-gnu (>= 4:6.3.0-4) 但是它将不会被安装
gfortran-powerpc-linux-gnu : 依赖: gcc-powerpc-linux-gnu (>= 4:6.3.0-4)
gfortran-powerpc-linux-gnuspe : 依赖: gcc-powerpc-linux-gnuspe (>= 4:6.3.0-4)
gfortran-powerpc64-linux-gnu : 依赖: gcc-powerpc64-linux-gnu (>= 4:6.3.0-4)
gfortran-powerpc64le-linux-gnu : 依赖: gcc-powerpc64le-linux-gnu (>= 4:6.3.0-4)
gfortran-s390x-linux-gnu : 依赖: gcc-s390x-linux-gnu (>= 4:6.3.0-4)
gfortran-sh4-linux-gnu : 依赖: gcc-sh4-linux-gnu (>= 4:6.3.0-4)
gfortran-sparc64-linux-gnu : 依赖: gcc-sparc64-linux-gnu (>= 4:6.3.0-4)
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
Reply View the author
avatar
V
deepin
2020-02-01 01:06
#4
我其实就想安装开源软件,按照这个步骤https://blog.csdn.net/weixin_43244402/article/details/100770186,但是编译的时候那个arch.make文件里不知道如何设置gfortran项,才要安装 gfortran,其实系统自带有gcc,不确定是否一定要gfortran才能编译。有大神弄过这个软件的话给点意见。谢谢。
Reply View the author
avatar
187******12
deepin
2020-02-01 07:17
#5
本帖最后由 cyberhero 于 2020-1-31 23:35 编辑

這個軟件應該是需要gfortran,configure的時候會測試gfortran是否能用。生成的.make文件可能不需要手動設置gfortran。
先sudo apt update, 試一下能否正常安裝其它軟件。

Reply View the author
avatar
187******12
deepin
2020-02-01 07:29
#6
本帖最后由 cyberhero 于 2020-1-31 23:39 编辑

update後,更新系統sudo apt dist-upgrade, 特別留意這兩布有沒有錯誤。
可能是更新不完全。

Reply View the author
avatar
187******12
deepin
2020-02-01 13:43
#7
龍芯debian10貌似編譯成功
apt install openmpi-bin openmpi-commonapt install liblapack3  liblapack-dev
gfortran一定要裝的



Reply View the author
avatar
187******12
deepin
2020-02-01 13:45
#8
好像沒有進入並行模式
Reply View the author
avatar
让我康康
deepin
2020-02-02 00:41
#9
我用sudo apt-get install gfortran是没问题的。
你是不是自己重新编译了gcc?
Reply View the author