A
A
Alexander2017-09-13 17:25:34
Python
Alexander, 2017-09-13 17:25:34

How to install php-devel (Centos 6.9, php 5.6)?

Hello! I need to install php-devel in order to install the ZeroMQ PHP extension.
Trying to install it with the following command:
yum install php-devel
I get the following error:

Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos-mirror.rbc.ru
 * extras: centos-mirror.rbc.ru
 * remi: mirror.netsite.dk
 * remi-safe: mirror.netsite.dk
 * updates: centos-mirror.rbc.ru
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.4.45-13.el6.remi will be installed
--> Processing Dependency: php-cli(x86-64) = 5.4.45-13.el6.remi for package: php-devel-5.4.45-13.el6.remi.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.4.45-13.el6.remi will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.45-13.el6.remi for package: php-cli-5.4.45-13.el6.remi.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.45-13.el6.remi will be installed
--> Processing Conflict: php56w-common-5.6.31-1.w6.x86_64 conflicts php-common < 5.6
--> Finished Dependency Resolution
Error: php56w-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

I need PHP-Devel for the full operation of ZMQ, which I plan to use for messaging (websockets, Ratchet Server + ZMQ) in my project. Trying to install the php extension php-zmq ( zeromq.org/bindings:php ) I get an error during the phpize command step:
running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed

And, in turn, Php-Devel cannot be installed due to some kind of repositories conflict. Because of this, I'm stuck in the process of installing and learning ZeroMQ, please tell me how to solve the problem.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
sim3x, 2019-05-27
@web_Developer_Victor

https://www.google.com.ua/search?q=OSError%3A+libe...
https://stackoverflow.com/questions/32499491/pytho...
sudo apt-get update && sudo apt-get install espeak

A
Alexander, 2017-09-15
@donkarabon

The problem was solved by installing php56w-devel.

B
beetlezilla, 2017-09-14
@beetlezilla

You are trying to install php-devel version 5.4 on php 5.6.
Try doing the following
yum-config-manager --enable remi-php56
yum update
yum install php-devel

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question