Open evgenyneu opened 4 years ago
c++ exception (unknown reason)
has been a known issue, and the instructions to fix it is in the first post to the thread at https://discourse.mc-stan.org/t/dealing-with-catalina-ii/11802.
@ssp3nc3r thank you so much, the issue is fixed. I needed to do two things
Install macos-rtools-3.2.0.pkg.
Add the following line to the end of .R/Makevars
file:
SHLIB_CXX14LDFLAGS+=-Wl,-rpath,/Library/Frameworks/R.framework/Resources/lib /Library/Frameworks/R.framework/Resources/lib/libc++abi.1.dylib
My full .R/Makevars
is this:
# clang: start
CFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
CCFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
CXXFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
CPPFLAGS=-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include
SHLIB_CXXLDFLAGS+=-Wl,-rpath,${R_HOME}/lib ${R_HOME}/lib/libc++abi.1.dylib
SHLIB_CXX14LDFLAGS+=-Wl,-rpath,/Library/Frameworks/R.framework/Resources/lib /Library/Frameworks/R.framework/Resources/lib/libc++abi.1.dylib
# clang: end
Hi, I'm getting an error when running example code 9.12 from Statistical Rethinking 2 (Compiled February 28, 2019). Note that the code ran successfully for the first time, but after that it fails.
Here is the output
I just installed rethinking library today:
I'm on macOS Catalina 10.15.1, R version 3.6.1
Also note, that the following code works every time: