Centos 6.9 vesta upgrading php7 - centos

I'm totally new to linux and trying to upgrade php5.6 to php7. I followed the steps in a tutorial and in step 5 it told me to remove php so i did. In step 6 i had to use that command and all should be fine:
yum --enablerepo=remi-php70 install php70-php php70-php-pear php70-php-bcmath php70-php-pecl-jsond-devel php70-php-mysqlnd php70-php-gd php70-php-common php70-php-fpm php70-php-intl php70-php-cli php70-php php70-php-xml php70-php-opcache php70-php-pecl-apcu php70-php-pecl-jsond php70-php-pdo php70-php-gmp php70-php-process php70-php-pecl-imagick php70-php-devel php70-php-mbstring
But console said i needed these dependencies to install php7. Also there is an error says "libdb4 conflicts with filesystem".
Output:
Error: Package: rpm-4.8.0-55.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: iproute-2.6.32-54.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: apr-util-1.3.9-3.el6_0.1.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: libdb4-utils-4.8.30-13.el7.x86_64 (epel)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libdb4-4.8.30-13.el7.x86_64 (epel)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: httpd-tools-2.2.15-115.el6.1.x86_64 (vesta)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: pam-1.1.1-24.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: libdb4 conflicts with filesystem-2.4.30-3.el6.x86_64
Error: Package: httpd-2.2.15-115.el6.1.x86_64 (vesta)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: rpm-libs-4.8.0-55.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
(I made a lot of search in google tried to download one by one but when I try to install a rpm i downloaded, it requires another dependencies. And it looks like it is going to ask for dependencies forever. I tried to find a command that will find all dependencies and install, it didnt work. I got the same output)
Is there a way to Install php7 or a way to get php5.6 back?

Error: Package: libdb4-utils-4.8.30-13.el7.x86_64 (epel) Requires: libc.so.6(GLIBC_2.14)(64bit)
Looks like you are trying to mix repository from CentOS 6 and CentOS 7 (the el7 suffix), probably EPEL.
See yum repolist to see which repository need to be fixed.
So remove what is needed, at least
yum remove epel-release
yum clean all
To install any PHP version on CentOS from my repository, see the Wizard instructions

Related

unable to install CPAN using Yum on CentOS 7.3

