Bug 1054642 - Error show when install pecl/imagick for php-5.3/5.4 app
Summary: Error show when install pecl/imagick for php-5.3/5.4 app
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Vojtech Vitek
QA Contact: libra bugs
URL:
Whiteboard:
: 1066083 1071146 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-17 07:59 UTC by Yan Du
Modified: 2018-12-04 17:31 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-20 13:51:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
full build log (30.98 KB, text/plain)
2014-01-17 07:59 UTC, Yan Du
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 725883 0 None None None 2018-12-04 17:31:41 UTC

Description Yan Du 2014-01-17 07:59:30 UTC
Created attachment 851445 [details]
full build log

Description of problem:

Below error show when install pecl/imagick for php-5.3/5.4 app

remote: Build process completed successfully
remote: Installing '/usr/lib64/php/modules/imagick.so'
remote: ERROR: failed to write /usr/lib64/php/modules/imagick.so (copy(/usr/lib64/php/modules/imagick.so): failed to open stream: Permission denied)
remote:
remote: Preparing build for deployment
remote: Deployment id is c6d644ba
remote: Activating deployment
remote: Starting PHP 5.3 cartridge (Apache+mod_php)
remote: Result: success
remote: Activation status: success
remote: Deployment completed with status: success


Version-Release number of selected component (if applicable):
INT(devenv_4234)


How reproducible:
Always


Steps to Reproduce:
1. Create a php application
#rhc app create php1 php-5.4/php-5.3
2. In app's local repo, add dependency to deplist.txt
echo pecl/imagick >> deplist.txt
3. Commit changes and git push


Actual results:
Error show when install pecl/imagick for php-5.3/5.4 app


Expected results:
remote: Checking pear: pecl/imagick
remote: 
remote: Extension already installed in the system: pecl/imagick


Additional info:
Full build log attached.

Comment 1 Vojtech Vitek 2014-01-17 17:01:37 UTC
OpenShift doesn't support PECLs officially yet. Users are advised to put PEAR deps into deplist.txt file, not PECLs.

See these two Trello Cards:
- https://trello.com/c/fSWvzkPM
- https://trello.com/c/Ja9IcFIb.

Also, feel free to make a Feature Request for having the imagick library installed by default.

Closing as UPSTREAM.

Comment 3 Xiaoli Tian 2014-02-18 05:09:46 UTC
*** Bug 1066083 has been marked as a duplicate of this bug. ***

Comment 4 Aleksandar Kostadinov 2014-02-20 13:41:51 UTC
I'm running with devenv_4399 and I see the same issue. Please feel free to close again if my understanding of upstream is wrong.

wrt feature request for having the library installed, it was done long ago, see bug 884865. So in my opinion this is a regression. btw we also have a test case for that feature.

Comment 5 Vojtech Vitek 2014-02-20 13:51:42 UTC
@Aleksandar Kostadinov, custom PECLs are not yet supported on OpenShift officially, thus NOTABUG/UPSTREAM. The custom PECL functionality will be implemented once this Trello card https://trello.com/c/Ja9IcFIb get completed.

The missing imagick PECL extension was added to both PHP 5.3 and PHP 5.4 cartridges, btw.

Comment 6 Oleg Fayans 2014-02-25 06:47:00 UTC
Just tested it against INT. I am getting the following error:
ERROR: failed to mkdir /usr/include/php/ext/imagick

Apart from that everything is fine.

Comment 7 Vojtech Vitek 2014-02-28 12:50:50 UTC
*** Bug 1071146 has been marked as a duplicate of this bug. ***


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