
Ubuntu日本語フォーラム

ログインしていません。
ubuntu12.04にインテルのフォートランコンパイラをインストールしました。
tgzファイルの解凍及びインストールは問題なく進んだのですが、端末にifort -vと入力しても「コマンドが見つかりません」と表示されてしまいます。
パスを通すために.bashrcファイルの最終行に
# set up environment for Intel compiler source /opt/intel/bin/compilervars.sh intel64
# set up environment for Intel compiler source /opt/intel/bin/ifortvars.sh intel64
# set up environment for Intel compiler source /opt/intel/compilers_and_libraries_2016/linux/bin/compilervars.sh intel64
# set up environment for Intel compiler source /opt/intel/compilers_and_libraries_2016.1.150/linux/bin/compilervars.sh intel64
# set up environment for Intel compiler source /opt/intel/compilers_and_libraries_2016.1.150/linux/bin/ifortvars.sh intel64
を追加したのですがそれでもだめでした。
パスの通し方が間違っているのでしょうか。アドバイスよろしくお願いいたします。
オフライン
# set up environment for Intel compiler
source /opt/intel/bin/compilervars.sh intel64
と、2行に分けて、.bashrc に記入してください。
# で始まる行は、コメントとして扱われ、無視されます。
結果は、ログイン後
printenv PATH
と、端末で実行すれば、コマンド検索パスに追加されているか確認できます。
オフライン
ありがとうございます。
2行に分けて.bashrcに追加し、パスの確認もできましたが、相変わらずifortコマンドは実行されません。
ifortvars.shとcompilervars.shにパスを通せばコマンドが実行されると聞いたので
find / -name ifortvars.sh 2>/dev/nullと
find / -name compilervars.sh 2>/dev/null
で検索をかけて表示された合計5つへパスを通したことになります。
これでもifortが実行されない理由は何が考えられますでしょうか。
オフライン