看板 Fortran 關於我們 聯絡資訊
唉..上一個問題還沒解決,又有別的問題 不過我覺得這個問題應該得先解決 首先,我是使用 gfortran 就是我在寫完 fortran codes 後,會先存成 xxx.f 這樣 然後用終端機,進入 xxx.f 所在的資料夾 輸入:gfortran xxx.f 然後再輸入 ./a.out 就可以執行了 那一般在 ./configure 完之後,就會出現 Makefile 檔對吧! 而我在 ./configure 後,卻出現錯誤訊息如下: checking for F77 compiler... no Error: F77 compiler (g77) not found. 當然,這樣也沒有出現 Makefile 檔 我上網查了一下,說是可使用 chmod 我就輸入:\chmod 777 ./configure 這樣也的確沒有出現錯誤訊息 可是卻也沒出現 Makefile 檔 那我再打:make 就得到:make: *** No targets specified and no makefile found. Stop. 我在想是不是我的 gfortran 少了什麼 以下是我 gfortran 相關的東東: http://ppt.cc/nGW4 希望大家幫忙orz 感謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.122.161.21 ※ 文章網址: https://www.ptt.cc/bbs/Fortran/M.1421056727.A.975.html
physbook: configure應該會要選用哪個compiler 01/12 18:33
terryys: 試試./configure F77=gfortran 01/13 11:03
我試了樓上所說的 可是得到以下的錯誤訊息: Warning: Unsupported option F77=gfortran ignored. checking for F77 compiler... no Error: F77 compiler (g77) not found. 唉..好困擾阿QQ ※ 編輯: paopaotw (140.122.161.21), 01/13/2015 22:01:03
george1224: 先確認你的系統有沒有g77吧@@ 01/13 22:27
perceval: gfortran可以compile f77,所以檢查一下你的configure 01/14 00:35
paopaotw: 請問樓上 configure要怎麼檢查呢? 謝謝>_< 01/14 03:21
perceval: configure 通常是可以編輯的script檔,不過你應該先看一 01/14 04:33
perceval: 下有沒有readme之類的檔案,裡面應該有說如何選compiler 01/14 04:35
perceval: 如果沒有readme之類的說明檔,那就只好研究configure檔 01/14 04:36
perceval: 不過一般來說都很複雜 01/14 04:36