如何安装Fortran编译器(gcc42-fortran)
我正在尝试安装 R 并在安装过程中遇到此错误: http ://projects.uabgrid.uab.edu/r-group/wiki/install-R,这就是我需要安装fortran编译器的原因。我下载的 gcc42.fortran 的每个 .rpm 都给了我这个错误:
libgfortran2 >= 4.2.1_20070724-50.18 是包所需要的 gcc42-fortran-4.2.1_20070724-50.18.i586 (/gcc42-fortran-4.2.1_20070724-50.18.i586) 需要 gcc42 = 4.2.1_20070724-50.18 按包裹 gcc42-fortran-4.2.1_20070724-50.18.i586 (/gcc42-fortran-4.2.1_20070724-50.18.i586)
有没有更简单的安装方法?就像通过百胜吗?
编辑
我安装了 gcc,但我在提供的链接中对如何在步骤 8 中应用补丁感到相当困惑。
I'm trying to install R and came across this error during installation: http://projects.uabgrid.uab.edu/r-group/wiki/install-R, which is why i need to install the fortran compiler. Every .rpm i have downloaded of the gcc42.fortran has given me this error:
libgfortran2 >= 4.2.1_20070724-50.18
is needed by package
gcc42-fortran-4.2.1_20070724-50.18.i586
(/gcc42-fortran-4.2.1_20070724-50.18.i586)
gcc42 = 4.2.1_20070724-50.18 is needed
by package
gcc42-fortran-4.2.1_20070724-50.18.i586
(/gcc42-fortran-4.2.1_20070724-50.18.i586)
Is there an easier way of installing it? Like via yum?
EDIT
I got gcc installed, but im rather confused in the link provided as how to apply the patch at step 8.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您尝试过包管理器吗?例如,Ubuntu 的 Synaptic 包管理器有一个名为
gfortran
的包。包管理器应该处理依赖关系。Have you tried the package manager? For example, Ubuntu's Synaptic Package Manager has a package called
gfortran
. The package manager should take care of dependencies.编辑或修补配置脚本并不是一个好主意。要编辑的文件是
configure.ac
。但对于仅使用不同的编译器,无需更改任何内容。您可以运行:有关更多详细信息,请参阅
./configure --help
。更简单的安装方法确实是
yum install R
。Editing or patching the configure script is not a good idea. The file to edit would be
configure.ac
. But for just using a different compiler there's no need to change anything. You can run:For more details see
./configure --help
.The easier way to install would indeed be
yum install R
.