Author Topic: ERROR: Missing extension file /apcu.so  (Read 7187 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
ERROR: Missing extension file /apcu.so
« on: November 30, 2018, 04:43:56 PM »
Tried to update to 7.2.12 FPM and get the error.

ERROR: Missing extension file /apcu.so

Offline
**
Re: ERROR: Missing extension file /apcu.so
« Reply #1 on: November 30, 2018, 08:51:46 PM »
After several attempts and increasing the swap file on the server I was able to update it.

Offline
**
Re: ERROR: Missing extension file /apcu.so
« Reply #2 on: December 01, 2018, 03:13:48 PM »
Same problem here.
There must be another way to fix that problem. Server modifications should not be solution to fix CWP's error.

Offline
*
Re: ERROR: Missing extension file /apcu.so
« Reply #3 on: December 11, 2018, 08:52:28 AM »
Hello.
Same error here. I tried to increase swap but didn't work.


checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking for xml2-config path...
checking for pkg-config... /usr/bin/pkg-config
configure: error: libxml2 not found. Please check your libxml2 installation.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.
mkdir: cannot create directory '/opt/alt/php-fpm73/usr/var/sockets/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm73/usr/etc/php-fpm.d/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm73/usr/etc/php-fpm.d/users/': No such file or directory
/usr/local/src/php-fpm-7.3.sh: line 87: /opt/alt/php-fpm73/usr/etc/php-fpm.d/users.conf: No such file or directory
/usr/local/src/php-fpm-7.3.sh: line 88: /opt/alt/php-fpm73/usr/etc/php-fpm.conf: No such file or directory
/usr/local/src/php-fpm-7.3.sh: line 90: /opt/alt/php-fpm73/usr/etc/php-fpm.d/cwpsvc.conf: No such file or directory
cp: cannot stat 'sapi/fpm/php-fpm.service': No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm73.service: No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm73.service: No such file or directory
Failed to execute operation: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.3/opcache.sh: line 3: /opt/alt/php-fpm73/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /opcache.so
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
--2018-12-11 08:50:41--  https://pecl.php.net/get/apcu-5.1.12.tgz
Resolving pecl.php.net (pecl.php.net)... 104.236.228.160
Connecting to pecl.php.net (pecl.php.net)|104.236.228.160|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 105890 (103K) [application/octet-stream]
Saving to: 'apcu-5.1.12.tgz'

     0K .......... .......... .......... .......... .......... 48%  384K 0s
    50K .......... .......... .......... .......... .......... 96%  193K 0s
   100K ...                                                   100% 6501G=0.4s

2018-12-11 08:50:41 (266 KB/s) - 'apcu-5.1.12.tgz' saved [105890/105890]

/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.3/apcu.sh: line 8: /opt/alt/php-fpm73/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.3/apcu.sh: line 9: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.

/usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/external_modules/7.3/apcu.sh: line 13: /opt/alt/php-fpm73/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /apcu.so
exe:/opt/alt/php-fpm73/usr/sbin/php-fpm
Redirecting to /bin/systemctl restart httpd.service

Build Completed
###################


Error:Can't add notification!

Offline
***
Re: ERROR: Missing extension file /apcu.so
« Reply #4 on: December 12, 2018, 02:32:41 AM »
Seems you don't have libxml2-devel installed, causing cascade effects in other libs.

Try to install with yum:
# yum install libxml2 libxml2-devel

Regards,
Netino

Offline
*
Re: ERROR: Missing extension file /apcu.so
« Reply #5 on: December 12, 2018, 10:13:23 AM »
Seems you don't have libxml2-devel installed, causing cascade effects in other libs.

Try to install with yum:
# yum install libxml2 libxml2-devel

Regards,
Netino

Thank you for your help! I installed libxml2 and other libraries required and... it started compiling. After 10 minutes it stopped with this error:



/bin/sh /tmp/php-build/php-7.2.13/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/session/ -I/tmp/php-build/php-7.2.13/ext/session/ -DPHP_ATOM_INC -I/tmp/php-build/php-7.2.13/include -I/tmp/php-build/php-7.2.13/main -I/tmp/php-build/php-7.2.13 -I/tmp/php-build/php-7.2.13/ext/date/lib -I/usr/include/libxml2 -I/usr/X11 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/tmp/php-build/php-7.2.13/ext/mbstring/oniguruma -I/tmp/php-build/php-7.2.13/ext/mbstring/libmbfl -I/tmp/php-build/php-7.2.13/ext/mbstring/libmbfl/mbfl -I/tmp/php-build/php-7.2.13/ext/sqlite3/libsqlite -I/usr/include/pspell -I/tmp/php-build/php-7.2.13/ext/zip/lib -I/tmp/php-build/php-7.2.13/TSRM -I/tmp/php-build/php-7.2.13/Zend    -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS   -c /tmp/php-build/php-7.2.13/ext/session/mod_user.c -o ext/session/mod_user.lo
/bin/sh /tmp/php-build/php-7.2.13/libtool --silent --preserve-dup-deps --mode=compile cc  -Iext/simplexml/ -I/tmp/php-build/php-7.2.13/ext/simplexml/ -DPHP_ATOM_INC -I/tmp/php-build/php-7.2.13/include -I/tmp/php-build/php-7.2.13/main -I/tmp/php-build/php-7.2.13 -I/tmp/php-build/php-7.2.13/ext/date/lib -I/usr/include/libxml2 -I/usr/X11 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/tmp/php-build/php-7.2.13/ext/mbstring/oniguruma -I/tmp/php-build/php-7.2.13/ext/mbstring/libmbfl -I/tmp/php-build/php-7.2.13/ext/mbstring/libmbfl/mbfl -I/tmp/php-build/php-7.2.13/ext/sqlite3/libsqlite -I/usr/include/pspell -I/tmp/php-build/php-7.2.13/ext/zip/lib -I/tmp/php-build/php-7.2.13/TSRM -I/tmp/php-build/php-7.2.13/Zend    -I/usr/include -g -O2 -fvisibility=hidden -DZEND_SIGNALS   -c /tmp/php-build/php-7.2.13/ext/simplexml/simplexml.c -o ext/simplexml/simplexml.lo
Terminated
make: *** [ext/simplexml/simplexml.lo] Error 1



Any hint?

Offline
*
Re: ERROR: Missing extension file /apcu.so
« Reply #6 on: December 13, 2018, 08:58:34 AM »
I've just tried again building and it worked at second time.