0

I am trying to use a number of R packages that rely on fortran in macOS Sierra. However, I get the following error every time I load the packages. For example:

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
unable to load shared object     '/Library/Frameworks/R.framework/Versions/3.3/Resources/library/lpSolve/libs/lpSolve.so': `maximal number of DLLs reached...

I have tried this proposed solution but to no avail.

curl -O http://r.research.att.com/libs/gfortran-4.8.2-darwin13.tar.bz2
sudo tar fvxz gfortran-4.8.2-darwin13.tar.bz2 -C /

I have also tried re-installing XQuartx and R but not working. I'm thinking about reverting to an earlier version of OS X unless I can figure something out.

Any suggestions?

user50313
  • 15
  • 4
  • 1
    gfortran is part of gcc, which I'd just install with [homebrew](http://brew.sh/) so as not to have to bother with setting your PATH. That said, this could be some other issue entirely; that error message is opaque to me. – alistaire Feb 18 '17 at 01:25
  • This was answered in R-SIG-Mac September 16, 2016 by Henrik Bengtsson. – IRTFM Feb 18 '17 at 07:17

0 Answers0