Fixing Pardiso libraries

Alec Jacobson

May 28, 2014

weblog/

Here's what I did to get pardiso's dynamic libraries working on mac os x:

sudo mv ~/Downloads/libpardiso500-MACOS-X86-64.dylib /usr/local/lib
sudo ln -s /usr/local/lib/libpardiso500-MACOS-X86-64.dylib /usr/local/lib/libpardiso.dylib
sudo install_name_tool -id /usr/local/lib/libpardiso500-MACOS-X86-64.dylib /opt/local/lib/libpardiso500-MACOS-X86-64.dylib
sudo install_name_tool -change /usr/local/lib/libgfortran.3.dylib /opt/local/lib/libgcc/libgfortran.3.dylib /usr/local/lib/libpardiso500-MACOS-X86-64.dylib
sudo install_name_tool -change /usr/local/lib/libgomp.1.dylib /opt/local/lib/libgcc/libgomp.1.dylib /usr/local/lib/libpardiso500-MACOS-X86-64.dylib
sudo install_name_tool -change /usr/local/lib/libgcc_s.1.dylib /opt/local/lib/libgcc/libgcc_s.1.dylib /usr/local/lib/libpardiso500-MACOS-X86-64.dylib
sudo install_name_tool -change /usr/local/lib/libquadmath.0.dylib /opt/local/lib/libgcc/libquadmath.0.dylib /usr/local/lib/libpardiso500-MACOS-X86-64.dylib

I think there's a fancier way to do this using @rpath, but these hardcoded paths got me rolling at least