Reputation: 63
I tried to install R using conda as follows: (base) [root@localhost ~]# conda install -c r r After the installation was completed, I tried to run R, and unfortunately, I face following error: $ R /opt/miniconda3/lib/R/bin/exec/R: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory
It should be mentioned there is libreadline.so.7.0 in the following paths:
/lib64/libreadline.so.7.0
/usr/lib64/libreadline.so.7.0
My OS is as below:
(base) [root@localhost ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
Also, output of ($conda list) related to r is as below:
r 3.2.2 0
r-base 3.2.2 0
r-boot 1.3_17 r3.2.2_0a r
r-class 7.3_14 r3.2.2_0a r
r-cluster 2.0.3 r3.2.2_0a r
r-codetools 0.2_14 r3.2.2_0a r
r-foreign 0.8_66 r3.2.2_0a r
r-kernsmooth 2.23_15 r3.2.2_0a r
r-lattice 0.20_33 r3.2.2_0a r
r-mass 7.3_45 r3.2.2_0a r
r-matrix 1.2_2 r3.2.2_0a r
r-mgcv 1.8_9 r3.2.2_0a r
r-nlme 3.1_122 r3.2.2_0a r
r-nnet 7.3_11 r3.2.2_0a r
r-recommended 3.2.2 r3.2.2_0 r
r-rpart 4.1_10 r3.2.2_0a r
r-spatial 7.3_11 r3.2.2_0a r
r-survival 2.38_3 r3.2.2_0a r
readline 8.1 h27cfd23_0
Any help will be appreciated.
Upvotes: 2
Views: 8833
Reputation: 63
I saw the following link: https://askubuntu.com/questions/1168787/libreadline-so-6-issue-in-ubuntu-18-04 and based on one of the answers in this link I tried the following commands:
# cd /usr/lib64
# ln -s libreadline.so.7 libreadline.so.6
Although it fixed my problem, I want to know if there is any better solution? It surprised me why conda didn't installed libreadline.so.6?
Upvotes: 2