# OSX

## Error 1: Missing a Fortran Compiler

The most common error seems to be (or similar).

E> ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
E> clang: error: linker command failed with exit code 1 (use -v to see invocation)

This indicates that the fortran compiler is missing. This can can be installed here (the .dmg file).

## Error 2: Outdated R and/or R-studio

Typically the above has solved the issue. If not, then an additional error could be

Error: (converted from warning) Setting LC_CTYPE failed, using "C"

This was solved by updating both R and R-studio. More information can be found here.

## Error 3: Xcode missing

If that does not work, then perhaps Xcode is missing. This can be installed at the “Mac App Store”.

## GitHub Issues

The following are links to issues on github for troubleshooting installation of BGGM on OSX.