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