centos install php-odbc dependicies - centos6

I run "yum install php-odbc" command in centos6.x64
and reponse messages in terminal:
yum install php-odbc
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: repo.boun.edu.tr
* epel: mirror.fraunhofer.de
* extras: mirror.alastyr.com
* updates: repo.boun.edu.tr
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-odbc.x86_64 0:5.3.3-46.el6_6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-odbc-5.3.3-46.el6_6.x86_64
--> Finished Dependency Resolution
Error: Package: php-odbc-5.3.3-46.el6_6.x86_64 (updates)
Requires: php-common(x86-64) = 5.3.3-46.el6_6
Installed: php-common-5.6.13-1.el6.remi.x86_64 (installed)
php-common(x86-64) = 5.6.13-1.el6.remi
Available: php-common-5.3.3-40.el6_6.x86_64 (base)
php-common(x86-64) = 5.3.3-40.el6_6
Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
php-common(x86-64) = 5.3.3-46.el6_6
Available: php54w-common-5.4.45-2.w6.x86_64 (webtatic)
php-common(x86-64) = 5.4.45-2.w6
Available: php55w-common-5.5.30-2.w6.x86_64 (webtatic)
php-common(x86-64) = 5.5.30-2.w6
Available: php56w-common-5.6.14-2.w6.x86_64 (webtatic)
php-common(x86-64) = 5.6.14-2.w6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Its so obvious I need to install these packages, but how can I.. and I actually ask for generic solution for this kind of issue. How can I install all dependencies packages with current install.
EDITED: "php -v" response:

This line:
Installed: php-common-5.6.13-1.el6.remi.x86_64 (installed)
Tells me that you're probably running PHP 5.6 installed from the remi repository.
Have a look in /etc/yum.repos.d/ and see if you've got any .repo files with names beginning with remi. In particular, remi.repo.
If you have, try and install using:
yum --enablerepo=remi --enablerepo=remi-php56 install php-odbc

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:

install salt-minion throw Error: Package: salt-2018.3.3-1.el7.noarch (salt-latest) Requires: python-psutil

I have installed python-psutil with pip and can use it in python.
but still install failed.
Salt requires some python modules to be installed before installing Salt. So just try after installing the given python dependency module into your machine.
Command : pip install psutil
Reference - https://pypi.org/project/psutil/

try run install php-xml get error

