看板 LinuxDev 關於我們 聯絡資訊
不好意思,我是linux初學者。 最近灌了ubuntu12.04,想下載ifort compiler, 於是到intel網頁下載後, 依照 :http://www.linuxidc.com/Linux/2012-07/65068.htm 網頁上的步驟下去安裝。 但到了修改環境變數時,出了問題, 我的ifortvars.csh 和 ifortvars.sh 路徑是在:/opt/intel/bin 底下, 所以我在 ~/.bashrc 裡的最後一行, 增加了: source /opt/intel/bin/ifortvars.sh ia32 儲存之後,再用 source ./bashrc 更新 以為就可以成功,但我輸入: ifort -V 卻得到: ifort: command not found 我再用: whereis ifort 卻可以得到 ifort:/opt/intel/bin/ifort 的路徑..... 不知道是哪裡出問題, 讓ifort complier 仍然無法叫出。 懇請指點 ,謝謝。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.4.195
cobrasgo:command not found指的是系統預設路徑找不到ifort 10/19 20:34
cobrasgo:方法一是你把ifort加到系統預設路徑,方法二是把ifort所 10/19 20:34
cobrasgo:在路徑加到系統預設路徑。你可以先echo $PATH,再一步步 10/19 20:35
cobrasgo:做實驗,這樣會比較有fu 10/19 20:35
cobrasgo:不過一般來說開發程式,方法二比較好 10/19 20:37