Author Topic: PHP-FPM Selector - Build Fails  (Read 2694 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
PHP-FPM Selector - Build Fails
« on: May 10, 2021, 03:17:45 AM »
I am getting multiple build fails in Centos 7 & 8 Stream when trying to compile PHP-FPM through selector.

Have been getting these errors since yesterday 4-5 times, despite install libzip separately from repos. This issue was not there a week back. Unfortunately had to reinstall the server yesterday.

Code: [Select]
checking libzip... yes
checking for the location of zlib... /usr
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for libzip... not found
configure: error: Please reinstall the libzip distribution
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 99: /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 100: /opt/alt/php-fpm73/usr/etc/php-fpm.conf: No such file or directory
/usr/local/src/php-fpm-7.3.sh: line 102: /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 enable unit: Unit file php-fpm73.service does not exist.
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
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Code: [Select]
checking target system type... x86_64-unknown-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Skipping as php build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Last metadata expiration check: 0:02:33 ago on Mon May 10 10:49:23 2021.
Package libsodium-1.0.18-2.el8.x86_64 is already installed.
Package libsodium-devel-1.0.18-2.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 28505  100 28505    0     0  25203      0  0:00:01  0:00:01 --:--:-- 25248
/usr/local/cwpsrv/htdocs/resources/conf/el8/php-fpm_selector/external_modules/7.3/sodium.sh: line 9: /opt/alt/php-fpm73/usr/bin/phpize: No such file or directory
/usr/local/cwpsrv/htdocs/resources/conf/el8/php-fpm_selector/external_modules/7.3/sodium.sh: line 10: ./configure: No such file or directory
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
/usr/local/cwpsrv/htdocs/resources/conf/el8/php-fpm_selector/external_modules/7.3/sodium.sh: line 14: /opt/alt/php-fpm73/usr/bin/php-config: No such file or directory
ERROR: Missing extension file /sodium.so
exe:/opt/alt/php-fpm73/usr/sbin/php-fpm
--2021-05-10 10:51:59--  https://ftp.pcre.org/pub/pcre/pcre2-10.34.zip

While building PHP it gives an error related to libzip which is pasted above, but the script tries libzip install after throwing the above error, and then it says libzip is already installed??

Code: [Select]
Last metadata expiration check: 0:03:35 ago on Mon May 10 10:49:23 2021.
Package zlib-devel-1.2.11-16.2.el8_3.x86_64 is already installed.
Error:
 Problem: cannot install both cmake-3.18.2-9.el8.x86_64 and cmake-3.11.4-7.el8.x86_64
  - cannot install the best candidate for the job
  - conflicting requests
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
ln: failed to create symbolic link '/usr/bin/cmake3': File exists
URL transformed to HTTPS due to an HSTS policy
--2021-05-10 10:53:00--  https://libzip.org/download/libzip-1.5.1.tar.gz
Resolving libzip.org (libzip.org)... 5.2.73.210, 2a04:52c0:101:2e6::de6c
Connecting to libzip.org (libzip.org)|5.2.73.210|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1189827 (1.1M) [application/x-gzip]
Saving to: 'libzip-1.5.1.tar.gz'

Lastly, sometime later:

Code: [Select]
checking for libexslt... yes
checking whether to enable zend-test extension... no
checking for zip archive read/write support... yes
checking for libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0... no
configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:

Package 'libzip', required by 'virtual:world', not found
Package 'libzip', required by 'virtual:world', not found
Package 'libzip', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBZIP_CFLAGS
and LIBZIP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
mkdir: cannot create directory '/opt/alt/php-fpm80/usr/var/sockets/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm80/usr/etc/php-fpm.d/': No such file or directory
mkdir: cannot create directory '/opt/alt/php-fpm80/usr/etc/php-fpm.d/users/': No such file or directory
/usr/local/src/php-fpm-8.0.sh: line 99: /opt/alt/php-fpm80/usr/etc/php-fpm.d/users.conf: No such file or directory
/usr/local/src/php-fpm-8.0.sh: line 100: /opt/alt/php-fpm80/usr/etc/php-fpm.conf: No such file or directory
/usr/local/src/php-fpm-8.0.sh: line 102: /opt/alt/php-fpm80/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-fpm80.service: No such file or directory
sed: can't read /usr/lib/systemd/system/php-fpm80.service: No such file or directory
Failed to enable unit: Unit file php-fpm80.service does not exist.
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
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory


Offline
*
Re: PHP-FPM Selector - Build Fails
« Reply #2 on: May 10, 2021, 07:06:36 AM »
Thanks. That worked.