ソフトウェアアプリケーションがあり、プログラムを作成する前に、GFortranを最新バージョンに更新する必要があります。更新しましたが、gcc
GFortranは更新されませんでした。これはScientific Linux 7にあります。
$ gcc --version
gcc (GCC) 7.3.0
$ gfortran --version
GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
GFortranをアップデートする方法は?このアプリに固有のものですか?私はそれを使用していますyum
。
編集:gfortranパッケージを検索すると、次のようになります。
$ sudo yum search all gfortran
Loaded plugins: langpacks
============================== Matched: gfortran ===============================
gcc-gfortran.x86_64 : Fortran support
compat-gcc-44-gfortran.x86_64 : Fortran support for compatibility compiler
compat-libgfortran-41.i686 : Compatibility Fortran 95 runtime library version
: 4.1.2
compat-libgfortran-41.x86_64 : Compatibility Fortran 95 runtime library version
: 4.1.2
libgfortran.i686 : Fortran runtime
libgfortran.x86_64 : Fortran runtime
libgfortran-static.i686 : Static Fortran libraries
libgfortran-static.x86_64 : Static Fortran libraries
mingw32-gcc-gfortran.x86_64 : MinGW Windows cross-compiler for FORTRAN for the
: win32 target
mingw64-gcc-gfortran.x86_64 : MinGW Windows cross-compiler for FORTRAN for the
: win64 target
gcc-gfortran.x86_64をインストールしようとすると、次のメッセージが表示されます。
$ yum install gcc-gfortran.x86_64
Loaded plugins: langpacks
Package gcc-gfortran-4.8.5-11.el7.x86_64 already installed and latest version
Nothing to do
常に以前のバージョンに添付されています。
編集2:わかりました。最新の機能を表示するためにインストールしてみましたが、devtoolset-7
表示されません。yum search
しかし、Scientific Linuxからパッケージをインポートする方法は次のとおりです。
yum install yum-conf-repos
yum install yum-conf-softwarecollections
これでdevtoolset-7
表示されますが、yum search
インストールしようとすると、次の出力が表示されます。
$ sudo yum install devtoolset-7
...
--> Finished Dependency Resolution
Error: Package: devtoolset-7-gcc-gfortran-7.2.1-1.el7.sc1.x86_64 (softwarecollections)
Requires: libgfortran4 >= 7.1.1-2
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
しかし、
$ sudo yum search libgfortran4
Loaded plugins: langpacks
Warning: No matches found for: libgfortran4
No matches found
ベストアンサー1
インストールされているパッケージマネージャはyum
(質問タグで確認済みです)、次を使用してGNU Fortranを利用可能な最新バージョンに更新できます。
$ yum update gcc-gfortran