[R-SIG-Mac] Macports installation problem

美彦 馬場 babayoshihiko at mac.com
Sat Oct 21 00:15:13 CEST 2017


I do not want to mess this ML with yet another option, but Fink, another package manager for macOS, is also an option.  The main reasons I use Fink is to make sure GIS related CRAN packages (e.g. regal) are linked to Fink installed GIS packages (e.g. gdal).

Fink:
1. allows you to have multiple versions of R (e.g. 3.4, 3.3 and 3.2);
2. has a number of CRAN/BioC packages to be stored in /sw/lib/R/3.4/site-library, /sw/lib/R/3.3/site-library and /sw/lib/R/3.2/site-library respectively
(CRAN/BioC libraries are linked to Fink packages);
3. allows users to use CRAN (saved in user directory) and Fink installed package; and
4. does not depend on non-System/Fink installed shared libraries  (so that regal will not be wrongly linked to user-installed gdal)

$ otool -L /sw/lib/R/3.3/site-library/rgdal/libs/rgdal.dylib 
/sw/lib/R/3.3/site-library/rgdal/libs/rgdal.dylib:
	/sw/lib/R/3.3/site-library/rgdal/libs/rgdal.dylib (compatibility version 0.0.0, current version 0.0.0)
	/sw/Library/Frameworks/R.framework/Versions/3.3/Resources/lib/libR.dylib (compatibility version 3.3.0, current version 3.3.1)
	/sw/lib/libgdal.20.dylib (compatibility version 22.0.0, current version 22.1.0)
	/sw/lib/libproj.9.dylib (compatibility version 11.0.0, current version 11.0.0)
	/sw/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.5.0)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1348.1.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 307.4.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)



> 2017/10/21 3:02、MacQueen, Don <macqueen1 at llnl.gov>のメール:
> 
> The OP's question has inspired an interestingly large number of responses.
> 
> One thing I'm curious about, and I don't think I've seen in the discussion, is why the OP needed to install Cairo graphics with respect to R (otherwise the question was indeed off-topic for R-sig-Mac).
> 
> In summary (and I think this is reasonably consistent with other responses; discussion to support my summary follows):
> 
> 1)  Use CRAN R, install dependencies needed for extended R capability on the OS as needed, from whatever source you prefer, or whichever is easiest for R to use
> 2)  If one chooses to install R using MacPorts or homebrew, be prepared to exercise a greater depth of computer science smarts
> 3)  Feel free to install other useful stuff using MacPorts or homebrew, whichever one prefers; there is unlikely to be any conflict with R
> 



More information about the R-SIG-Mac mailing list