Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install modules (gd and imagick) for php5 based on alpine (3.4) #652

Closed
inl-pd-autotest opened this issue May 23, 2018 · 6 comments
Closed
Labels
question Usability question, not directly related to an error with the image

Comments

@inl-pd-autotest
Copy link

inl-pd-autotest commented May 23, 2018

Please, provide examples on how to install php modules.
Following current docs - nothing works for me:

FROM php:5-fpm-alpine
RUN docker-php-ext-install pcntl openssl json phar zlib xml curl dom pdo mysql pdo_mysql iconv
RUN docker-php-ext-enable pcntl openssl json phar zlib xml curl dom pdo mysql pdo_mysql iconv

RUN docker-php-ext-install gd imagick
RUN docker-php-ext-enable gd imagick

RUN docker-php-ext-install memcache
RUN docker-php-ext-enable memcache

results into

Sending build context to Docker daemon  11.26kB^M
Step 1/10 : FROM php:5-fpm-alpine
 ---> 4b81ab295ae1
Step 2/10 : RUN docker-php-ext-install pcntl openssl json phar zlib xml curl dom pdo mysql pdo_mysql iconv
 ---> Running in 0e02c6822666
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/27) Installing m4 (1.4.17-r1)
(2/27) Installing perl (5.22.3-r0)
(3/27) Installing autoconf (2.69-r0)
(4/27) Installing pkgconf (0.9.12-r0)
(5/27) Installing pkgconfig (0.25-r1)
(6/27) Installing dpkg-dev (1.18.7-r0)
(7/27) Installing libbz2 (1.0.6-r5)
(8/27) Installing dpkg (1.18.7-r0)
(9/27) Installing libmagic (5.27-r0)
(10/27) Installing file (5.27-r0)
(11/27) Installing libgcc (5.3.0-r0)
(12/27) Installing libstdc++ (5.3.0-r0)
(13/27) Installing binutils-libs (2.26-r1)
(14/27) Installing binutils (2.26-r1)
(15/27) Installing gmp (6.1.0-r0)
(16/27) Installing isl (0.14.1-r0)
(17/27) Installing libgomp (5.3.0-r0)
(18/27) Installing libatomic (5.3.0-r0)
(19/27) Installing mpfr3 (3.1.2-r0)
(20/27) Installing mpc1 (1.0.3-r0)
(21/27) Installing gcc (5.3.0-r0)
(22/27) Installing musl-dev (1.1.14-r16)
(23/27) Installing libc-dev (0.7-r0)
(24/27) Installing g++ (5.3.0-r0)
(25/27) Installing make (4.1-r1)
(26/27) Installing re2c (0.14.3-r0)
(27/27) Installing .phpize-deps (0)
Executing busybox-1.24.2-r14.trigger
OK: 220 MiB in 53 packages
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
ESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
sh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mESC[91mexpr: syntax error
ESC[0mESC[91msh: 0: unknown operand
ESC[0mchecking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-musl
checking host system type... x86_64-pc-linux-musl
checking target system type... x86_64-pc-linux-musl
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.14.3 (ok)
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable pcntl support... yes, shared
checking for fork... yes
checking for waitpid... yes
checking for sigaction... yes
checking for getpriority... yes
checking for setpriority... yes
checking for wait3... yes
checking for sigprocmask... yes
checking for sigwaitinfo... yes
checking for sigtimedwait... yes
checking for ld used by cc... /usr/x86_64-alpine-linux-musl/bin/ld
checking if the linker (/usr/x86_64-alpine-linux-musl/bin/ld) is GNU ld... yes
checking for /usr/x86_64-alpine-linux-musl/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/x86_64-alpine-linux-musl/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
/bin/sh /usr/src/php/ext/pcntl/libtool --mode=compile cc  -I. -I/usr/src/php/ext/pcntl -DPHP_ATOM_INC -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -fstack-protector-strong -fpic -fpie -O2 -DHAVE_CONFIG_H  -fstack-protector-strong -fpic -fpie -O2   -c /usr/src/php/ext/pcntl/pcntl.c -o pcntl.lo 
mkdir .libs
 cc -I. -I/usr/src/php/ext/pcntl -DPHP_ATOM_INC -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -c /usr/src/php/ext/pcntl/pcntl.c  -fPIC -DPIC -o .libs/pcntl.o
/bin/sh /usr/src/php/ext/pcntl/libtool --mode=compile cc  -I. -I/usr/src/php/ext/pcntl -DPHP_ATOM_INC -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -fstack-protector-strong -fpic -fpie -O2 -DHAVE_CONFIG_H  -fstack-protector-strong -fpic -fpie -O2   -c /usr/src/php/ext/pcntl/php_signal.c -o php_signal.lo 
 cc -I. -I/usr/src/php/ext/pcntl -DPHP_ATOM_INC -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -fstack-protector-strong -fpic -fpie -O2 -DHAVE_CONFIG_H -fstack-protector-strong -fpic -fpie -O2 -c /usr/src/php/ext/pcntl/php_signal.c  -fPIC -DPIC -o .libs/php_signal.o
/bin/sh /usr/src/php/ext/pcntl/libtool --mode=link cc -DPHP_ATOM_INC -I/usr/src/php/ext/pcntl/include -I/usr/src/php/ext/pcntl/main -I/usr/src/php/ext/pcntl -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -fstack-protector-strong -fpic -fpie -O2 -DHAVE_CONFIG_H  -fstack-protector-strong -fpic -fpie -O2  -Wl,-O1 -Wl,--hash-style=both -pie -o pcntl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/src/php/ext/pcntl/modules  pcntl.lo php_signal.lo 
cc -shared  .libs/pcntl.o .libs/php_signal.o   -Wl,-O1 -Wl,--hash-style=both -Wl,-soname -Wl,pcntl.so -o .libs/pcntl.so
creating pcntl.la
(cd .libs && rm -f pcntl.la && ln -s ../pcntl.la pcntl.la)
/bin/sh /usr/src/php/ext/pcntl/libtool --mode=install cp ./pcntl.la /usr/src/php/ext/pcntl/modules
cp ./.libs/pcntl.so /usr/src/php/ext/pcntl/modules/pcntl.so
cp ./.libs/pcntl.lai /usr/src/php/ext/pcntl/modules/pcntl.la
PATH="$PATH:/sbin" ldconfig -n /usr/src/php/ext/pcntl/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/src/php/ext/pcntl/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20131226/
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f 
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la       modules/* libs/*
Cannot find config.m4. 
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module


The command '/bin/sh -c docker-php-ext-install pcntl openssl json phar zlib xml curl dom pdo mysql pdo_mysql iconv' returned a non-zero code: 1```
@wglambert
Copy link

From the docs:

Many extensions are already compiled into the image, so it's worth checking the output of php -m or php -i before going through the effort of compiling more.

$ docker exec -it php sh
# php -i | grep enabled
Zend Memory Manager => enabled
IPv6 Support => enabled
ctype functions => enabled
cURL support => enabled
date/time support => enabled
DOM/XML => enabled
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled
Regex Library => Bundled library enabled
fileinfo support => enabled
Input Validation and Filtering => enabled
FTP support => enabled
hash support => enabled
iconv support => enabled
json support => enabled
libXML streams => enabled
Multibyte Support => enabled
Multibyte (japanese) regex support => enabled
mysqlnd => enabled
OpenSSL support => enabled
PCRE (Perl Compatible Regular Expressions) Support => enabled
PDO support => enabled
PDO Driver for SQLite 3.x => enabled
Phar: PHP Archive support => enabled
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
Native OpenSSL support => enabled
Readline Support => enabled
Reflection => enabled
Session Support => enabled
session.upload_progress.enabled => On => On
Simplexml support => enabled
Schema support => enabled
SPL support => enabled
SQLite3 support => enabled
Dynamic Library Support => enabled
Tokenizer Support => enabled
XMLReader => enabled
XMLWriter => enabled
ZLib Support => enabled

So it looks like you only need imagemagick and memcache, and their dependencies which you would find here https://pkgs.alpinelinux.org/contents?file=&path=&name=&branch=edge

@inl-pd-autotest
Copy link
Author

inl-pd-autotest commented May 24, 2018

The docs are full of contradictions:
your output of php -i | grep enabled (and my similar output for php-5) show that iconv is already enabled, but docs say:

For example, if you want to have a PHP-FPM image with iconv, mcrypt and gd extensions

I've managed to successfully install pcntl, mysql, pdo_mysql via docker-php-ext-install and even memcache+memcached from pecl.

Now I only need to install imagick and gd.
As for imagick:
I tried this:

RUN apk add --no-cache --virtual .runtime-deps imagemagick
RUN pecl install imagick \
        && docker-php-ext-enable imagick

and it results into this:

Step 7/11 : RUN pecl install imagick    && docker-php-ext-enable imagick
 ---> Running in badc4ebed4bf
downloading imagick-3.4.3.tgz ...
Starting to download imagick-3.4.3.tgz (245,410 bytes)
...................................................done: 245,410 bytes
19 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
Please provide the prefix of Imagemagick installation [autodetect] : building in /tmp/pear/temp/pear-build-defaultusergmPDmK/imagick-3.4.3
running: /tmp/pear/temp/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
expr: syntax error
sh: 0: unknown operand
expr: syntax error
sh: 0: unknown operand
expr: syntax error
sh: 0: unknown operand
expr: syntax error
sh: 0: unknown operand
expr: syntax error
sh: 0: unknown operand
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20131226
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable the imagick extension... yes, shared
checking for pkg-config... /usr/bin/pkg-config
checking ImageMagick MagickWand API configuration program... checking Testing /usr/local/bin/MagickWand-config... Doesn't exist
checking Testing /usr/bin/MagickWand-config... Doesn't exist
checking Testing /usr/sbin/bin/MagickWand-config... Doesn't exist
checking Testing /opt/bin/MagickWand-config... Doesn't exist
checking Testing /opt/local/bin/MagickWand-config... Doesn't exist
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
ERROR: `/tmp/pear/temp/imagick/configure --with-php-config=/usr/local/bin/php-config --with-imagick' failed

As for gd I tried this:

RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev && \
        docker-php-ext-configure gd \
        --with-gd \
        --with-freetype-dir=/usr/include/ \
        --with-png-dir=/usr/include/ \
        --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install gd
RUN docker-php-ext-enable gd

and these steps fail like that:

Step 7/12 : RUN docker-php-ext-install gd
 ---> Running in 265184b415dd
/bin/sh /usr/src/php/ext/gd/libtool --mode=compile cc -I/usr/src/php/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DENABLE_GD_TTF -I. -I/usr/src/php/ext/gd -DPHP_ATOM_INC -I/usr/src/php/ext/gd/include -I/usr/src/php/ext/gd/main -I/usr/src/php/ext/gd -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -I/usr/include/freetype2  -fstack-protector-strong -fpic -fpie -O2 -DHAVE_CONFIG_H  -fstack-protector-strong -fpic -fpie -O2   -c /usr/src/php/ext/gd/gd.c -o gd.lo
...
// then go lots of mkdir and cc commands
...
creating gd.la
(cd .libs && rm -f gd.la && ln -s ../gd.la gd.la)
/bin/sh /usr/src/php/ext/gd/libtool --mode=install cp ./gd.la /usr/src/php/ext/gd/modules
cp ./.libs/gd.so /usr/src/php/ext/gd/modules/gd.so
cp ./.libs/gd.lai /usr/src/php/ext/gd/modules/gd.la
PATH="$PATH:/sbin" ldconfig -n /usr/src/php/ext/gd/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/src/php/ext/gd/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20131226/
Installing header files:           /usr/local/include/php/
find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f 
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
rm -f libphp.la       modules/* libs/*
WARNING: Ignoring APKINDEX.167438ca.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.a2e6dac0.tar.gz: No such file or directory
(1/7) Purging .phpize-deps-configure (0)
(2/7) Purging dpkg-dev (1.18.7-r0)
(3/7) Purging dpkg (1.18.7-r0)
(4/7) Purging file (5.27-r0)
(5/7) Purging re2c (0.14.3-r0)
(6/7) Purging libbz2 (1.0.6-r5)
(7/7) Purging libmagic (5.27-r0)
Executing busybox-1.24.2-r14.trigger
OK: 221 MiB in 62 packages
rm: can't remove '/usr/src/php/TSRM': Directory not empty
rm: can't remove '/usr/src/php/Zend/RFCs': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/arg_unpack': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/bug39542': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/bug67436': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder1/subfolder1': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder1/subfolder2': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder1/subfolder3': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder1/subfolder4': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder1': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder2/subfolder1': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder2/subfolder2': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder2/subfolder3': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder2/subfolder4': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder2': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder3/subfolder1': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder3/subfolder2': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder3/subfolder3': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder3/subfolder4': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder3': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder4/subfolder1': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder4/subfolder2': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder4/subfolder3': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder4/subfolder4': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures/folder4': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants/fixtures': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/constants': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/generators/errors': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/generators/finally': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/generators': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/multibyte': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/traits/bugs': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/traits': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/use_const/includes': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/use_const': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/use_function/includes': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/use_function': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests/variadic': Directory not empty
rm: can't remove '/usr/src/php/Zend/tests': Directory not empty
rm: can't remove '/usr/src/php/Zend': Directory not empty
rm: can't remove '/usr/src/php/build': Directory not empty
rm: can't remove '/usr/src/php/ext/bcmath/libbcmath/src': Directory not empty
rm: can't remove '/usr/src/php/ext/bcmath/libbcmath': Directory not empty
rm: can't remove '/usr/src/php/ext/bcmath/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/bcmath': Directory not empty
rm: can't remove '/usr/src/php/ext/bz2/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/bz2': Directory not empty
rm: can't remove '/usr/src/php/ext/calendar/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/calendar': Directory not empty
rm: can't remove '/usr/src/php/ext/com_dotnet/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/com_dotnet': Directory not empty
rm: can't remove '/usr/src/php/ext/ctype/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/ctype': Directory not empty
rm: can't remove '/usr/src/php/ext/curl/tests/responder': Directory not empty
rm: can't remove '/usr/src/php/ext/curl/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/curl': Directory not empty
rm: can't remove '/usr/src/php/ext/date/lib': Directory not empty
rm: can't remove '/usr/src/php/ext/date/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/date': Directory not empty
rm: can't remove '/usr/src/php/ext/dba/libcdb': Directory not empty
rm: can't remove '/usr/src/php/ext/dba/libflatfile': Directory not empty
rm: can't remove '/usr/src/php/ext/dba/libinifile': Directory not empty
rm: can't remove '/usr/src/php/ext/dba/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/dba': Directory not empty
rm: can't remove '/usr/src/php/ext/dom/examples': Directory not empty
rm: can't remove '/usr/src/php/ext/dom/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/dom': Directory not empty
rm: can't remove '/usr/src/php/ext/enchant/docs/examples': Directory not empty
rm: can't remove '/usr/src/php/ext/enchant/docs': Directory not empty
rm: can't remove '/usr/src/php/ext/enchant/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/enchant': Directory not empty
rm: can't remove '/usr/src/php/ext/ereg/regex': Directory not empty
rm: can't remove '/usr/src/php/ext/ereg/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/ereg': Directory not empty
rm: can't remove '/usr/src/php/ext/exif/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/exif': Directory not empty
rm: can't remove '/usr/src/php/ext/fileinfo/libmagic': Directory not empty
rm: can't remove '/usr/src/php/ext/fileinfo/tests/resources': Directory not empty
rm: can't remove '/usr/src/php/ext/fileinfo/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/fileinfo': Directory not empty
rm: can't remove '/usr/src/php/ext/filter/docs': Directory not empty
rm: can't remove '/usr/src/php/ext/filter/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/filter': Directory not empty
rm: can't remove '/usr/src/php/ext/ftp/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/ftp': Directory not empty
rm: can't remove '/usr/src/php/ext/gd/autom4te.cache': Directory not empty
rm: can't remove '/usr/src/php/ext/gd/build': Directory not empty
rm: can't remove '/usr/src/php/ext/gd/libgd': Directory not empty
rm: can't remove '/usr/src/php/ext/gd/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/gd': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/66265/de_DE/LC_MESSAGES': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/66265/de_DE': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/66265/en_US/LC_MESSAGES': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/66265/en_US': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/66265/fr_FR/LC_MESSAGES': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/66265/fr_FR': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/66265': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/locale/en/LC_CTYPE': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/locale/en/LC_MESSAGES': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/locale/en': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/locale/fi/LC_MESSAGES': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/locale/fi': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests/locale': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/gettext': Directory not empty
rm: can't remove '/usr/src/php/ext/gmp/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/gmp': Directory not empty
rm: can't remove '/usr/src/php/ext/hash/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/hash': Directory not empty
rm: can't remove '/usr/src/php/ext/iconv/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/iconv': Directory not empty
rm: can't remove '/usr/src/php/ext/imap/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/imap': Directory not empty
rm: can't remove '/usr/src/php/ext/interbase/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/interbase': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/breakiterator': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/calendar': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/collator': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/common': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/converter': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/dateformat': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/doc': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/formatter': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/grapheme': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/idn': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/locale': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/msgformat': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/normalizer': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/resourcebundle': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/spoofchecker': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/tests/_files/resourcebundle': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/tests/_files': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/timezone': Directory not empty
rm: can't remove '/usr/src/php/ext/intl/transliterator': Directory not empty
rm: can't remove '/usr/src/php/ext/intl': Directory not empty
rm: can't remove '/usr/src/php/ext/json/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/json': Directory not empty
rm: can't remove '/usr/src/php/ext/ldap/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/ldap': Directory not empty
rm: can't remove '/usr/src/php/ext/libxml/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/libxml': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/libmbfl/filters': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/libmbfl/mbfl': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/libmbfl/nls': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/libmbfl/tests/conv_encoding.tests': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/libmbfl/tests/conv_kana.tests': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/libmbfl/tests/strcut.tests': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/libmbfl/tests/strwidth.tests': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/libmbfl/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/libmbfl': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/oniguruma/doc': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/oniguruma/enc': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/oniguruma/win32': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/oniguruma': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring/ucgendat': Directory not empty
rm: can't remove '/usr/src/php/ext/mbstring': Directory not empty
rm: can't remove '/usr/src/php/ext/mcrypt/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/mcrypt': Directory not empty
rm: can't remove '/usr/src/php/ext/mssql': Directory not empty
rm: can't remove '/usr/src/php/ext/mysql/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/mysql': Directory not empty
rm: can't remove '/usr/src/php/ext/mysqli/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/mysqli': Directory not empty
rm: can't remove '/usr/src/php/ext/mysqlnd': Directory not empty
rm: can't remove '/usr/src/php/ext/oci8/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/oci8': Directory not empty
rm: can't remove '/usr/src/php/ext/odbc/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/odbc': Directory not empty
rm: can't remove '/usr/src/php/ext/opcache/Optimizer': Directory not empty
rm: can't remove '/usr/src/php/ext/opcache/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/opcache': Directory not empty
rm: can't remove '/usr/src/php/ext/openssl/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/openssl': Directory not empty
rm: can't remove '/usr/src/php/ext/pcntl/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pcntl': Directory not empty
rm: can't remove '/usr/src/php/ext/pcre/pcrelib/doc': Directory not empty
rm: can't remove '/usr/src/php/ext/pcre/pcrelib/sljit': Directory not empty
rm: can't remove '/usr/src/php/ext/pcre/pcrelib/testdata': Directory not empty
rm: can't remove '/usr/src/php/ext/pcre/pcrelib': Directory not empty
rm: can't remove '/usr/src/php/ext/pcre/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pcre': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_dblib/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_dblib': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_firebird/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_firebird': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_mysql/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_mysql': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_oci/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_oci': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_odbc/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_odbc': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_pgsql/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_pgsql': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_sqlite/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pdo_sqlite': Directory not empty
rm: can't remove '/usr/src/php/ext/pgsql/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pgsql': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/phar': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/bug53872': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/bug64931/src': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/bug64931': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/cache_list/files': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/cache_list': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/files': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/tar/files/bug67761.tar': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/tar/files': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/tar': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/zip/files': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests/zip': Directory not empty
rm: can't remove '/usr/src/php/ext/phar/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/phar': Directory not empty
rm: can't remove '/usr/src/php/ext/posix/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/posix': Directory not empty
rm: can't remove '/usr/src/php/ext/pspell/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/pspell': Directory not empty
rm: can't remove '/usr/src/php/ext/readline/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/readline': Directory not empty
rm: can't remove '/usr/src/php/ext/recode': Directory not empty
rm: can't remove '/usr/src/php/ext/reflection/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/reflection': Directory not empty
rm: can't remove '/usr/src/php/ext/session/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/session': Directory not empty
rm: can't remove '/usr/src/php/ext/shmop/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/shmop': Directory not empty
rm: can't remove '/usr/src/php/ext/simplexml/examples': Directory not empty
rm: can't remove '/usr/src/php/ext/simplexml/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/simplexml': Directory not empty
rm: can't remove '/usr/src/php/ext/skeleton/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/skeleton': Directory not empty
rm: can't remove '/usr/src/php/ext/snmp/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/snmp': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/interop': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/bugs': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round2/Base': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round2/GroupB': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round2': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round3/GroupD/imported': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round3/GroupD': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round3/GroupE': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round3/GroupF': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round3': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round4/GroupG': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round4/GroupH': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round4/GroupI': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop/Round4': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/interop': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/schema': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests/soap12': Directory not empty
rm: can't remove '/usr/src/php/ext/soap/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/soap': Directory not empty
rm: can't remove '/usr/src/php/ext/sockets/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/sockets': Directory not empty
rm: can't remove '/usr/src/php/ext/spl/examples/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/spl/examples': Directory not empty
rm: can't remove '/usr/src/php/ext/spl/internal': Directory not empty
rm: can't remove '/usr/src/php/ext/spl/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/spl': Directory not empty
rm: can't remove '/usr/src/php/ext/sqlite3/libsqlite': Directory not empty
rm: can't remove '/usr/src/php/ext/sqlite3/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/sqlite3': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/html_tables/mappings': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/html_tables': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/array': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/assert': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/class_object': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/dir': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/directory': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/file/windows_acls': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/file/windows_links': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/file': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/filters': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/general_functions': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/http': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/image': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/mail': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/math': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/misc': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/network': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/password': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/serialize': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/streams': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/strings': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/time': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/url': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests/versioning': Directory not empty
rm: can't remove '/usr/src/php/ext/standard/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/standard': Directory not empty
rm: can't remove '/usr/src/php/ext/sybase_ct/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/sybase_ct': Directory not empty
rm: can't remove '/usr/src/php/ext/sysvmsg/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/sysvmsg': Directory not empty
rm: can't remove '/usr/src/php/ext/sysvsem/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/sysvsem': Directory not empty
rm: can't remove '/usr/src/php/ext/sysvshm/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/sysvshm': Directory not empty
rm: can't remove '/usr/src/php/ext/tidy/examples': Directory not empty
rm: can't remove '/usr/src/php/ext/tidy/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/tidy': Directory not empty
rm: can't remove '/usr/src/php/ext/tokenizer/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/tokenizer': Directory not empty
rm: can't remove '/usr/src/php/ext/wddx/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/wddx': Directory not empty
rm: can't remove '/usr/src/php/ext/xml/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/xml': Directory not empty
rm: can't remove '/usr/src/php/ext/xmlreader/examples': Directory not empty
rm: can't remove '/usr/src/php/ext/xmlreader/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/xmlreader': Directory not empty
rm: can't remove '/usr/src/php/ext/xmlrpc/libxmlrpc': Directory not empty
rm: can't remove '/usr/src/php/ext/xmlrpc/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/xmlrpc': Directory not empty
rm: can't remove '/usr/src/php/ext/xmlwriter/examples': Directory not empty
rm: can't remove '/usr/src/php/ext/xmlwriter/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/xmlwriter': Directory not empty
rm: can't remove '/usr/src/php/ext/xsl/tests/53965': Directory not empty
rm: can't remove '/usr/src/php/ext/xsl/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/xsl': Directory not empty
rm: can't remove '/usr/src/php/ext/zip/examples': Directory not empty
rm: can't remove '/usr/src/php/ext/zip/lib': Directory not empty
rm: can't remove '/usr/src/php/ext/zip/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/zip': Directory not empty
rm: can't remove '/usr/src/php/ext/zlib/tests': Directory not empty
rm: can't remove '/usr/src/php/ext/zlib': Directory not empty
rm: can't remove '/usr/src/php/ext': Directory not empty
rm: can't remove '/usr/src/php/main/streams': Directory not empty
rm: can't remove '/usr/src/php/main': Directory not empty
rm: can't remove '/usr/src/php/netware': Directory not empty
rm: can't remove '/usr/src/php/pear': Directory not empty
rm: can't remove '/usr/src/php/sapi/aolserver': Directory not empty
rm: can't remove '/usr/src/php/sapi/apache': Directory not empty
rm: can't remove '/usr/src/php/sapi/apache2filter': Directory not empty
rm: can't remove '/usr/src/php/sapi/apache2handler': Directory not empty
rm: can't remove '/usr/src/php/sapi/apache_hooks': Directory not empty
rm: can't remove '/usr/src/php/sapi/caudium': Directory not empty
rm: can't remove '/usr/src/php/sapi/cgi/tests': Directory not empty
rm: can't remove '/usr/src/php/sapi/cgi': Directory not empty
rm: can't remove '/usr/src/php/sapi/cli/tests': Directory not empty
rm: can't remove '/usr/src/php/sapi/cli': Directory not empty
rm: can't remove '/usr/src/php/sapi/continuity': Directory not empty
rm: can't remove '/usr/src/php/sapi/embed': Directory not empty
rm: can't remove '/usr/src/php/sapi/fpm/fpm/events': Directory not empty
rm: can't remove '/usr/src/php/sapi/fpm/fpm': Directory not empty
rm: can't remove '/usr/src/php/sapi/fpm/tests': Directory not empty
rm: can't remove '/usr/src/php/sapi/fpm': Directory not empty
rm: can't remove '/usr/src/php/sapi/isapi/stresstest': Directory not empty
rm: can't remove '/usr/src/php/sapi/isapi': Directory not empty
rm: can't remove '/usr/src/php/sapi/litespeed': Directory not empty
rm: can't remove '/usr/src/php/sapi/milter': Directory not empty
rm: can't remove '/usr/src/php/sapi/nsapi': Directory not empty
rm: can't remove '/usr/src/php/sapi/phpdbg/tests/commands': Directory not empty
rm: can't remove '/usr/src/php/sapi/phpdbg/tests': Directory not empty
rm: can't remove '/usr/src/php/sapi/phpdbg/travis': Directory not empty
rm: can't remove '/usr/src/php/sapi/phpdbg': Directory not empty
rm: can't remove '/usr/src/php/sapi/phttpd': Directory not empty
rm: can't remove '/usr/src/php/sapi/pi3web': Directory not empty
rm: can't remove '/usr/src/php/sapi/roxen': Directory not empty
rm: can't remove '/usr/src/php/sapi/tests': Directory not empty
rm: can't remove '/usr/src/php/sapi/thttpd': Directory not empty
rm: can't remove '/usr/src/php/sapi/tux': Directory not empty
rm: can't remove '/usr/src/php/sapi/webjames': Directory not empty
rm: can't remove '/usr/src/php/sapi': Directory not empty
rm: can't remove '/usr/src/php/scripts/apache': Directory not empty
rm: can't remove '/usr/src/php/scripts/dev/generate-phpt/src/codeSnippets': Directory not empty
rm: can't remove '/usr/src/php/scripts/dev/generate-phpt/src/setup/exceptions': Directory not empty
rm: can't remove '/usr/src/php/scripts/dev/generate-phpt/src/setup/preconditions': Directory not empty
rm: can't remove '/usr/src/php/scripts/dev/generate-phpt/src/setup': Directory not empty
rm: can't remove '/usr/src/php/scripts/dev/generate-phpt/src/testcase': Directory not empty
rm: can't remove '/usr/src/php/scripts/dev/generate-phpt/src/texts': Directory not empty
rm: can't remove '/usr/src/php/scripts/dev/generate-phpt/src': Directory not empty
rm: can't remove '/usr/src/php/scripts/dev/generate-phpt/tests': Directory not empty
rm: can't remove '/usr/src/php/scripts/dev/generate-phpt': Directory not empty
rm: can't remove '/usr/src/php/scripts/dev': Directory not empty
rm: can't remove '/usr/src/php/scripts/man1': Directory not empty
rm: can't remove '/usr/src/php/scripts': Directory not empty
rm: can't remove '/usr/src/php/tests/basic': Directory not empty
rm: can't remove '/usr/src/php/tests/classes': Directory not empty
rm: can't remove '/usr/src/php/tests/func': Directory not empty
rm: can't remove '/usr/src/php/tests/lang/include_files': Directory not empty
rm: can't remove '/usr/src/php/tests/lang/operators': Directory not empty
rm: can't remove '/usr/src/php/tests/lang': Directory not empty
rm: can't remove '/usr/src/php/tests/output': Directory not empty
rm: can't remove '/usr/src/php/tests/run-test': Directory not empty
rm: can't remove '/usr/src/php/tests/security': Directory not empty
rm: can't remove '/usr/src/php/tests/strings': Directory not empty
rm: can't remove '/usr/src/php/tests': Directory not empty
rm: can't remove '/usr/src/php/travis/ext/curl': Directory not empty
rm: can't remove '/usr/src/php/travis/ext/mysql': Directory not empty
rm: can't remove '/usr/src/php/travis/ext/mysqli': Directory not empty
rm: can't remove '/usr/src/php/travis/ext/pdo_mysql': Directory not empty
rm: can't remove '/usr/src/php/travis/ext/pdo_pgsql': Directory not empty
rm: can't remove '/usr/src/php/travis/ext/pgsql': Directory not empty
rm: can't remove '/usr/src/php/travis/ext': Directory not empty
rm: can't remove '/usr/src/php/travis': Directory not empty
rm: can't remove '/usr/src/php/win32/build': Directory not empty
rm: can't remove '/usr/src/php/win32': Directory not empty
rm: can't remove '/usr/src/php': Directory not empty

Why do those rm -fs go without -r?

@inl-pd-autotest inl-pd-autotest changed the title Can't install modules Can't install modules (gd and imagick) for php5 based on alpine (3.4) May 24, 2018
@inl-pd-autotest
Copy link
Author

some semi-progess with imagemagick:

RUN apk add --no-cache --virtual .build-deps2 musl-dev imagemagick imagemagick-dev libtool autoconf build-base
RUN pecl install imagick \
       && docker-php-ext-enable imagick

this way it seems to build successfully, BUT

RUN php-fpm -i

results into

Segmentation fault (core dumped)

at the end.
:-/

@wglambert wglambert added the question Usability question, not directly related to an error with the image label May 24, 2018
@tianon
Copy link
Member

tianon commented May 24, 2018

The docs are full of contradictions:

They've been an effort over time by multiple contributors across many PHP version changes -- any improvements would be welcome (PRs to https://github.com/docker-library/docs/blob/77e1fa5e33b50499c0aeac2ad57a21237d102f30/php/content.md would be great).

and these steps fail like that:

This looks like an issue with your local environment; those rms don't have -f because they shouldn't need it.

For reference, Wordpress has an example of installing gd in Alpine:

https://github.com/docker-library/wordpress/blob/47c785a349228b2528b81f352dbc27d2146ee69f/php5.6/apache/Dockerfile

some semi-progess with imagemagick:

#105 (comment) has an example that's been tested previously to work successfully for installing the imagick extension on Alpine.

As a final note, in the future these sorts of questions/requests would be more appropriately posted to the Docker Community Forums, the Docker Community Slack, or Stack Overflow.

@inl-pd-autotest
Copy link
Author

This looks like an issue with your local environment; those rms don't have -f because they shouldn't need it.

I haven't modified environment at all. The issue appeared quite recently, so it is in upstream, probably.

I don't know why these images exist, they are a failure.
It's easier and faster to install packages on a clean alpine image, I've finally figured things out.

@ptflp
Copy link

ptflp commented Dec 12, 2018

RUN apk add --no-cache --virtual .build-deps \
        libxml2-dev \
        shadow \
        autoconf \
        g++ \
        make \
    apk add --no-cache imagemagick-dev \
    && pecl install imagick-beta \
    && apk del .build-deps

Now im solving that imagemagick-no-decode-delegate

Solved for php 7.0 alpine3.8 try for other versions

https://gist.github.com/ptflp/5cc7ff386ed3338bac4033ec13c339e9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

4 participants