Problems installing R on Linux CentOS 6.3 - r

When installing R on Linux CentOS 6.3 I get the following:
Error: Package: R-core-3.0.1-2.el6.x86_64 (epel)
Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
Error: Package: glibc-headers-2.12-1.80.el6_3.7.x86_64 (updates)
Requires: kernel-headers
Error: Package: glibc-headers-2.12-1.80.el6_3.7.x86_64 (updates)
Requires: kernel-headers >= 2.2.1
This is after I install the epel 6 via:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
then trying:
yum install R

Hi You can install the missing packages by downloading rpm and install using rpm command
libjpeg.so.62 and kernel-headers
To install .rpm package use the following steps
rpm -iv package.rpm
Try
yum install R
After that. :)

If this is a Windows Azure CentOS 6.3 instance, you may have to run:
sudo yum --disableexcludes=main install kernel-headers-2.6.32-279.14.1.el6.openlogic.x86_64
See:
Openlogic Centos 6.3 image: no kernel-headers
Azure VM (OpenLogic CentOS 6.3): no kernel-headers

Related

Is this python36 version issue? How to resolve it?

I am on RHEL. I Installed python by following https://www.rosehosting.com/blog/how-to-install-python-3-6-4-on-centos-7/. I am getting an error when trying to install requests-kerberos
pip3 install requests-kerberos
returns
src/kerberos.c:17:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
sudo yum install gcc
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Package gcc-4.8.5-39.el7.x86_64 already installed and latest version
Nothing to do
Then I tried
sudo yum install python3-devel
and got
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
No package python3-devel available.
Error: Nothing to do
Then I tried
sudo yum install python36-devel
and got
Error: Package: python36-devel-3.6.8-2.el7.ius.x86_64 (ius)
Requires: python36 = 3.6.8-2.el7.ius
Installed: python3-3.6.8-10.el7.x86_64 (#rhel-7-server-rpms)
python36 = 3.6.8-10.el7
Available: python36-3.6.8-2.el7.ius.x86_64 (ius)
python36 = 3.6.8-2.el7.ius
Error: Package: python36-devel-3.6.8-2.el7.ius.x86_64 (ius)
Requires: python36-libs(x86-64) = 3.6.8-2.el7.ius
Installed: python3-libs-3.6.8-10.el7.x86_64 (#rhel-7-server-rpms)
python36-libs(x86-64) = 3.6.8-10.el7
Available: python36-libs-3.6.8-2.el7.ius.x86_64 (ius)
python36-libs(x86-64) = 3.6.8-2.el7.ius
You are on RHEL, yet you follow a random Centos blog post. Below is a summary of some suggestions for a better python36 on both Centos and RHEL (6 or 7) from Red Hat Developers Blog:
Enable SCL
Software Collections are RedHat Satellite repositories that also work if your servers are air-gapped i.e. have no internet.
On Centos:
yum install centos-release-scl
On RHEL7
yum-config-manager --enable rhel-server-rhscl-7-rpms
Install the main SCL package:
yum install rh-python36
Start using the Software Collection you just installed:
scl enable rh-python36 bash
Upgrade pip3 with itself, and update setuptools:
pip3 install --upgrade pip
pip3 install --upgrade setuptools
Install requests-kerberos:
pip3 install requests-kerberos
Notes:
is equivalent to bash sourcing the file /opt/rh/rh-python36/enable
installing the main packages is sufficient by having these:

How to configure and build lzma on CentOS 6?

I am trying to configure and build lzma version 5.0.3 or higher on CentOS 6. I try install R version 3.5.2.
./configure --enable-R-shlib
But this error
Checking if lzma version >= 5.0.3... no
I installed lzma version 4.999.
There is no 5.x.x version package available for CentOS 6
They are having beta version at 4.9.9
Click to check
I suggest you to upgrade your CentOS 6 to CentOS 7
And then you will get support in OS to install latest distribution of this and other packages
sudo yum install xz
And also you can go to this link and download it manually and install it us
sudo rpm -i {package}
R 3.5.2 is available in EPEL repository.
Just install it from packages:
yum install epel-release
yum install R

Installing R in Red Hat Enterprise Linux Server release 7.1 (Maipo)

I am trying to install R on RHEL 7 but i get the following error.
Error: Package: R-core-devel-3.2.3-4.el7.x86_64 (epel)
Requires: blas-devel >= 3.0
Error: Package: R-core-devel-3.2.3-4.el7.x86_64 (epel)
Requires: lapack-devel
Error: Package: R-core-devel-3.2.3-4.el7.x86_64 (epel)
Requires: texinfo-tex
I installed epel-release-7-8.noarch. I also tried to group install Development tools as below.
yum group install "Development tools"
Tried to enable repos
yum-config-manager --enable epel
I tried several suggestions posted in internet. but nothing seems to work or solve my issue. Can somebody help me install R? It should be a simple three steps process but now it became a nightmare for me to complete it. Please find below system details.
Red Hat Enterprise Linux Server release 7.1 (Maipo)
Many thanks!
You should just install couple of dependencies.
$ sudo dnf -y install blas-devel lapack-devel texinfo-tex

Issues with installing R on Centos 7

I'm trying to install R on my CentOS 7 by...
yum install epel-release
yum install R
but i keep seeing this error at end of installing R
....
Error: Package: R-core-3.2.3-1.el6.x86_64 (epel)
Requires: libicuuc.so.42()(64bit)
Error: Package: R-core-3.2.3-1.el6.x86_64 (epel)
Requires: libicui18n.so.42()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I can't figure out what this error means...
What can i do for solving this problem?
or am i missing something with my procedure?
Download the lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm from the below link:
ftp://fr2.rpmfind.net/linux/Mandriva/official/2010.0/x86_64/media/main/release/lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm
Install the RPM:
sudo rpm -ivh lib64icu42-4.2.1-1mdv2010.0.x86_64.rpm
This could help solving the error. Thanks!
rpm link:
https://www.rpmfind.net/linux/rpm2html/search.php?query=libicuuc.so.42()(64bit)

R 3.2 on AWS AMI

I am trying to install R with Rstudio on an Amazon AWS AMI. It currently ships R-3.1 and I would like it to have R-3.2. I am currently using 2013.03 release but the new 2015 version also doesn't have the right version.
The yum install R command won't upgrade it.
root#ip-172-31-3-136 tmp]$ sudo yum install R
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest
| 2.1 kB 00:00
amzn-updates/latest
| 2.3 kB 00:00
704 packages excluded due to repository priority protections
Package R-3.1.1-3.18.amzn1.x86_64 already installed and latest version
Nothing to do
I figured I'd add another rpm repo, so I download the rpm list from the most recent CentOS.
wget http://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
sudo yum localinstall epel-release-7-5.noarch.rpm
sudo yum install R
This also doesn't work and gives me a list of errors like:
Error: Package: python26-2.6.9-1.80.amzn1.x86_64 (#amzn-updates)
Requires: libdb-4.7.so()(64bit)
Removing: db4-4.7.25-17.10.amzn1.x86_64 (installed)
libdb-4.7.so()(64bit)
Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
~libdb-4.8.so()(64bit)
Updated By: db4-4.7.25-18.11.amzn1.x86_64 (amzn-main)
libdb-4.7.so()(64bit)
Error: libdb4 conflicts with filesystem-2.4.30-3.8.amzn1.x86_64
Error: Package: rpm-python26-4.11.2-2.64.amzn1.x86_64 (#amzn-updates)
Requires: libdb-4.7.so()(64bit)
Removing: db4-4.7.25-17.10.amzn1.x86_64 (installed)
libdb-4.7.so()(64bit)
Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
~libdb-4.8.so()(64bit)
Updated By: db4-4.7.25-18.11.amzn1.x86_64 (amzn-main)
libdb-4.7.so()(64bit)
Error: Package: httpd-2.2.29-1.5.amzn1.x86_64 (#amzn-main)
Requires: libdb-4.7.so()(64bit)
Removing: db4-4.7.25-17.10.amzn1.x86_64 (installed)
libdb-4.7.so()(64bit)
Obsoleted By: libdb4-4.8.30-13.el7.x86_64 (epel)
~libdb-4.8.so()(64bit)
Updated By: db4-4.7.25-18.11.amzn1.x86_64 (amzn-main)
libdb-4.7.so()(64bit)
I am trying to install R as part of a provisioning script so preferably I would be able to to not have to install from source as this takes a LONG time.
The --enablerepo=epel trick also does not work either.
root#ip-172-31-3-136 tmp]$ sudo yum install R --enablerepo=epel
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
704 packages excluded due to repository priority protections
Package R-3.1.1-3.18.amzn1.x86_64 already installed and latest version
Nothing to do
This all seems very confusing as the following script does work on a CENTOS 7 box when I start it on digital ocean:
[root#servy-server ~]# yum install -y epel-release
[root#servy-server ~]# yum update -y
[root#servy-server ~]# yum install -y R
[root#servy-server ~]# R
The latest Amazon AWS AMI now ships with R version 3.2.

Resources