Home Forums zMiscellaneous gEcon installation errors on macOS Sierra

Tagged: 

This topic contains 0 replies, has 1 voice, and was last updated by  Leprofesseur } 1 year, 7 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2407 Reply

    Leprofesseur }
    Keymaster

    Error in dyn.load(file, DLLpath = DLLpath, …) :
    unable to load shared object ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/gEcon/libs/gEcon.so’:
    dlopen(/Library/Frameworks/R.framework/Versions/3.3/Resources/library/gEcon/libs/gEcon.so, 6): Library not loaded: /usr/local/opt/gcc48/lib/gcc/4.8/libgfortran.3.dylib
    Referenced from: /Library/Frameworks/R.framework/Versions/3.3/Resources/library/gEcon/libs/gEcon.so
    Reason: image not found
    Error: package or namespace load failed for ‘gEcon’
    starting httpd help server … done

    SOLUTION:
    1. Install fortran from GNU website: https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
    2. Make directory tree under /usr/local
    cd /usr/local
    mkdir opt
    cd opt
    mkdir gcc48
    cd gcc48
    mkdir lib
    cd lib
    mkdir gcc
    mkdir 4.8
    cd 4.8
    3. make links
    ln -s /usr/local/gfortran/lib/libgfortran.3.dylib .
    ln -s /usr/local/gfortran/lib/libquadmath.dylib libquadmath.0.dylib

    4. You are all done! Just go to Packages&Data -> Package Manager and select gEcon.

    Please subscribe Leprofesseur } youtube.com/leprofesseurorg on Youtube!

    Sincerely, Harrish

Viewing 1 post (of 1 total)
Reply To: gEcon installation errors on macOS Sierra
Your information: