Tuesday, December 2, 2014

Setting up RMINC on mac osx 10.6.8

It was a bit of a pain setting up RMINC on my old version of osx but here's my notes:

#install 1.01 version of minc tools for mac

Then it fails to find a library, so I renamed a file: 
sudo cp /opt/minc/lib/libminc2.2.3.00.dylib /opt/minc/lib/libminc2.2.dylib

Add these lines to .profile
source /opt/minc/minc-toolkit-config.sh
export LD_LIBRARY_PATH=/opt/minc/lib/
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/opt/minc/lib:/opt/minc/lib/InsightToolkit

Then install it after grabbing it from github (I can't install git for this mac osx version)
R CMD INSTALL /Users/lfrench/Downloads/rminc/RMINC-master --configure-args='--with-build-path=/opt/minc/'


I guess I should update my osx version... after this I can only load up the library in a R ran from the terminal (maybe it will work in rstudio after a reboot). They key error was that it can't find netcdf

No comments:

Post a Comment