dependenciesmac - difx/difx GitHub Wiki

Max OSX Requirements

DiFX compiles and runs but has not been extensively tested. Xcode must have been installed. Recommended to then use "Brew" to satisfy external dependencies. Specifically install:

  • openmpi gcc fftw libtool pkg-config automake autoconf gawk pgplot bison

Starting with Mojave, Apple seems to be less interested in a canonical unix-type OS. The Xcode install process now is (all as root or sudo):

  • download Xcode from Apple store
  • xcode-select --install
  • xcodebuild -license
  • installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

That last step is to have /usr/include appear. Apparently it is now buried in the SDK somewhere and you can see it with

  • xcrun --show-sdk-path

OSX ships with a very old version of bison, which fails to compile the vex parses. Brew also refuses to install in a way which overrides syste, default. So you also need to

  • export PATH="/usr/local/opt/bison/bin:$PATH"