Skip to content
Advertisement

Fail install mongodb on Centos 7 with Package error

I try to install mongodb to Centos 7 server with PHP. I follow the install guide from https://www.php.net/manual/en/mongodb.installation.pecl.php

But sudo pecl install mongodb show error message:

JavaScript

As the error message recommded, I install php-devel package by

JavaScript

But I got a lot of Dependency error:

JavaScript

Below are the server details, any solution?

yum repolist

JavaScript

rpm -q centos-release

JavaScript

php –version

JavaScript

Advertisement

Answer

remi-php73 Remi’s PHP 7.3 RPM repository for Enterprise Linux 7 – x86_64 384

Looks like you are using my repository which provides most extensions

So, instead of trying to build it from sources, I recommend to simply use the available RPMs

JavaScript

Or if you use the Software Collections

JavaScript

As explained by the Wizard

BTW, the installation issue seems related to ultra-centos-7.4-base (don’t even know what is this) as you have installed packages from 7.5

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement