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

前端 未结 7 1463
梦毁少年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).

提交回复
热议问题