I am on rhel 8 and trying to upgrade to PHP7.4 and I get the following error
Error:
Problem: package php-pecl-ssh2-1.3.1-1.el8.remi.7.4.x86_64 requires libssh2(x86-64) >= 1.9.0, but none of the providers can be installed
I have the following repos intsalled
Updating Subscription Management repositories.
repo id repo name
ansible-2.9-for-rhel-8-x86_64-rpms Red Hat Ansible Engine 2.9 for RHEL 8 x86_64 (RPMs)
codeready-builder-for-rhel-8-x86_64-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
epel Extra Packages for Enterprise Linux 8 - x86_64
epel-modular Extra Packages for Enterprise Linux Modular 8 - x86_64
nagios-base Nagios
nagiosxi-deps Nagios XI Dependencies
packages-microsoft-com-prod packages-microsoft-com-prod
remi-modular Remi's Modular repository for Enterprise Linux 8 - x86_64
remi-safe Safe Remi's RPM repository for Enterprise Linux 8 - x86_64
rhel-8-for-x86_64-appstream-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Error upgrading to PHP 7.4 installing php-pecl-ssh2
Re: Error upgrading to PHP 7.4 installing php-pecl-ssh2
Hello @btayl
Looks like it is referencing remi repository. Let us know what you get on these:
Or one liner:
Please send over the '/tmp/results.tar/gz' when you get a chance,
Perry
Looks like it is referencing remi repository. Let us know what you get on these:
Code: Select all
rpm -qa | grep php-
rpm -qa | grep 'php-pecl'
yum repolist
uname -a
cat /etc/*release
yum -v list php-pecl-ssh2
php -vCode: Select all
rpm -qa | grep 'php' > /tmp/tmp.txt && rpm -qa | grep 'php-pecl' >> /tmp/tmp.txt && yum repolist >> /tmp/tmp.txt && cat /etc/*release >> /tmp/tmp.txt && yum -v list php-pecl-ssh2 >> /tmp/tmp.txt && php -v >> /tmp/tmp.txt && tar -czvf /tmp/results.tar.gzPerry
Re: Error upgrading to PHP 7.4 installing php-pecl-ssh2
Is there any instructions on how to install on rhel 8 from scratch. like if i can use the builtin php 7.4 or do I need to just use the remi repo and any pre-request that need to be installed first ? anything would be helpful?
Re: Error upgrading to PHP 7.4 installing php-pecl-ssh2
Hello @btayl
Thanks for following up, spun-up a Centos 8 and I see that it install using the following:
Please review and let us know if you have further questions,
Perry
Thanks for following up, spun-up a Centos 8 and I see that it install using the following:
Attached is the results on this so you can compare:Installed Packages
php-pecl-ssh2.x86_64 1.2-2.el8 @nagiosxi-deps
Code: Select all
rpm -qa | grep 'php' > /tmp/tmp.txt && rpm -qa | grep 'php-pecl' >> /tmp/tmp.txt && yum repolist >> /tmp/tmp.txt && cat /etc/*release >> /tmp/tmp.txt && yum -v list php-pecl-ssh2 >> /tmp/tmp.txt && php -v >> /tmp/tmp.txtPerry
You do not have the required permissions to view the files attached to this post.
Re: Error upgrading to PHP 7.4 installing php-pecl-ssh2
I looked for php-pecl-ssh2.x86_64 1.2-2.el8 @nagiosxi-deps using
sudo dnf repository-packages nagiosxi-deps list
and it is now in the repo
fping.x86_64 4.2-2.el8 nagiosxi-deps
libmcrypt.x86_64 2.5.8-26.el8 nagiosxi-deps
libpng15.x86_64 1.5.30-8.el8 nagiosxi-deps
net-snmp.x86_64 1:5.8-7.el8.2 nagiosxi-deps
net-snmp-agent-libs.x86_64 1:5.8-7.el8.2 nagiosxi-deps
net-snmp-devel.x86_64 1:5.8-7.el8.2 nagiosxi-deps
net-snmp-perl.x86_64 1:5.8-7.el8.2 nagiosxi-deps
net-snmp-utils.x86_64 1:5.8-7.el8.2 nagiosxi-deps
perl-Class-Accessor.noarch 0.51-2.el8 nagiosxi-deps
perl-Class-Singleton.noarch 1.5-9.el8 nagiosxi-deps
perl-Config-IniFiles.noarch 3.000002-3.el8 nagiosxi-deps
perl-Crypt-DES.x86_64 2.07-19.1.el8 nagiosxi-deps
perl-DateTime.x86_64 2:1.50-1.el8 nagiosxi-deps
perl-Digest-SHA1.x86_64 2.13-23.el8 nagiosxi-deps
perl-IO-stringy.noarch 2.111-9.el8 nagiosxi-deps
perl-Module-Implementation.noarch 0.09-15.el8 nagiosxi-deps
perl-Net-SNMP.noarch 6.0.1-25.el8.1 nagiosxi-deps
perl-Number-Format.noarch 1.75-13.el8 nagiosxi-deps
perl-Params-Validate.x86_64 1.29-5.el8 nagiosxi-deps
php-imap.x86_64 7.2.11-1.el8 nagiosxi-deps
php-pecl-ssh2.x86_64 1.2-2.el8 nagiosxi-deps
python3-rrdtool.x86_64 1.7.0-16.el8 nagiosxi-deps
python3-simplejson.x86_64 3.17.0-2.el8 nagiosxi-deps
shellinabox.x86_64 2.20-9.el8 nagiosxi-deps
snmptt.noarch 1.4-0.1.el8 nagiosxi-deps
I did find if down loaded libssh2-1.9.0-5.el8.x86_64.rpm from epel and using remi php 7.4 I could install.
is this ok ?
sudo dnf repository-packages nagiosxi-deps list
and it is now in the repo
fping.x86_64 4.2-2.el8 nagiosxi-deps
libmcrypt.x86_64 2.5.8-26.el8 nagiosxi-deps
libpng15.x86_64 1.5.30-8.el8 nagiosxi-deps
net-snmp.x86_64 1:5.8-7.el8.2 nagiosxi-deps
net-snmp-agent-libs.x86_64 1:5.8-7.el8.2 nagiosxi-deps
net-snmp-devel.x86_64 1:5.8-7.el8.2 nagiosxi-deps
net-snmp-perl.x86_64 1:5.8-7.el8.2 nagiosxi-deps
net-snmp-utils.x86_64 1:5.8-7.el8.2 nagiosxi-deps
perl-Class-Accessor.noarch 0.51-2.el8 nagiosxi-deps
perl-Class-Singleton.noarch 1.5-9.el8 nagiosxi-deps
perl-Config-IniFiles.noarch 3.000002-3.el8 nagiosxi-deps
perl-Crypt-DES.x86_64 2.07-19.1.el8 nagiosxi-deps
perl-DateTime.x86_64 2:1.50-1.el8 nagiosxi-deps
perl-Digest-SHA1.x86_64 2.13-23.el8 nagiosxi-deps
perl-IO-stringy.noarch 2.111-9.el8 nagiosxi-deps
perl-Module-Implementation.noarch 0.09-15.el8 nagiosxi-deps
perl-Net-SNMP.noarch 6.0.1-25.el8.1 nagiosxi-deps
perl-Number-Format.noarch 1.75-13.el8 nagiosxi-deps
perl-Params-Validate.x86_64 1.29-5.el8 nagiosxi-deps
php-imap.x86_64 7.2.11-1.el8 nagiosxi-deps
php-pecl-ssh2.x86_64 1.2-2.el8 nagiosxi-deps
python3-rrdtool.x86_64 1.7.0-16.el8 nagiosxi-deps
python3-simplejson.x86_64 3.17.0-2.el8 nagiosxi-deps
shellinabox.x86_64 2.20-9.el8 nagiosxi-deps
snmptt.noarch 1.4-0.1.el8 nagiosxi-deps
I did find if down loaded libssh2-1.9.0-5.el8.x86_64.rpm from epel and using remi php 7.4 I could install.
is this ok ?