Bug 1071146 - Imagick PECL extension install
Summary: Imagick PECL extension install
Keywords:
Status: CLOSED DUPLICATE of bug 1054642
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Vojtech Vitek
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-28 07:09 UTC by Constantin Tovisi
Modified: 2015-05-15 00:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-28 12:50:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.