[R-SIG-Mac] Compiling packages from source under Mojave (10.14.x)

BATES Timothy t|m@b@te@ @end|ng |rom ed@@c@uk
Tue Apr 2 15:31:10 CEST 2019


Many thanks Roy - it helped me, at least!

Simon: This command ought perhaps to be included on  https://cran.r-project.org/bin/macosx/tools/  as part of the "important note"

It is obscure, with no good duckduckgo or stackoverflow results if the user types in their error message.

Best, tim


> On 30 Mar 2019, at 6:21 pm, Roy Mendelssohn - NOAA Federal via R-SIG-Mac <r-sig-mac using r-project.org> wrote:
>
> I recently updated to Mojave and started getting header not found errors when trying to compile packages.
> The following is in some of the docs,  but just in case it helps,  cause it took me awhile to find it,  after installing the Command Line Tools for Xcode,  you should run:
>
> sudo installer -pkg \
> /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg \
> -target /
>
> and voila packages that had failed to compile just a few minutes ago compiled successfully.
>
> Hope this helps someone. -Roy
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.



More information about the R-SIG-Mac mailing list