issues|March 20, 2018|1 min read

php55w-common conflicts with php-common-5.* | Php issues while installing libraries

TL;DR

Fix PHP package conflicts (php55w-common vs php-common) by installing php-devel headers so pecl can locate the required PHP headers in /usr/include/php.

php55w-common conflicts with php-common-5.* | Php issues while installing libraries

I was trying to install mongo extension with pecl.

pecl install mongo

It gave me error:

  • pecl install mongo phpize failed
  • phpize Can't find PHP headers in /usr/include/php

Then, I tried installing php-commons extension.

It gave me errors:

Error: php55w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64</li>

Solution

Php version: 5.5

I searched php*-devel in yum repo:

yum search devel | grep php

I got “php55w-devel”

I installed it:

yum installphp55w-devel

I tried installing mongo again:

pecl install mongo

Error:

configure: error: Cannot find OpenSSL's &lt;evp.h&gt;

ERROR: `/var/tmp/mongo/configure --with-mongo-sasl=no' failed

I installed openssl-devel

yum install openssl-devel

Again tried:

pecl install mongo

Voila! It installed

Related Posts

Drupal: How to detect country and redirect to country specific website by using Cloudflare

Drupal: How to detect country and redirect to country specific website by using Cloudflare

Introduction Assume you have a drupal website and using cloudflare. You are…

A Practical Guide for better understanding Git Diff

A Practical Guide for better understanding Git Diff

Introduction In this guide, We will get basic understanding of various options…

ReactJS - How to restrict data type for different kind of data

ReactJS - How to restrict data type for different kind of data

Introduction Javascript is not a strict type language. We can use a variable to…

Drupal 8 - How to hide help link About text formats and text format guidelines

Drupal 8 - How to hide help link About text formats and text format guidelines

Problem In drupal textarea field, it was always a pain to see the two links…

Shell script to extract single file from a bunch of jar files

Shell script to extract single file from a bunch of jar files

Each jar file has a manifest file in META_INF/MANIFEST.MF I have to read each…

A Practical Guide on how to work with Git log command and history

A Practical Guide on how to work with Git log command and history

Introduction In this post, we will see ways to look at git history logs. For…

Latest Posts