@@ -1557,9 +1557,11 @@ Remember that @LaTeX{} needs to be on the path.
15571557@c
15581558The front page of a @acronym {CRAN } site has a link `Download R for (Mac)
15591559OS X' which takes you to a new page. Two files are offered for download,
1560- @file {R- @value {VERSIONno }-arm64.pkg } and @file {R- @value {VERSIONno }-x86_64.pkg }.
1561- Both are for macOS 11 or later (@I {Big Sur }, @I {Monterey }, @I {Ventura },
1562- @I {Sonoma }, @dots {}).
1560+ @file {R- @value {VERSIONno }-arm64.pkg } (for macOS 14 or later, @I {Sonoma },
1561+ @I {Sequoia }, @I {Tahoe }, @dots {}) and
1562+ @file {R- @value {VERSIONno }-x86_64.pkg } (for macOS 11 or later, @I {Big
1563+ Sur }, @I {Monterey }, @I {Ventura }, @I {Sonoma }, @I {Sequoia }, @I {Tahoe },
1564+ @dots {}).
15631565
15641566The first is for `Apple Silicon' (@emph {aka } `M1', `M2', @dots {}) Macs, the
15651567second for older Macs with an @cputype {x86_64 } (Intel) CPU.
@@ -1586,9 +1588,9 @@ component is needed to use package @pkg{tcltk}. The `@I{Texinfo}' component
15861588is only needed by those installing source packages or @R {} from its
15871589sources.)
15881590
1589- Note for @I { Ventura } users : installation from the @file {Downloads } folder
1590- may not be allowed or may require additional authorization, so we
1591- suggest you download somewhere else such as your desktop or home folder.
1591+ Note: installation from the @file {Downloads } folder may not be allowed
1592+ or may require additional authorization, so we suggest you download
1593+ somewhere else such as your desktop or home folder.
15921594
15931595These are Apple Installer packages. If you encounter any problem during
15941596the installation, please check the Installer log by clicking on the
@@ -1646,7 +1648,7 @@ as on any other Unix-alike: see the next chapter of this manual. There
16461648are some small differences which may surprise users of @R {} on other
16471649platforms, notably the default location of the personal library
16481650directory (under @file {~/Library/R }, e.g.@:
1649- @file {~/Library/R/arm64/4.4 /library }), and that warnings, messages and
1651+ @file {~/Library/R/arm64/4.6 /library }), and that warnings, messages and
16501652other output to @file {stderr } are highlighted in bold.
16511653
16521654@c https://ryanhomer.github.io/posts/build-openmp-macos-catalina-complete
@@ -1742,7 +1744,7 @@ pkgutil --files org.r-project.arm64.texinfo
17421744@end example
17431745
17441746@noindent
1745- (For the ` Intel build, replace @code {arm64 } by @code {x86_64 }.)
1747+ (For the Intel build, replace @code {arm64 } by @code {x86_64 }.)
17461748These are paths relative to @file {/ }, the root of the file system.
17471749@c Maybe too dangerous for naive users.
17481750@c file.remove removes empty directories on Unix.
@@ -1770,8 +1772,8 @@ versions can be installed together.} of the @R{} framework which it
17701772finds installed. This can be avoided by using @command {pkgutil
17711773--forget } (see the previous section). However, note that different
17721774versions are installed under
1773- @file {/Library/Frameworks/R.framework/Versions } as @file {4.4 -arm64 } (or
1774- @file {4.4 -x86_64 }), @file {4.3 } and so on, so it is not possible to have
1775+ @file {/Library/Frameworks/R.framework/Versions } as @file {4.6 -arm64 } (or
1776+ @file {4.6 -x86_64 }), @file {4.5-arm64 } and so on, so it is not possible to have
17751777different @samp {4.x.y } versions installed for the same @samp {x } and CPU
17761778type.
17771779
@@ -5094,11 +5096,7 @@ Windows).
50945096@cindex macOS
50955097
50965098The instructions here are for `Apple Silicon' (@cputype {arm64 }) or Intel
5097- 64-bit (@cputype {x86_64 }) builds on macOS 11 (@I {Big Sur }), 12
5098- (@I {Monterey) }, 13 (@I {Ventura }), 14 (@I {Sonoma }) and likely later.
5099- (They may well work on Intel macOS 10.14 or 10.15, but are untested
5100- there.)
5101-
5099+ 64-bit (@cputype {x86_64 }) builds on macOS 11 (@I {Big Sur }) and later.
51025100
51035101@node Prerequisites
51045102@subsection Prerequisites
@@ -5139,7 +5137,8 @@ partially or completely remove them.
51395137
51405138The Command Line Tools provide C and C++ compilers derived from @I {LLVM }'s
51415139@command {clang } but nowadays known as `Apple clang' with different
5142- versioning (so Apple clang 15 is unrelated to @I {LLVM } clang 15).
5140+ versioning (so Apple clang 17 is unrelated to @I {LLVM } clang 17 and
5141+ Apple clang 21 is only similar to @I {LLVM } clang 21).
51435142
51445143@item
51455144A Fortran compiler. @xref {Fortran compilers }.
@@ -5161,10 +5160,10 @@ components. Intel users want the @code{darwin20} components: the
51615160
51625161Or this can be done manually, by for example
51635162@example
5164- curl -OL https://mac.r-project.org/bin/darwin20 /arm64/pcre2-10.44-darwin.20 -arm64.tar.xz
5165- sudo tar -xvzf pcre2-10.44-darwin.20 -arm64.tar.gz -C /
5166- curl -OL https://mac.r-project.org/bin/darwin20 /arm64/xz-5.6.3-darwin.20 -arm64.tar.xz
5167- sudo tar -xvzf xz-5.6.3-darwin.20 -arm64.tar.xz -C /
5163+ curl -OL https://mac.r-project.org/bin/darwin23 /arm64/pcre2-10.44-darwin.23 -arm64.tar.xz
5164+ sudo tar -xvzf pcre2-10.44-darwin.23 -arm64.tar.gz -C /
5165+ curl -OL https://mac.r-project.org/bin/darwin23 /arm64/xz-5.6.3-darwin.23 -arm64.tar.xz
5166+ sudo tar -xvzf xz-5.6.3-darwin.23 -arm64.tar.xz -C /
51685167@end example
51695168@noindent
51705169(@command {sudo } is not needed if your account owns @file {/opt/R/arm64 } or
@@ -5318,23 +5317,23 @@ Updating an @cputype{arm64} build may fail because of the bug described
53185317at @uref {https://openradar.appspot.com/FB8914243 } but @emph {ab initio }
53195318builds work. This has been far rarer since macOS 13.
53205319
5321- If you are using the macOS 13 @abbr {SDK }@footnote {@command {ls -l `xcrun
5322- -show-sdk-path` } in a terminal will show you which @abbr {SDK } is selected. },
5323- you may need to add something like @code {-mmacos-version-min=12.0 } to
5324- @samp {CFLAGS }.
5320+ @c If you are using the macOS 13 @abbr{SDK}@footnote{@command{ls -l `xcrun
5321+ @c -show-sdk-path`} in a terminal will show you which @abbr{SDK} is selected.},
5322+ @c you may need to add something like @code{-mmacos-version-min=12.0} to
5323+ @c @ samp{CFLAGS}.
53255324
5326- Linker warnings like
5327- @example
5328- ld: warning: could not create compact unwind for _sort_:
5329- register 26 saved somewhere other than in frame
5330- ld: warning: ld: warning:
5331- could not create compact unwind for _arcoef_: registers 23 and 24 not saved contiguously in frame
5332- ld: warning: could not create compact unwind for ___emutls_get_address:
5333- registers 23 and 24 not saved contiguously in frame
5334- @end example
5335- @noindent
5336- can be ignored. These stem from compiled Fortran code, including its
5337- run-time libraries.
5325+ @c Linker warnings like
5326+ @c @ example
5327+ @c ld: warning: could not create compact unwind for _sort_:
5328+ @c register 26 saved somewhere other than in frame
5329+ @c ld: warning: ld: warning:
5330+ @c could not create compact unwind for _arcoef_: registers 23 and 24 not saved contiguously in frame
5331+ @c ld: warning: could not create compact unwind for ___emutls_get_address:
5332+ @c registers 23 and 24 not saved contiguously in frame
5333+ @c @ end example
5334+ @c @ noindent
5335+ @c can be ignored. These stem from compiled Fortran code, including its
5336+ @c run-time libraries.
53385337
53395338The default security settings can make it difficult to install Apple
53405339packages which have not been `notarized'@footnote {See
@@ -5376,17 +5375,17 @@ symlink is broken, the driver will issue a warning and use @code{xcrun
53765375is used when using @command {gfortran } to link, so not when building @R {}
53775376but when installing a few packages.)
53785377
5379- Other builds of @command {gfortran } for @code {arm64 } macOS 14 are
5380- available at
5381- @uref {https://github.com/fxcoudert/gfortran-for-macOS/releases }. To use
5382- one of the pre-built compilers with Apple @command {clang } needs
5383- something like
5384- @example
5385- LDFLAGS="-L/opt/R/arm64/lib -rpath /usr/local/gfortran/lib"
5386- @end example
5387- @noindent
5388- in @file {config.site } to ensure the matching Fortran run-time libraries are
5389- found.
5378+ @c Other builds of @command{gfortran} for @code{arm64} macOS 14 are
5379+ @c available at
5380+ @c @ uref{https://github.com/fxcoudert/gfortran-for-macOS/releases}. To use
5381+ @c one of the pre-built compilers with Apple @command{clang} needs
5382+ @c something like
5383+ @c @ example
5384+ @c LDFLAGS="-L/opt/R/arm64/lib -rpath /usr/local/gfortran/lib"
5385+ @c @ end example
5386+ @c @ noindent
5387+ @c in @file{config.site} to ensure the matching Fortran run-time libraries are
5388+ @c found.
53905389
53915390@node Cairo graphics
53925391@subsection Cairo graphics
@@ -5713,9 +5712,8 @@ installed at first use. Check if a @abbr{JRE} is installed by running
57135712installed this may prompt you to install it from Oracle@footnote {Oracle
57145713Java has a restrictive licence , unlike distributions based on @I {OpenJDK }. }
57155714(but see the next paragraph). We recommend you install a version with
5716- long-term support, e.g.@: 17 or 21@footnote {The planned next @I {LTS }
5717- release is 25 in September 2025. Java 8 @emph {aka } 1.8.0 is still
5718- @I {LTS } but some packages require 11 or later. } but not 18-- 20, 22-- 24
5715+ long-term support, e.g.@: 21 or 25@footnote {Java 8 @emph {aka } 1.8.0 is still
5716+ @I {LTS } but some packages require 11 or later. } but not 18-- 20, 22-- 24, 26
57195717with a 6-month lifetime.
57205718
57215719The currently simplest way to install Java is from
@@ -5763,17 +5761,15 @@ Adoptium} set e.g.@:
57635761JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
57645762@end example
57655763@noindent
5766- in @file {config.site }. For Java 21 from @uref {https://jdk.java.net/ }
5764+ in @file {config.site }. For Java 25 from @uref {https://jdk.java.net/ }
57675765(which might no longer be available), use
57685766@example
5769- JAVA_HOME=/path/to/jdk-21 .jdk/Contents/Home
5767+ JAVA_HOME=/path/to/jdk-25 .jdk/Contents/Home
57705768@end example
57715769
57725770@c For an @cputype{arm64} build, the earliest Java version which is
57735771@c officially supported is 17.
57745772
5775- @c jdk.java.net no longer has Java 11 nor 17 LTS builds.
5776-
57775773Note that it is necessary to set the environment variable @env {NOAWT } to
57785774@code {1 } to install many of the Java-using packages.
57795775
@@ -5847,23 +5843,24 @@ However, there are some important details.
58475843@itemize
58485844
58495845@item
5850- Current @acronym {CRAN } macOS distributions are targeted at @I {Big Sur }
5851- so it is wise to ensure that the compilers generate code that will run
5852- on @I {Big Sur } or later. With the recommended compilers we can use
5846+ Current @acronym {CRAN } macOS distributions are targeted at @I {Sonoma } or
5847+ @I {Big Sur } (Intel) so it is wise to ensure that the compilers generate
5848+ code that will run on that OS or later. With the recommended
5849+ compilers we can use something like
58535850@example
5854- CC="clang -mmacos-version-min=11 .0"
5855- CXX="clang++ -mmacos-version-min=11 .0"
5856- FC="/opt//gfortran/bin/gfortran -mmacosx-version-min=11 .0"
5851+ CC="clang -mmacos-version-min=14 .0"
5852+ CXX="clang++ -mmacos-version-min=14 .0"
5853+ FC="/opt//gfortran/bin/gfortran -mmacosx-version-min=14 .0"
58575854@end example
58585855@noindent
58595856or set the environment variable
58605857@example
5861- export MACOSX_DEPLOYMENT_TARGET=11 .0
5858+ export MACOSX_DEPLOYMENT_TARGET=14 .0
58625859@end example
58635860
58645861@item
5865- Using the flag @option {-Werror=partial-availability } can help trigger
5866- compilation errors on functionality not in @I {Big Sur }.
5862+ Using the C/C++ flag @option {-Werror=partial-availability } can help trigger
5863+ compilation errors on functionality not in @I {Sonoma }.
58675864
58685865@item
58695866Check that any compiled code is not dynamically linked to libraries only
0 commit comments