いつも勉強させて頂いてます。
現在、FORTRAN77依存のソフトを使おうとしており、f77を導入しようとしていますが、上手くいきません。
Win10にVirtual boxでCentOS7を入れています。
compat-gcc-34-g77-3.4.6-19.el6.x86_64.rpmを見つけたのですが、
CentOS6.10用でした。
CentOS7ではcompat-gcc-44-gfortranとのことですが、これは以下の様に入っています。
[kak@localhost ~]$ gfortran -v Using built-in specs. COLLECT_GCC=gfortran COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
調べたところf77形式のファイルはほとんどgfortranで読めるとのことでしたが、
自分が使おうとしたものは以下の様にCommand not foundのエラーが出ます。
[kak@localhost naccess]$ sudo csh install.scr [sudo] password for kak: $ naccess installation program $ ---------------------------- $ installing naccess in directory /home/naccess $ created naccess - cshell script $ compiling accall.f f77: Command not found. $ done
設定追加でf77が使えるようになるのか、CentOS6を入れなおして使わなければいけないのかが分かりません。
アドバイスをお願いします。
回答2件
あなたの回答
tips
プレビュー