centos 6.5 yum php 5.5.35 I run yum install php-xml
Get the error messageļ¼š
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirrors.nwsuaf.edu.cn
* epel: mirrors.opencas.cn
* extras: mirrors.pubyun.com
* remi-safe: mirror.awanti.com
* updates: mirrors.pubyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-xml.x86_64 0:5.3.3-46.el6_7.1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_7.1 for package: php-xml-5.3.3-46.el6_7.1.x86_64
--> Finished Dependency Resolution
Error: Package: php-xml-5.3.3-46.el6_7.1.x86_64 (updates)
Requires: php-common(x86-64) = 5.3.3-46.el6_7.1
Installed: php-common-5.5.35-1.el6.remi.x86_64 (#remi-php55)
php-common(x86-64) = 5.5.35-1.el6.remi
Available: php-common-5.3.3-40.el6_6.x86_64 (base)
php-common(x86-64) = 5.3.3-40.el6_6
Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
php-common(x86-64) = 5.3.3-46.el6_6
Available: php-common-5.3.3-46.el6_7.1.x86_64 (updates)
php-common(x86-64) = 5.3.3-46.el6_7.1
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
php5-xmlreader-5.5.14-38.1.x86_64 has missing requires of php5 = ('0', '5.5.14', None)
php5-xmlreader-5.5.14-38.1.x86_64 has missing requires of php5-dom = ('0', '5.5.14', None)
I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this
PHP 5.5.35 is installed from "remi-php55" which is not enabled by default, so you need to enable it to get correct version of php-xml.
See the Configuration Wizard
Either:
yum --enablerepo=remi-php55 install php-xml
Or better (to avoid future issues, and get updates)
yum install yum-utils
yum-config-manager --enable remi-php55
yum install php-xml

Installing R-devel & R-core-devel on RHEL 6

Following the release of R 3, I was having several yum error messages relating to R when yum updating my system. After yum removing R and its dependencies I started again from scratch. However, I cannot get R-devel or R-core-devel installed and cannot get around this issue. Here are my error messages following yum install R-core-devel R-devel
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package R-core-devel.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: xz-devel for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: libicu-devel for package: R-core-devel-3.1.0-5.el6.x86_64
---> Package R-devel.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: R-java-devel = 3.1.0-5.el6 for package: R-devel-3.1.0-5.el6.x86_64
--> Running transaction check
---> Package R-core-devel.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: libicu-devel for package: R-core-devel-3.1.0-5.el6.x86_64
---> Package R-java-devel.x86_64 0:3.0.2-1.el6 will be updated
---> Package R-java-devel.x86_64 0:3.1.0-5.el6 will be an update
---> Package xz-devel.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed
--> Finished Dependency Resolution
Error: Package: R-core-devel-3.1.0-5.el6.x86_64 (epel)
Requires: libicu-devel
You could try using --skip-broken to work around the problem
** Found 2 pre-existing rpmdb problem(s), 'yum check' output follows:
R-java-3.0.2-1.el6.x86_64 has missing requires of R-core = ('0', '3.0.2', '1.el6')
R-java-devel-3.0.2-1.el6.x86_64 has missing requires of R-core-devel = ('0', '3.0.2', '1.el6')
What does this mean and how can I resolve the issue
I had the same problem. The following answer worked for me:
Problems installing R on Linux CentOS 6.2
Specifically, I did this:
$ sudo yum install texinfo-tex
$ rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ sudo yum install tcl
$ sudo yum clean all
$ sudo yum install R

Install R on RedHat errors on dependencies that don't exist

I have installed R before on a machine running RedHat EL6.5, but I recently had a problem installing new packages (i.e. install.packages()). Since I couldn't find a solution to this, I tried reinstalling R using:
sudo yum remove R
and
sudo yum install R
But now I get:
....
---> Package R-core-devel.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: blas-devel >= 3.0 for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: libicu-devel for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: lapack-devel for package: R-core-devel-3.1.0-5.el6.x86_64
---> Package xz-devel.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed
--> Finished Dependency Resolution
Error: Package: R-core-devel-3.1.0-5.el6.x86_64 (epel)
Requires: blas-devel >= 3.0
Error: Package: R-core-devel-3.1.0-5.el6.x86_64 (epel)
Requires: lapack-devel
Error: Package: R-core-devel-3.1.0-5.el6.x86_64 (epel)
Requires: libicu-devel
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
I already checked, and blas-devel is installed, but the newest version is 0.2.8. Checked using:
yum info openblas-devel.x86_64
Any thoughts as to what is going wrong? Thanks.
Do the following:
vim /etc/yum.repos.d/redhat.repo
Change enabled = 0 in [rhel-6-server-optional-rpms] section of the file to enabled=1
yum install R
DONE!
I think I should give reference to the site of solution:
https://bluehatrecord.wordpress.com/2014/10/13/installing-r-on-red-hat-enterprise-linux-6-5/
I had the same issue. Not sure why these packages are missing from RHEL's repos, but they are in CentOS 6.5, so the follow solution works, if you want to keep things in the package paradigm:
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/lapack-devel-3.2.1-4.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/blas-devel-3.2.1-4.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/texinfo-tex-4.13a-8.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm
sudo yum localinstall *.rpm
cheers
UPDATE: Leon's answer is better -- see below.
The best solution I could come up with was to install from source. This worked and was not too bad. However, now it isn't in my package manager.

Resources