I just installed the latest R version (4.1.1 (2021-08-10)) on my Ubuntu 18.04.6 LTS. I tried to install some packages. I started with stringi and I have the following error:
Error: package or namespace load failed for ‘stringi’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/user/R/x86_64-pc-linux-gnu-library/4.1/stringi/libs/stringi.so':
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/user/R/x86_64-pc-linux-gnu-library/4.1/stringi/libs/stringi.so)
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/user/R/x86_64-pc-linux-gnu-library/4.1/stringi’
The downloaded source packages are in
‘/tmp/RtmpXRZprI/downloaded_packages’
Warning message:
In install.packages("stringi") :
installation of package ‘stringi’ had non-zero exit status
I tried to install libraries as described here
sudo apt-get install libcurl4-openssl-dev libssl-dev
however it didn't help. I'm total newbie in such installations and ubuntu libraries. Could you give me a hint how to solve this problem I also want to install devtools
(same problem).