PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, September 19, 2022

[FIXED] Why is it so difficult to get phpize to work...?

 September 19, 2022     centos, imagick, pecl, phpize     No comments   

Issue

Believe me, I'm not somebody that easily gives up but I am about to on this one...Also I'm not a linux expert but normally I can get arround just fine.

I started installing Imagick and all went fine except for the 'pecl install imagick'. It gives me the error 'phpize' failed, a common error as became clear after googling it, and after searches on this forum.

Everything that is mentioned doesn't work, installed AND enabled the EPEL and Remi repository's. The Remi's for all php version's 55,56,70,71 are enabled and listed.

I'm supposed to get the php-devel package installed to get phpize working but it just isn't there, yum searches don't find anything and updating everything does nothing either.

The target PHP version is 7.0 on CentOS 7 People say it is a bug in the PEAR extension and tried the 'patches' but nothing...I'm rebooting after each major change to be sure things are loading, if that is even necessary. I have full root access so that can't be it.

If it IS a bug, why is it still there. The only thing I need is the imagick library installed. Nowadays humans can make computers think, but getting phpize to work is hard apparently...

Sorry for ranting, but I hate it to spend time on things that should be easy to fix.

I hope somebody can help me, if more info is needed, please let me know ;)


Solution

Using remi repository, you usually don't need the pecl command, as most of extensions are available there, see the list.

As explained by the Wizard:

yum install php-pecl-imagick

or, for SCL version

yum install php70-php-pecl-imagick

This is the latest version , build against the latest version of ImageMagick 6 (not 7 which lack lot of features).

The php-devel and php-pear package are also available, and allow to use the pecl command.

The Remi's for all php version's 55,56,70,71 are enabled and listed.

When using multiple versions (SCL) it also works, example for 7.0, only have to enable the SCL:

yum install php70-php-devel php70-php-pear
scl enable php70 bash
pecl install imagick


Answered By - Remi Collet
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing