I upgraded from Ubuntu 16.04 to Ubuntu 18.04 and cannot get R to run on it. I get the following error:
/usr/local/lib/R/bin/exec/R: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
This issue seems to have come up before in similar situations:
I tried purging the library and R and then reinstalling them, with no luck.
This is not a duplicate of how to install R on ubuntu 16.04. I could install R, but could not run it. I had also installed R on previous ubuntu versions without problems.
One thing that might help: I have no problem running R on another computer where I installed ubuntu 18.04; the problem occurs on the computer where I upgraded from 16.04 to 18.04, so something about the upgrading process might be the issue.
/usr/local
? How exactly did you installed R? If you used deb-packages then they were installed in ordinary folders and not to/usr/local
. If you have compiled R, then it was wrong method. Please add output ofdpkg -l | grep "^ii\ \ r\-"
andwhich R
to the question.