I cant install python 36 on below version of centos.
CentOS Linux release 7.6.1810 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
CentOS Linux release 7.6.1810 (Core)
CentOS Linux release 7.6.1810 (Core)
Pytho34 is available but not python36.
yum --disablerepo="*" --enablerepo="epel" info python34
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel: mirrors.kernel.org
Available Packages
Name : python34
Arch : x86_64
Version : 3.4.10
Release : 2.el7
Size : 51 k
Repo : epel/x86_64
Summary : Version 3 of the Python programming language aka Python 3000
URL : http://www.python.org/
License : Python
Description : Python 3 is a new version of the language that is incompatible with the 2.x
: line of releases. The language is mostly the same, but many details, especially
: how built-in objects like dictionaries and strings work, have changed
: considerably, and a lot of deprecated features have finally been removed.
yum --disablerepo="*" --enablerepo="epel" info python36
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel: mirrors.kernel.org
Error: No matching Packages to list
I know other methods to do python36 installation on centos7, but how to do with epel repo?
RHEL 7.7 added Python 3.6. Python 3.6 was removed from EPEL 7 to comply with the EPEL guidelines: No RHEL packages in EPEL. Apparently, each time RHEL releases and CentOS does not yet, there can be a period of breakage. See the discussion on EPEL mailing list and original bug report about this.
Same here, apparently they removed it by mistake? Temporary workaround is to use outdated repo. I've filed a bug, you can observe it on redhat bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1740053
Related
I have python 3.7.5 and Python 3.8 installed on the same windows 10 machine. They were both installed from python.org/downloads. When I run pip install coverage (using the latest release of pip) it installs coverage with c extensions under 3.7.5 and without c extensions under 3.8.2.
How can I force coverage to install with c extensions, as the performance is terrible without them?
It appears 3.7.5 downloads:
https://files.pythonhosted.org/packages/4b/c7/6b1af1c8806fa047469b19861a3438f9ce785aa41c831c15d676ccaaa726/coverage-5.0.3-cp37-cp37m-win32.whl
where as 3.8.2 downloads:
coverage-5.0.3.tar.gz
The later being "without c extensions"
There are no valid coverage wheel for Windows and Python 3.8 at the moment.
The 5.0.3 wheels on PyPI are marked as compatible with cp38-cp38m-win_amd64, so CPython 3.8, with the cp38m ABI variant, for 64-bit Windows.
But, there is no such ABI variant any more. Python 3.8 no longer has a m (--with-pymalloc) binary variant, because builds with or without --with-pymalloc are now ABI compatible.
Pip has followed suit and stopped adding the m flag when looking for wheels, and the wheel project, which creates these distribution files also dropped the m flag.
However, coverage.py is using an older release of wheel to build the distributions, they are using 0.33.1, while the above changes landed in version 0.33.5. You already filed a bug report with the project, I've added my findings there too.
Luckily, the flag is superficial. You can download the wheel file directly from PyPI, rename the file (removing the m from cp38m) and then use pip install path/to/renamed/coverage-5.0.3-cp38-cp38m-win_amd64.whl.
Note: the same issue applies to the 3.9 wheels.
I need to install Virtualbox in RHEL 8 which has a Developer Subscription. Since /etc/yum.repos.d/virtualbox.repo doesn't find http://download.virtualbox.org/virtualbox/rpm/el/8/$basearch I did download rpm directly from virtuallbox with link, http://download.virtualbox.org/virtualbox/rpm/rhel/7/x86_64/VirtualBox-6.0-6.0.8_130520_el7-1.x86_64.rpm.
But again I got this error saying,
Error:
Problem: conflicting requests
- nothing provides libpython2.6.so.1.0()(64bit) needed by VirtualBox-6.0-6.0.8_130520_el6-1.x86_64
- nothing provides python(abi) = 2.6 needed by VirtualBox-6.0-6.0.8_130520_el6-1.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
I found out RHEL 8 supports Python2 and Python3 but no idea about Python. Is there anyway to install Virtualbox in RHEL 8?
Installing the RPM package requires to satisfy the dependencies. As you are downloading a single RPM file and don't have a repo from where to get the dependencies it won't work without some other steps.
The easier way, if you don't mind adding external third-party repositories, is to add the RPM Fusion repositories
What is RPM Fusion?
RPM Fusion is a repository of add-on packages for Fedora and EL+EPEL maintained by a group of volunteers. RPM Fusion is not a standalone repository, but an extension of Fedora. RPM Fusion distributes packages that have been deemed unacceptable to Fedora.
Enable RPM Fusion repositories in RHEL 8 or CentOS 8:
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
Install VirtualBox:
# notice the uppercase V and B
yum install VirtualBox
# add your user to the vboxusers group:
usermod -a -G vboxusers $username
Alternative: Use Virt-Manager with KVM
Check the following article in Red Hat Developers portal on how to configure Virt-Manager and KVM for virtual machines. It's just as easy as VirtualBox and better supported, as this is how real Virtual Machines run in servers.
You can read more about the RPM Fusion repository here.
If you want to try Virt-Manager and need a hand, leave me a comment.
I have upgraded my RHEL OS from 6.7 to 7.5. After upgrading, I found some issues when trying to run yum. Below are the details.
# yum repolist
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by /lib64/libgcc_s.so.1)
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.6.6 (r266:84292, Aug 9 2016, 06:11:56)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
After getting this error, I just installed python2.7 and GLIBC 2.14. But when I am trying to install GLIBC 2.14 from my current GLIBC version 2.12, it is throwing some error. Below are the steps that I am using to install GLIBC 2.14:
tar xvfz glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/opt/glibc-2.14
make
sudo make install
export LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATH
In step5, I am getting error. Below are the details:
# ../configure --prefix=/opt/glibc-2.14
checking for forced unwind support... no
configure: error: forced unwind support is required
I am unaware of this error "unwind support is required".Please let me know how to setup/install forced unwind in Redhat 7.5.
add libc_cv_forced_unwind=yes when configure:
../configure --prefix=/opt/glibc-2.14 libc_cv_forced_unwind=yes
and make
I upgraded my ansible to 2.4 and now I cannot manage my CentOS 5 hosts which are running python 2.4. How do I fix it?
http://docs.ansible.com/ansible/2.4/porting_guide_2.4.html says ansible 2.4 will not support any versions of python lower than 2.6
After I upgraded to ansible 2.4 I was not able to manage hosts running python 2.6+. These were CentOS 5 hosts and this is how I fixed the problem.
First, I installed python26 from epel repo. After enabling epel repo, yum install python26
Then in my hosts file, for the CentOS 5 hosts, I added ansible_python_interpreter=/usr/bin/python26 as the python interpreter.
To specify the python interpreter in the hosts file individually, it will be something like
centos5-database ansible_python_interpreter=/usr/bin/python26
And for a group of hosts, it will be something like
[centos5-www:vars]
ansible_python_interpreter=/usr/bin/python26
And what about python26-yum package? It is required to use yum module to install packages using Ansible.
My experience so far has been that anisible works (gather facts) but that some modules (in particular yum / package) do not because yum uses python 2.4.
I ended up using yum via command and shell modules (not pretty but works).
1) Before you can install python26 you need to fix the repos as CentOS5 is end of life:
( YumRepo Error: All mirror URLs are not using ftp, http[s] or file )
2) then you can install EPEL 5 and pthon26
( https://www.ansible.com/blog/using-ansible-to-manage-rhel-5-yesterday-today-and-tomorrow )
3) then you can use the command module to use yum:
( CentOS 5. ansible_python_interpreter=/usr/bin/python26. Still cannot use yum: module )
many newer ansible modules don't work either due to missing python dependencies.
My intent is just to use Ansible in CentOS5 (or RH 5) to facilitate the upgrade to something newer and supported. ;)
It appears that policycoreutils-python requires higher versions of
the packages : libsemanage-python, auditlibs-python and python-IPy, than the default versions of these packages I have installed on a Centos server (Rocks 6.1). I thought that updating the version of Python would help since the default Python version on the server is 2.6.6.
I installed Python 3.5 by following another answer:
yum install https://centos6.iuscommunity.org/ius-release.rpm
and then installing python35u through yum.
Since 3.5 is not default and only one of the python versions available, I am not sure how to make yum use this version while installing policycoreutils-python.
I am interested in installing policycoreutils-python because I want to update the version of GCC to >=4.7 through the developer toolset package
released by the Scientific Linux community.
My questions are therefore:
1. How do I get policycoreutuils-python installed?
2. Is it a good idea to update several different packages on the server, in the process? I am really new to Centos and I am not sure how to find packages
when yum reports that they are not available. What is the best practice - install from source?
1) CentOS 6.5 is too old to be updated. I.e. please run # yum update every week. CentOS 6.5 was released 'Dec 2013' ! ( And no 'yum install [package] will work anymore ? ? ).
2) Generally always use yum for any package install. And : policycoreutils-python is included in the *Base.repo http://mirror.centos.org/centos/6.8/os/x86_64/Packages/ . And : a package search should always be used : # yum search policycoreutils-python ... i.e. # yum search [name] , or [part of name] .
3) If your old CentOS 6.5 works anyway, the right policycoreutils-python etc. will be installed automatically when installing gcc-4.7 : # yum install devtoolset-1.1-gcc-c++ ... : You don't need to install the complete devtoolset-1.1 .
Important : The slc6-devtoolset.repo must be setup beforehand : # wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
Ref. http://linux.web.cern.ch/linux/devtoolset/