Hmm, that’s a weird one. Can you post the outputs from:
system("gcc --version")
readLines("~/.Renviron")
readLines("~/.Rprofile")
readLines("~/.R/Makevars")
Hmm, that’s a weird one. Can you post the outputs from:
system("gcc --version")
readLines("~/.Renviron")
readLines("~/.Rprofile")
readLines("~/.R/Makevars")
What about if you run:
system("gcc-8 --version")
If that fails, then it means that the cluster doesn’t have the new compiler installed
You’ll need to talk to the server admin again, the error is saying that the cluster you’re logged into does not have gcc-8
installed.
I will reconnect with the server admin.
Thank you so much @andrjohns. I really appreciate your support :)
Is it possible only gcc was upgraded but not g++? That seems unlikely though.
I am not sure. But I guess the admin is seeing the updated gcc 8.3.1 on his terminal. Not sure how to check g++
Just type g++ --version
in the terminal.
Just a quick update, I connected with the server admin and he has fixed the problem using below commands on the R studio terminal. Now I am able to use brms just fine.
Thank you everyone for the support :)
echo "CXX14 = g++" >> ~/.R/Makevars
echo "CXX14FLAGS = -O3 -march=native -mtune=native -fPIC" >> ~/.R/Makevars
echo "source /opt/rh/devtoolset-8/enable" >> ~/.bash_profile
source ~/.bash_profile