LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PHP OAuth extension is not installing || Getting conflicting (https://www.linuxquestions.org/questions/linux-newbie-8/php-oauth-extension-is-not-installing-%7C%7C-getting-conflicting-4175612118/)

taru.tarak 08-17-2017 06:13 AM

PHP OAuth extension is not installing || Getting conflicting
 
Dear All,


I am trying to install PHP OAuth extension for the PHP 7.1 version in CentOS 6.9.
Unfortunately while installing in one step package is not get installed and I am getting below error:

=====================

[root@dev1 /]# yum install php-pecl-oauth
Loaded plugins: fastestmirror, replace
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* epel: kartolo.sby.datautama.net.id
* extras: mirror.nbrc.ac.in
* remi: mirror.netsite.dk
* remi-safe: mirror.netsite.dk
* rpmforge: kartolo.sby.datautama.net.id
* rpmfusion-free-updates: kartolo.sby.datautama.net.id
* updates: mirror.nbrc.ac.in
* webtatic: sp.repo.webtatic.com
remi | 2.9 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-oauth.x86_64 0:1.2.3-9.el6.remi.5.4 will be installed
--> Processing Dependency: php(zend-abi) = 20100525-x86-64 for package: php-pecl-oauth-1.2.3-9.el6.remi.5.4.x86_64
--> Processing Dependency: php(api) = 20100412-x86-64 for package: php-pecl-oauth-1.2.3-9.el6.remi.5.4.x86_64
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-oauth-1.2.3-9.el6.remi.5.4.x86_64
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-oauth-1.2.3-9.el6.remi.5.4.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.45-13.el6.remi will be installed
---> Package php-pear.noarch 1:1.10.5-2.el6.remi will be installed
--> Processing Dependency: php-posix for package: 1:php-pear-1.10.5-2.el6.remi.noarch
--> Running transaction check
---> Package php-process.x86_64 0:5.4.45-13.el6.remi will be installed
--> Processing Conflict: php71w-common-7.1.6-1.w6.x86_64 conflicts php-common < 7.1
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package php71w-common.x86_64 0:7.1.6-1.w6 will be updated
--> Processing Dependency: php71w-common(x86-64) = 7.1.6-1.w6 for package: php71w-mcrypt-7.1.6-1.w6.x86_64
--> Processing Dependency: php71w-common(x86-64) = 7.1.6-1.w6 for package: php71w-xml-7.1.6-1.w6.x86_64
--> Processing Dependency: php71w-common(x86-64) = 7.1.6-1.w6 for package: php71w-gd-7.1.6-1.w6.x86_64
--> Processing Dependency: php71w-common(x86-64) = 7.1.6-1.w6 for package: php71w-mbstring-7.1.6-1.w6.x86_64
--> Processing Dependency: php71w-common(x86-64) = 7.1.6-1.w6 for package: php71w-pdo-7.1.6-1.w6.x86_64
--> Processing Dependency: php71w-common(x86-64) = 7.1.6-1.w6 for package: php71w-intl-7.1.6-1.w6.x86_64
--> Processing Dependency: php71w-common(x86-64) = 7.1.6-1.w6 for package: php71w-cli-7.1.6-1.w6.x86_64
---> Package php71w-common.x86_64 0:7.1.7-1.w6 will be an update
--> Running transaction check
---> Package php71w-cli.x86_64 0:7.1.6-1.w6 will be updated
---> Package php71w-cli.x86_64 0:7.1.7-1.w6 will be an update
---> Package php71w-gd.x86_64 0:7.1.6-1.w6 will be updated
---> Package php71w-gd.x86_64 0:7.1.7-1.w6 will be an update
---> Package php71w-intl.x86_64 0:7.1.6-1.w6 will be updated
---> Package php71w-intl.x86_64 0:7.1.7-1.w6 will be an update
---> Package php71w-mbstring.x86_64 0:7.1.6-1.w6 will be updated
---> Package php71w-mbstring.x86_64 0:7.1.7-1.w6 will be an update
---> Package php71w-mcrypt.x86_64 0:7.1.6-1.w6 will be updated
---> Package php71w-mcrypt.x86_64 0:7.1.7-1.w6 will be an update
---> Package php71w-pdo.x86_64 0:7.1.6-1.w6 will be updated
--> Processing Dependency: php71w-pdo(x86-64) = 7.1.6-1.w6 for package: php71w-mysqlnd-7.1.6-1.w6.x86_64
---> Package php71w-pdo.x86_64 0:7.1.7-1.w6 will be an update
---> Package php71w-xml.x86_64 0:7.1.6-1.w6 will be updated
---> Package php71w-xml.x86_64 0:7.1.7-1.w6 will be an update
--> Running transaction check
---> Package php71w-mysqlnd.x86_64 0:7.1.6-1.w6 will be updated
---> Package php71w-mysqlnd.x86_64 0:7.1.7-1.w6 will be an update
--> Processing Conflict: php71w-common-7.1.7-1.w6.x86_64 conflicts php-common < 7.1
--> Finished Dependency Resolution
Error: php71w-common conflicts with php-common-5.4.45-13.el6.remi.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
=====================

It will be great help if someone let me know why it's conflicting and how we can solve this ?

Regards,
Tarak Nath

AwesomeMachine 08-17-2017 11:00 PM

You're trying to install another version of php-common without removing the old version. Usually the system will just update the package. But it looks like you perhaps installed php-common from an outside source. I think the "remi" in the package name means remix.

But I could be wrong. Why don't you just try removing php-common-5.4.45-13.el6.remi.x86_64?

taru.tarak 08-17-2017 11:25 PM

PHP OAuth extension is not installing || Getting conflicting
 
Thank you so much for your response !

Previously, there was PHP older version, we have updated it from PHP 5.6 to 7.1

I think that during PHP version upgradation time may be someone used the webtatic repo and still its installed and enabled.

In addition, right now we also have the 'remi' repo installed and enabled, may be that's why this conflicts with webtatic when I am pulling php packages from the CentOS base/updates repos.

Let me know if I am right and what will be the best solution as this is our development server. Many on going projects are there and our developers works on this server regular basis.

Any response should be appreciated.

Regards,
Tarak Nath


All times are GMT -5. The time now is 07:38 PM.