Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: See https://openshift.redhat.com/community/forums/openshift/jenkins-phpdepend-deps#comment-25295 There have been a few other requests: https://openshift.redhat.com/community/search/node?keys=imagemagick "Installing '/usr/lib64/php/modules/imagick.so' ERROR: failed to write /usr/lib64/php/modules/imagick.so (copy(/usr/lib64/php/modules/imagick.so): failed to open stream: Permission denied)"
Pull request: https://github.com/openshift/origin-server/pull/1037
*** Bug 885243 has been marked as a duplicate of this bug. ***
Tested on devenv_2577 I was unable to install pecl/imagick from deplist.txt Steps: 1. Create php application 2. Add dependencied to deplist.txt: hjw@my php2$ cat deplist.txt pecl/imagick 3. Git push, check packages are installed Result: imagick installation failed remote: downloading imagick-3.0.1.tgz ... remote: Starting to download imagick-3.0.1.tgz (93,920 bytes) remote: .....................done: 93,920 bytes remote: 13 source files, building remote: running: phpize remote: Configuring for: remote: PHP Api Version: 20090626 remote: Zend Module Api No: 20090626 remote: Zend Extension Api No: 220090626 remote: Please provide the prefix of Imagemagick installation [autodetect] : building in /var/lib/openshift/732a9b53a0904421b0835e2ef8466f32/php-5.3/phplib/pear/pear/temp/pear-build-732a9b53a0904421b0835e2ef8466f32BHoW8T/imagick-3.0.1 remote: running: /var/lib/openshift/732a9b53a0904421b0835e2ef8466f32/php-5.3/phplib/pear/pear/temp/imagick/configure --with-imagick=b62da8d78291b3d246d2097dd034dde74cdb9661 4fffe48b0bc63b67c639e341ca1ac74369d1f48c refs/heads/master remote: configure: WARNING: you should use --build, --host, --target remote: configure: WARNING: you should use --build, --host, --target remote: configure: WARNING: invalid host type: refs/heads/master remote: checking for grep that handles long lines and -e... /bin/grep remote: checking for egrep... /bin/grep -E remote: checking for a sed that does not truncate output... /bin/sed remote: checking for 4fffe48b0bc63b67c639e341ca1ac74369d1f48c-cc... no remote: checking for 4fffe48b0bc63b67c639e341ca1ac74369d1f48c-gcc... no remote: checking for cc... cc remote: checking for C compiler default output file name... a.out remote: checking whether the C compiler works... yes remote: checking whether we are cross compiling... no remote: checking for suffix of executables... remote: checking for suffix of object files... o remote: checking whether we are using the GNU C compiler... yes remote: checking whether cc accepts -g... yes remote: checking for cc option to accept ISO C89... none needed remote: checking how to run the C preprocessor... cc -E remote: checking for icc... no remote: checking for suncc... no remote: checking whether cc understands -c and -o together... yes remote: checking for system library directory... lib remote: checking if compiler supports -R... no remote: checking if compiler supports -Wl,-rpath,... yes remote: checking build system type... Invalid configuration `4fffe48b0bc63b67c639e341ca1ac74369d1f48c': machine `4fffe48b0bc63b67c639e341ca1ac74369d1f48c' not recognized remote: configure: error: /bin/sh /var/lib/openshift/732a9b53a0904421b0835e2ef8466f32/php-5.3/phplib/pear/pear/temp/imagick/config.sub 4fffe48b0bc63b67c639e341ca1ac74369d1f48c failed remote: ERROR: `/var/lib/openshift/732a9b53a0904421b0835e2ef8466f32/php-5.3/phplib/pear/pear/temp/imagick/configure --with-imagick=b62da8d78291b3d246d2097dd034dde74cdb9661 4fffe48b0bc63b67c639e341ca1ac74369d1f48c refs/heads/master' failed So it back, thanks!
The extension is installed in the system and is no longer required to be listed in deplist.txt. The following pull request will report a helpful message if a newly requested extension is already available rather than attempt to compile it. ex: $ git push Counting objects: 5, done. Delta compression using up to 2 threads. ... remote: Checking pear: pecl/imagick remote: remote: Extension already installed in the system: pecl/imagick https://github.com/openshift/origin-server/pull/1051
The fix has not been merged in current devenv, so I tested it with the fix, and it works fine: remote: Running .openshift/action_hooks/pre_build remote: Checking pear: pecl/imagick remote: remote: Extension already installed in the system: pecl/imagick remote: Running .openshift/action_hooks/build remote: Running .openshift/action_hooks/deploy remote: hot_deploy_added=false remote: Done remote: Running .openshift/action_hooks/post_deploy I will move this bug to verified once the fix is merged.
Verified on devenv_2583 Steps: 1. Create php application 2. Add dependencied to deplist.txt: hjw@my php2$ cat deplist.txt pecl/imagick 3. Git push, check packages are installed, a helpful message is provided. Writing objects: 100% (3/3), 253 bytes, done. Total 3 (delta 1), reused 0 (delta 0) remote: restart_on_add=false remote: Waiting for stop to finish remote: Done remote: restart_on_add=false remote: ~/git/php1.git ~/git/php1.git remote: ~/git/php1.git remote: Running .openshift/action_hooks/pre_build remote: Checking pear: pecl/imagick remote: remote: Extension already installed in the system: pecl/imagick remote: Running .openshift/action_hooks/build remote: Running .openshift/action_hooks/deploy