Fortran compiler broken

☆樱花仙子☆ 提交于 2019-12-11 11:24:25

问题


I recently updated my operating system from OS X 10.8 to OS X 10.9. Most of the applications still worked after the update, but one of the applications that did not work was g95 (my fortran compiler I use for class). I thought I was compiling faulty code until I tried compiling it on another machine. It seems as though the linker ld is missing a library that was not carried over in the update. The full error is produced on every compile time (as long as there are no syntax errors) ld: library not found for -lcrt1.o. Also, I do not specify this library, I just use the command g95 file.f95 -o file (with a simple script).

My attempts at fixing this mainly include uninstalling to reinstalling. Most recently I uninstalled the application will ALL dependences from MacPorts and re-installed the application with the dependencies just in case it would re-install the library it needs. The command I used to uninstall fortran is provided: sudo port uninstall --follow-dependencies g95. So how am I missing this supposedly crucial library? I wiped virtually everything it needs and reinstalled all dependences for this reinstall.

来源:https://stackoverflow.com/questions/21580324/fortran-compiler-broken

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!