Mac OS X R error “ld: warning: directory not found for option”

前端 未结 7 1416
梦毁少年i
梦毁少年i 2020-12-01 04:38

I am trying to install an R package from source, but getting an error:

* installing *source* package ‘mclust’ ...
** package ‘mclust’ successfully unpacked a         


        
相关标签:
7条回答
  • 2020-12-01 05:34

    I received the same error on MAC. All I needed to do was to install gfortran-6.1.pkg from https://cran.r-project.org/bin/macosx/tools/. Make sure that the package is installed under /usr/local/gfortran so it can be found by R.

    Alternatively you can install it via homebrew typing brew cask install gfortran in the terminal (it may ask for your password).

    0 讨论(0)
提交回复
热议问题