while trying to install "CPAN" using Yum command [CentOS 7.3(64-bit)] I am getting below error:
---> Package glibc.i686 0:2.17-157.el7 will be installed
--> Processing Dependency: glibc-common = 2.17-157.el7 for package: glibc-2.17-157.el7.i686
---> Package kernel-headers.x86_64 0:3.10.0-514.el7 will be installed
---> Package nss-softokn-freebl.i686 0:3.16.2.3-14.4.el7 will be installed
--> Finished Dependency Resolution
Error: Package: glibc-2.17-157.el7.i686 (cent-7_1-os)
Requires: glibc-common = 2.17-157.el7
Installed: glibc-common-2.17-157.el7_3.4.x86_64 (#updates_latest)
glibc-common = 2.17-157.el7_3.4
Available: glibc-common-2.17-157.el7.x86_64 (cent-7_1-os)
glibc-common = 2.17-157.el7
Now on other hand when in run:
yum install glibc-2.17-157.el7.i686
It shows since I have already updated package:
Package matching glibc-2.17-157.el7.x86_64 already installed. Checking for update
how to work around this? for many of the Perl Modules is throws same error and requires glibc-2.17-157.el7.i686.
Below are list of some modules which throws the error (though there are many other packages which are throwing same error):
yum install perl-ExtUtils-Embed
yum install perl-ExtUtils-ParseXS
yum install perl-ExtUtils-Install
I have also tries to install using source packages, but no success :(
Please guide me if I am asking at wrong platform (No down votes plz)
It worked after changing the yum repo. I have edited the repository:
vim /etc/yum.repos.d/CentOS-Base.repo
And added below lines:
[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
Previously it was :
[cent-7_1-os]
name=CentOS-7_1 - os
#baseurl=http://mhxrpmsrv001sas.dsone.3ds.com/rpms/cent/7_1/$basearch/os/latest/
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
priority=1
I think your glibc-common installed is of higher version than required.
first check if there is a version to downgrade to, by
yum list --showduplicates glibc
downgrade the glibc* by
yum downgrade glibc glibc-common glibc-devel glibc-headers
install gcc again
yum install gcc

Installation of postresql on amazon linux server fails

I try to install postgresql-server on amazone linux, but it fails:
[ec2-user#ip-xyz ~]$ sudo yum install postgresql-server
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
961 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package postgresql93-server.x86_64 0:9.3.12-1PGDG.rhel7 will be installed
--> Processing Dependency: systemd-units for package: postgresql93-server-9.3.12-1PGDG.rhel7.x86_64
--> Processing Dependency: systemd-units for package: postgresql93-server-9.3.12-1PGDG.rhel7.x86_64
--> Finished Dependency Resolution
Error: Package: postgresql93-server-9.3.12-1PGDG.rhel7.x86_64 (pgdg93)
Requires: systemd-units
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
There seems to be an issue with unfulfilled requirements.
How can I solve this: Error: Package: postgresql93-server-9.3.12-1PGDG.rhel7.x86_64 (pgdg93)
Requires: systemd-units

installing texinfo on redhat centos 7 ppc64

I am new to RedHat and would like some help to install R-devel.
I tried to install it using the following command:
yum install R-devel
but leads to the first error below...
I am on CentOS 7 with a ppc64 architecture...
I have got to the point of needing to install texinfo-tex, lapack-devel and blas-devel. Please see below:
Error: Package: R-core-devel-3.1.3-1.el7.ppc64 (epel)
Requires: texinfo-tex
Error: Package: R-core-devel-3.1.3-1.el7.ppc64 (epel)
Requires: lapack-devel
Error: Package: R-core-devel-3.1.3-1.el7.ppc64 (epel)
Requires: blas-devel >= 3.0
yum install texinfo-tex does not seem to work as it says No package texinfo-tex available.
So I downloaded the .rpm and used the following command...to try and install it
su -c 'rpm -Uvh texinfo-5.2-7.fc22.ppc64.rpm'
with which i get the following error
warning: texinfo-5.2-7.fc22.ppc64.rpm: Header V3 RSA/SHA1 Signature, key ID xxxxxx:NOKEY
error: Failed dependencies:
perl(Unicode::EastAsianWidth) is needed by texinfo-5.2-7.fc22.ppc64
So i try and install the dependency perl(Unicode::EastAsianWidth)
again trying to download and try and install it...
su -c 'rpm -Uvh perl-Unicode-EastAsianWidth-1.33-4.fc22.noarch.rpm'
warning: perl-Unicode-EastAsianWidth-1.33-4.fc22.noarch.rpm: Header V3 RSA/SHA1 Signature, key ID xxxxx: NOKEY
error: Failed dependencies:
perl(:MODULE_COMPAT_5.20.0) is needed by perl-Unicode-EastAsianWidth-1.33-4.fc22.noarch
so i tried to also install perl using the following:
su -c 'rpm -Uvh perl-5.20.1-314.fc22.ppc64.rpm'
but got even more dependecy checks....i feel like this probably isn't right...am i missing something...
I have also installed perlbrew to check my perl versions this is my result
perlbrew available
# perl-5.21.10
perl-5.20.2
perl-5.18.4
perl-5.16.3
perl-5.14.4
perl-5.12.5
perl-5.10.1
perl-5.8.9
perl-5.6.2
perl5.005_04
perl5.004_05
perl5.003_07
Any help would be greatly appreciated....
Try this command as the root user:
yum localinstall texinfo-5.2-7.fc22.ppc64.rpm

Unable to install Varnish 3 on Centos 7

Varnish 3 package is in the repo /etc/yum.repos.d/varnish.repo
When I do yum --enablerepo=varnish install varnish. It says repo doesn't exist.
[root#VR1gb yum.repos.d]# rpm -qf varnish.repo
varnish-release-3.0-1.el6.noarch
[root#VR1gb yum.repos.d]# yum --enablerepo=varnish-3.0 install varnish
It prompts to install Varnish 4 again if I do that. Same thing as I do.
[root#VR1gb yum.repos.d]# yum install varnish
Instruction on Varnish page clearly doesn't work.
https://www.varnish-cache.org/installation/redhat
Within varnish.repo
[root#VR1gb yum.repos.d]# cat varnish.repo
[varnish-3.0]
name=Varnish 3.0 for Enterprise Linux el6 - $basearch
baseurl=http://repo.varnish-cache.org/redhat/varnish-3.0/el6/$basearch
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-VARNISH
yum --disablerepo=* --enablerepo=varnish-3.0 install varnish
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package varnish.x86_64 0:3.0.6-1.el6 will be installed
--> Processing Dependency: varnish-libs = 3.0.6-1.el6 for package: varnish-3.0.6-1.el6. x86_64
--> Processing Dependency: libpcre.so.0()(64bit) for package: varnish-3.0.6-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: varnish-3.0.6-1.el6.x86_64 (varnish-3.0)
Requires: varnish-libs = 3.0.6-1.el6
Installed: varnish-libs-4.0.2-1.el7.x86_64 (#epel)
varnish-libs = 4.0.2-1.el7
Available: varnish-libs-3.0.3-0.rc1.el6.x86_64 (varnish-3.0)
varnish-libs = 3.0.3-0.rc1.el6
Available: varnish-libs-3.0.3-1.el6.x86_64 (varnish-3.0)
varnish-libs = 3.0.3-1.el6
Available: varnish-libs-3.0.4-1.el6.x86_64 (varnish-3.0)
varnish-libs = 3.0.4-1.el6
Available: varnish-libs-3.0.5-1.el6.x86_64 (varnish-3.0)
varnish-libs = 3.0.5-1.el6
Available: varnish-libs-3.0.6-1.el6.x86_64 (varnish-3.0)
varnish-libs = 3.0.6-1.el6
Error: Package: varnish-3.0.6-1.el6.x86_64 (varnish-3.0)
Requires: libpcre.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root#VR1gb yum.repos.d]# rpm -qa 'varnish'
varnish-release-3.0-1.el6.noarch
[root#VR1gb yum.repos.d]# service varnish start
Starting varnish (via systemctl):

how to fix the dependency issues on centos while installing "Development Tools"

i ran this command
yum groupinstall "Development Tools"
that gave these dependency issues do i need to add repo's to yum list?
Error: Package: git-1.7.10.2-1.w5.x86_64 (webtatic)
Requires: libcurl.so.3()(64bit)
Error: Package: subversion-1.6.13-0.1.el5.rf.x86_64 (webtatic)
Requires: libneon.so.25()(64bit)
Error: Package: subversion-1.6.13-0.1.el5.rf.x86_64 (webtatic)
Requires: python(abi) = 2.4
Installed: python-2.6.6-37.el6_4.x86_64 (#updates)
python(abi) = 2.6
Available: python-2.6.6-51.el6.x86_64 (base)
python(abi) = 2.6
Available: python-2.6.6-52.el6.x86_64 (updates)
python(abi) = 2.6
Error: Package: perl-Git-1.7.10.2-1.w5.x86_64 (webtatic)
Requires: perl(:MODULE_COMPAT_5.8.8)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Webtatic doesn't support Git for RHEL/CentOS 6, however the way you're using the old Webtatic 5 repository suggests you've changed the /etc/yum.repos.d/webtatic.repo to always be enabled.
If you turn that off, you can install RHEL/CentOS 6's base git version, which is 1.7.1.
vi /etc/yum.repos.d/webtatic.repo
...
enable=0
Alternatively you can disable it temporarily for the current yum command:
yum groupinstall "Development Tools" --disablerepo=webtatic
you can try below command which worked for me.
yum clean all
rm -rf /var/cache/yum
yum update