Perhaps same as
https://stat.ethz.ch/pipermail/r-sig-mac/2024-September/015042.html

Try this:  sudo rm -rf /Library/Developer/CommandLineTools/usr/include/c++





On Fri, Aug 29, 2025 at 8:09 PM Lee Hsiang Liow <[email protected]> wrote:
>
> New to the list.
>
> Got a new laptop, running OS 15.5 Sequoia.
> R version 4.5.1 (2025-06-13) -- "Great Square Root"
> Have new Xcode, new gofortran
>
> Trying to install an R package that runs C++, have the R dependencies, the 
> error in installation is:
>
> ** using staged installation
> ** libs
> using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.26.6)’
> using SDK: ‘MacOSX15.2.sdk’
> [……. Removing some non relevant info……]
>
> fatal error: 'cmath' file not found
>    37 | #include <cmath>
>       |          ^~~~~~~
> 1 error generated.
>
> Can any one advise? Thank you!
>
>
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> [email protected]
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to