Bug 1071146

Summary: Imagick PECL extension install
Product: OpenShift Online Reporter: Constantin Tovisi <constantin.tovisi>
Component: ImageAssignee: Vojtech Vitek <vvitek>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.xCC: hripps, mfojtik
Target Milestone: ---Keywords: UpcomingRelease
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-28 12:50:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Constantin Tovisi 2014-02-28 07:09:58 UTC
Description of problem:
I am unable to install the Imagick PECL extension on the PHP 5.4 cartridge.

Steps to Reproduce:
1. edit the deplist.txt file to contain "pecl/imagick"
2. git commit
3. git push

Actual results:
...
remote: Build process completed successfully
remote: Installing '/opt/rh/php54/root/usr/include/php/ext/imagick/php_imagick.h'
remote: ERROR: failed to write /opt/rh/php54/root/usr/include/php/ext/imagick/php_imagick.h (copy(/opt/rh/php54/root/usr/include/php/ext/imagick/php_imagick.h): failed to open stream: Permission denied)

-> the install failed

Expected results:
-> a successful install of the Imagick PECL extension

Additional info:
Originally discussed on the OpenShift support forum at https://www.openshift.com/forums/openshift/imagick-pecl-extension-install-issues

Comment 1 Vojtech Vitek 2014-02-28 12:50:50 UTC
@Constantin, thank you for the bug report.

Imagick PECL extension is installed by default on OpenShift, as seen from the following commands:

# PHP 5.3
> php -i | grep imagick
> /etc/php.d/imagick.ini,
> imagick
> imagick module => enabled
> imagick module version => 2.2.2
> imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
> imagick.locale_fix => 0 => 0
> imagick.progress_monitor => 0 => 0

# PHP 5.4
> $ php -i | grep imagick
> /opt/rh/php54/root/etc/php.d/imagick.ini,
> imagick
> imagick module => enabled
> imagick module version => 3.1.2
> imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
> imagick.locale_fix => 0 => 0
> imagick.progress_monitor => 0 => 0

So there is no need to install your custom PECL. You tried to install it using "pecl/imagick" string in deplist.txt file, which is for PEAR dependencies only, not the PECLs. Custom PECLs are not yet supported on OpenShift - see the Feature Request Trello card https://trello.com/c/Ja9IcFIb.

We're going to provide a more accurate error message then reported one in comment 0, thank you.

*** This bug has been marked as a duplicate of bug 1054642 ***