Install RnetCDF package in MacOSX (update without macports)
1- install Xcode from app store (take care, it is 4 GB !)
2- Open Xcode from application folder and install line command tools
3- Open terminal and enter: sudo xcodebuild -license
4- Go to the end and enter agree
Install Homebrew:
https://brew.sh/index_fr
brew install netcdf
If you obtain an error, try: brew link --overwrite netcdf
brew install hdf5
brew install udunits
cd ~/Downloads/
curl -O https://cran.r-project.org/src/contrib/RNetCDF_2.4-2.tar.gz
export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
R CMD INSTALL --configure-args="CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib LIBS=-lhdf5" RNetCDF_2.4-2.tar.gz
Commentaires
Enregistrer un commentaire