解決策を教えてください。
使用環境 MacBook Air cpu/ 2.13GHz intel core 2 duo memory / 2GB
snow leopard (intel) 対応の gfortran コンパイラーのバイナリーは
http://hpc.sourceforge.net/ で ダウンロード。サイトの説明通り展開しインストール。
テキストエディットで 作成した test.f90
program test
implicit none
write(6,*)'Hello gfortran!(^0^)'
stop
end program test
を gfortran でコンパイルするが、
gfortran: error trying to exec 'as': execvp: No such file or directory のエラーメッセージがでます。
参考
01$ gfortran -v
Using built-in specs.
Target: x86_64-apple-darwin10
Configured with: ../gcc-4.5-20090910/configure --enable-languages=fortran --host=x86_64-apple-darwin10 --build=x86_64-apple-darwin10
Thread model: posix
gcc version 4.5.0 20090910 (experimental) (GCC)
インストールは成功してると思いますが、ファイルをコンパイルできない理由及び解決策を教えてください。
コンパイラはアセンブラが起動できない、といっています。
http://hpc.sourceforge.net/ に、
You will also need to have Apple's Developer Tools installed. They are included on a separate CD in the retail version of OS X and also available as a free download from Apple's Developer Site. Please install the most current version of Developer Tools.
とありますので、必要なツールがインストールされていないのではないかと思われます。
的確な回答をありがとうございました。
Developer Tools ( Xcode 3.2 ) ダウンロード、インストールで解決致しました。