Mac OS 10.6.1(snow leopard) で gfortran による fortran90 プログラムファイルのコンパイルができません。

解決策を教えてください。

使用環境 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)

インストールは成功してると思いますが、ファイルをコンパイルできない理由及び解決策を教えてください。

回答の条件
  • URL必須
  • 1人2回まで
  • 登録:
  • 終了:2009/09/26 23:56:15
※ 有料アンケート・ポイント付き質問機能は2023年2月28日に終了しました。

ベストアンサー

id:zzz_1980 No.1

回答回数492ベストアンサー獲得回数64

ポイント60pt

コンパイラはアセンブラが起動できない、といっています。

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.

とありますので、必要なツールがインストールされていないのではないかと思われます。

id:kenshi_g

的確な回答をありがとうございました。

Developer Tools ( Xcode 3.2 ) ダウンロード、インストールで解決致しました。

2009/09/26 23:55:15

コメントはまだありません

この質問への反応(ブックマークコメント)

「あの人に答えてほしい」「この質問はあの人が答えられそう」というときに、回答リクエストを送ってみてましょう。

これ以上回答リクエストを送信することはできません。制限について

回答リクエストを送信したユーザーはいません