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.
Related
I can not install mariadb-server. I run the following command:
sudo apt install mariadb-server mariadb-client -y
The following message appears:
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
mariadb-client-core-10.5 : Depends: libreadline5 (>= 5.2) but it is not installable
E: Unable to correct problems, you have held broken packages.
How can I fix these dependecies?
Thanks in advance!!!
=========================================
sudo apt install mariadb-client-core-10.5 -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
mariadb-client-core-10.5 : Depends: libreadline5 (>= 5.2) but it is not installable
E: Unable to correct problems, you have held broken packages.
I have tried with aptitude:
** sudo aptitude install mariadb-server **
The following NEW packages will be installed:
gawk{a} libsigsegv2{a} mariadb-server{b}
0 packages upgraded, 3 newly installed, 0 to remove and 19 not upgraded.
Need to get 434 kB of archives. After unpacking 1.772 kB will be used.
The following packages have unmet dependencies:
mariadb-server : Depends: mariadb-server-10.5 (>= 1:10.5.15+maria~focal) but it is not installable
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) mariadb-server [Not Installed]
Accept this solution? [Y/n/q/?] Y
The following NEW packages will be installed:
gawk{a} libsigsegv2{a}
0 packages upgraded, 2 newly installed, 0 to remove and 19 not upgraded.
Need to get 430 kB of archives. After unpacking 1.761 kB will be used.
Do you want to continue? [Y/n/?] Y
Get: 1 http://es.archive.ubuntu.com/ubuntu impish/main amd64 libsigsegv2 amd64 2.13-1ubuntu2 [14,6 kB]
Get: 2 http://es.archive.ubuntu.com/ubuntu impish/main amd64 gawk amd64 1:5.1.0-1build1 [416 kB]
Fetched 430 kB in 1s (718 kB/s)
Selecting previously unselected package libsigsegv2:amd64.
(Reading database ... 209196 files and directories currently installed.)
Preparing to unpack .../libsigsegv2_2.13-1ubuntu2_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.13-1ubuntu2) ...
Setting up libsigsegv2:amd64 (2.13-1ubuntu2) ...
Selecting previously unselected package gawk.
(Reading database ... 209203 files and directories currently installed.)
Preparing to unpack .../gawk_1%3a5.1.0-1build1_amd64.deb ...
Unpacking gawk (1:5.1.0-1build1) ...
Setting up gawk (1:5.1.0-1build1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.34-0ubuntu3.2) ...
I have installed the client with aptitude:
** sudo aptitude install mariadb-client **
The following NEW packages will be installed:
mariadb-client{b}
0 packages upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
Need to get 3.096 B of archives. After unpacking 10,2 kB will be used.
The following packages have unmet dependencies:
mariadb-client : Depends: mariadb-client-10.5 (>= 1:10.5.15+maria~focal) but it is not installable
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) mariadb-client [Not Installed]
Accept this solution? [Y/n/q/?]
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
The client still does not connect....
Command 'mysql' not found, but can be installed with:
sudo apt install mysql-client-core-8.0 # version 8.0.28-0ubuntu0.21.10.3, or
sudo apt install mariadb-client-core-10.5 # version 1:10.5.15-0ubuntu0.21.10.1
juanma#juanma-HP-Laptop-17-ca1xxx:~$ mariadb
Command 'mariadb' not found, but can be installed with:
sudo apt install mariadb-client-core-10.5
juanma#juanma-HP-Laptop-17-ca1xxx:~$ sudo apt install mariadb-client-core-10.5 -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
mariadb-client-core-10.5 : Depends: libreadline5 (>= 5.2) but it is not installable
E: Unable to correct problems, you have held broken packages.
Thanks
============================================================
In the end I have done it with Docker and with a script and it has worked perfectly. Thank you all:
#!/bin/bash
docker run --name mariadbtest -e MYSQL_ROOT_PASSWORD=mypass -p 3306:3306 -d docker.io/library/mariadb:10.3
sudo apt install mysql-client-core-8.0
mysql -h 172.17.0.2 -u root -p
In the end I have done it with Docker and with a script and it has worked perfectly. Thank you all:
#!/bin/bash
docker run --name mariadbtest -e MYSQL_ROOT_PASSWORD=mypass -p 3306:3306 -d docker.io/library/mariadb:10.3
sudo apt install mysql-client-core-8.0
mysql -h 172.17.0.2 -u root -p
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:
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
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
Using cloudera's distro of hadoop for virtualbox, I first updated the epel:
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86/epel-release-5-4.noarch.rpm
Which goes through just fine. But when I try
sudo yum install R
I get this:
Error: Package: R-core-2.15.2-1.e15.x86_64 (epel)
requires: libtcl8.4.so()(64bit)
Error: Package: R-core-2.15.2-1.e15.x86_64 (epel)
requires: libtk8.4.so() (64bit)
And the installation just quits. Is there any recommended steps from here? I get the same errors when trying to open the files from cran as well.
edit: I finally figured out the issue. Since I'm new to this kind of thing, I didn't realize the epel-release... file was out of date. If you're blindly following some guide like me and they haven't updated the epel release, you can check by going to http://dl.fedoraproject.org/pub/epel/6/x86_64/ and searching for epel-release. The most current version should be there.
By doing:
sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://download2.rstudio.org/rstudio-server-0.97.336-x86_64.rpm
sudo yum install --nogpgcheck rstudio-server-0.97.336-x86_64.rpm
That fixed the issue.