Why I can't find g++ in my dictionary when I was trying to install "iRF" package in R?

Viewed 15

I was trying to install "iRF" in R.

Here is the error:

/bin/sh: /usr/local/bin/g++: No such file or directory
make: *** [ExportedFunctionsRIT.o] Error 127
ERROR: compilation failed for package ‘iRF’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/iRF’

And when I turned into the terminal to see my g++ and gcc, I found them in a different path:

Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I never faced this before. I was trying to install gfortran and this error came when I installed xcode and gcc again. I'd appreciate it if someone could help me fix this. By the way, if you know how to install gfortran to deal with the compline error in installing packages form gihub, that would be nice.

Thanks!

0 Answers
Related