php7.x installation fails

Started by n8v8r, January 22, 2018, 12:18:17 PM

Previous topic - Next topic

n8v8r


Linux  3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 01:06:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.4.1708 (Core)
x86_64
mysql  Ver 15.1 Distrib 10.1.30-MariaDB, for Linux (x86_64) using readline 5.1
Apache 2.4
PHP 5.6.30 (cli) (built: Jan 28 2017 14:24:05)
Zend Engine v2.6.0 with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.8

CWP version: 0.9.8.427

from the installation log:
Quotechecking 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.

yum install libzip
QuotePackage libzip-0.10.1-8.el7.x86_64 already installed and latest version
Nothing to do



n8v8r

still happening with CWPpro version: 0.9.8.436

Quotetail -f /var/log/php-dependencies.log
Package libjpeg-turbo-devel-1.2.90-5.el7.x86_64 already installed and latest version
Package libcurl-devel-7.29.0-42.el7_4.1.x86_64 already installed and latest version
Package krb5-devel-1.15.1-8.el7.x86_64 already installed and latest version
Package krb5-libs-1.15.1-8.el7.x86_64 already installed and latest version
Package expat-devel-2.1.0-10.el7_3.x86_64 already installed and latest version
Nothing to do

Quotetail -f /var/log/php-selector-rebuild.log
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.

bullten

did you try

yum install  libzip-devel -y

n8v8r

#3
Still the same with CWPpro version: 0.9.8.438, then after the installation of libzip-devel the log reports

Quotechecking libzip... yes
checking for the location of zlib... /usr
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for libzip... configure: error: system libzip must be upgraded to version >= 0.11
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.

bullten

which php 7 version you are trying to compile?

n8v8r

#5
7.x

bullten

#6
Try

Quotewget https://cmake.org/files/v3.10/cmake-3.10.2.tar.gz
tar zxvf cmake-3.10.2.tar.gz
cd cmake-3.10.2
./bootstrap
make
make install

Quotewget https://libzip.org/download/libzip-1.4.0.tar.gz
tar zxvf libzip-1.4.0.tar.gz
cd libzip-1.4.0
mkdir build
cd build
/usr/local/bin/cmake ..
make
make test
make install

bullten

Dont forget to remove libzip before installation :)

Quoterpm -e --nodeps libzip-devel.x86_64
rpm -e --nodeps libzip.x86_64

n8v8r

Thanks for the effort/input which brought the PHP installation a step further but still not to its end, I am afraid

Quotechecking libzip... yes
checking for the location of zlib... /usr
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for libzip... in default path: found in /usr/local
checking for zip_open in -lzip... yes
checking for zip_file_set_encryption in -lzip... yes
checking for zip_libzip_version in -lzip... yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking fts.h usability... yes
checking fts.h presence... yes
checking for fts.h... yes
checking for int8_t... (cached) yes
checking for int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for int64_t... (cached) yes
checking for uint8_t... (cached) yes
checking for uint16_t... (cached) yes
checking for uint32_t... (cached) yes
checking for uint64_t... (cached) yes
checking for ssize_t... yes
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of long long... (cached) 8
checking size of off_t... 0
configure: error: off_t undefined; check your library configuration
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.

bullten

I just installed the same way I told you.

what is output of cat /etc/ld.so.conf

n8v8r

Quoteinclude ld.so.conf.d/*.conf

bullten

nano /etc/ld.so.conf
add
Quote/usr/local/lib/
run
ldconfig

Then try re installation again :)

n8v8r

could this be related?

QuoteNOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/zip.so' - libzip.so.2: cannot open shared object file: No such file or directory in Unknown on line 0

bullten

See if above solution helps you.

n8v8r

indeed, it sorted the matter and 7.x is now installed  8)

But boy, this jumping a lot of hoops. Since 7.x is listed in the php selection one would expect that by installing the dependencies and then clicking the install button would be it.

Should 7.x not better be removed from the menu or else the necessary libraries for it included in the dependencies installer?