cole-trapnell-lab / monocle3

Other
318 stars 98 forks source link

install issue #715

Closed gucascau closed 2 months ago

gucascau commented 2 months ago

I have upgraded my MacBook to macOS Sonoma Version 14.4.1, however, my previous installed Monocle3 is not able to work. Therefore, I reinstalled it but came across with the following issue that

fatal error: 'cmath' file not found

include

     ^~~~~~~

Anyone have some suggestion, I am struggling with this a lot. Thanks so much in advance.

clang++ -arch arm64 -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG  -I'/Users/XXW004/Library/R/arm64/4.3/library/Rcpp/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c RcppExports.cpp -o RcppExports.o
clang-14: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from RcppExports.cpp:4:
In file included from /Users/XXW004/Library/R/arm64/4.3/library/Rcpp/include/Rcpp.h:27:
In file included from /Users/XXW004/Library/R/arm64/4.3/library/Rcpp/include/RcppCommon.h:30:
In file included from /Users/XXW004/Library/R/arm64/4.3/library/Rcpp/include/Rcpp/r/headers.h:62:
/Users/XXW004/Library/R/arm64/4.3/library/Rcpp/include/Rcpp/platform/compiler.h:100:10: fatal error: 'cmath' file not found
#include <cmath>
         ^~~~~~~
1 error generated.
make: *** [/Library/Frameworks/R.framework/Resources/etc/Makeconf:198: RcppExports.o] Error 1
ERROR: compilation failed for package ‘monocle3’
* removing ‘/Users/XXW004/Library/R/arm64/4.3/library/monocle3’
Warning message:
In i.p(...) :
  installation of package ‘/var/folders/42/8146lff94_bdjcvy1yrcbf0r0000gq/T//Rtmp4nqvDd/file4e0f1b204b71/monocle3_1.3.7.tar.gz’ had non-zero exit status