> On 18 Oct 2017, at 17:17, David Winsemius <dwinsem...@comcast.net> wrote: > >> >> On Oct 17, 2017, at 11:58 PM, Rainer Krug <rainer_k...@icloud.com >> <mailto:rainer_k...@icloud.com>> wrote: >> >> This is related to Macports and not to R - please post your question on >> their mailing list. If it would be about errors installing R, that would be >> different. >> > > I think using MacPorts might actually be the "error" that needs correction. I > would suggest an alternate strategy. Go to http://r.research.att.com/libs/ > <http://r.research.att.com/libs/> and get the appropriate version of cairo, > probably the most recent one. > > http://r.research.att.com/libs/cairo-1.14.2-darwin.13-x86_64.tar.gz > <http://r.research.att.com/libs/cairo-1.14.2-darwin.13-x86_64.tar.gz> > > Scroll down to the bottom of that page and an appropriate modification of the > two lines for unpacking to the root. > > curl -O http://r.research.att.com/libs/cairo-1.14.2-darwin.13-x86_64.tar.gz > <http://r.research.att.com/libs/cairo-1.14.2-darwin.13-x86_64.tar.gz> > sudo tar fvxz gmp-4.2.4-darwin8-bin4.tar.gz -C / > > > The Mac version of R does not do well with either MacPorts or homebrew > installation of required system packages because those package managers put > them in loaction that are not recognized by the static build that is the > default.
Using homebrew (and as far as I know Macports as well) works without major problems. The problem start when you mix standard installations / homebrew / Macports. This results in problems. So: each of the approaches has it’s own pros and cons - it is only that homebrew and Macports are not officially supported by the R team. Cheers, Rainer > > -- > David. > >> Cheers, >> >> Rainer >> >> >>> On 18 Oct 2017, at 02:36, John <miao...@gmail.com> wrote: >>> >>> Hi, >>> >>> I tried to install Cairo graphics >>> >>> https://www.cairographics.org/download/ >>> >>> and I need to install Macports. >>> >>> I tried to install Macports on my Mac OS Sierra 10.12.6, and type "sudo >>> port install cairo", but it did not respond. I haven't seen any file name >>> or app called Macports, but one file called "port" which is located at >>> >>> loca/bin/port" >>> >>> How should I do it? >>> >>> Thanks, >>> >>> John >>> ******* >>> >>> Last login: Sun Oct 15 02:52:49 on console >>> Johns-MacBook-Pro:~ john$ /opt/local/bin/port ; exit; >>> MacPorts 2.4.2 >>> Entering shell mode... ("help" for help, "quit" to quit) >>> [Users/john] > sudo port install cairo >>> Error: Unrecognized action "port sudo" >>> >>> [[alternative HTML version deleted]] >>> >>> _______________________________________________ >>> R-SIG-Mac mailing list >>> R-SIG-Mac@r-project.org >>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> >> -- >> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, >> UCT), Dipl. Phys. (Germany) >> >> University of Zürich >> >> Cell: +41 (0)78 630 66 57 >> email: rai...@krugs.de >> Skype: RMkrug >> >> PGP: 0x0F52F982 >> >> >> >> >> [[alternative HTML version deleted]] >> >> _______________________________________________ >> R-SIG-Mac mailing list >> R-SIG-Mac@r-project.org <mailto:R-SIG-Mac@r-project.org> >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> <https://stat.ethz.ch/mailman/listinfo/r-sig-mac> > > David Winsemius > Alameda, CA, USA > > 'Any technology distinguishable from magic is insufficiently advanced.' > -Gehm's Corollary to Clarke's Third Law -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) University of Zürich Cell: +41 (0)78 630 66 57 email: rai...@krugs.de Skype: RMkrug PGP: 0x0F52F982 [[alternative HTML version deleted]] _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac