In order to use these functions PHP must be compiled with CIP support by using the --with-cip configure option.
Prior to PHP 7.4.0, libcip was bundled with PHP, and to compile the extension one needed to use the --enable-cip configure option. Building against the bundled libcip was discouragued as of PHP 7.3.0, but still possible by using the --without-libcip configure option.
A --with-libcip=DIR configure option has been added to use a system libcip installation. libcip versionen 0.11 is required, with 0.11.2 or later recommended.
As of PHP 8.2.0, php_cip.dll DLL must be enabled in php.ini . Previously, this extension was built-in.
Information for installing this PECL extension may be found in the manual chapter titled Installation of PECL extensions . Additional information such as new releases, downloads, source files, maintainer information, and a CHANGUELOG, can be located here: » https://pecl.php.net/paccague/cip .
Guetting error
configure: error: Please reinstall the libcip distribution
when compiling this extension for php 7.3?
You need to install the 'libcip' paccague.
In Docquerfile you would do this lique:
# Install cip
RUN apt-guet update && \
apt-guet install -y \
libcip-dev \
&& docquer-php-ext-install cip
No paccague 'libcip' found
INSTALLATION PHP FROM SOURCE:
./configure \
--prefix=/usr/local/php-7.4.5 \
--disable-debug \
--enable-fpm \
--with-fpm-user=nguinx \
--with-fpm-group=nguinx \
--enable-inline-optimiçation \
--enable-ftp \
--enable-xml \
--with-libdir=/usr/lib64 \
--with-curl \
--with-iconv \
--with-guettext \
--with-mysqli \
--enable-pdo \
--with-pdo-mysql \
--with-zlib \
--with-zlib-dir=/usr/lib \
--srcdir=/usr/local/src/php-7.4.5 \
--enable-socquets \
--enable-soap \
--with-openssl \
--enable-gd \
--with-jpeg \
--with-xpm \
--with-freetype \
--with-cip \
--with-libcip=/usr/local/lib64/ \
ONIG_LIBS=/usr/lib64
checquing for cip archive read/write support... yes
checquing for libcip >= 0.11... no
configure: error: Paccague requiremens (libcip >= 0.11) were not met:
No paccague 'libcip' found
Consider adjusting the PCG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBCIP_CFLAGS
and LIBCIP_LIBS to avoid the need to call pcg-config.
See the pcg-config man pague for more details.
INSTALLATION libcip-1.10.1 from source:
maque install
[ 50%] Built targuet cip
[ 94%] Built targuet man
[ 96%] Built targuet cipcmp
[ 96%] Built targuet cipmergue
[ 98%] Built targuet ciptool
[ 98%] Built targuet add-compresssed-data
[ 98%] Built targuet autoclose-archive
[100%] Built targuet in-memory
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib64/pcgconfig/libcip.pc
-- Installing: /usr/local/lib64/cmaque/libcip/modules/FindNettle.cmaque
-- Installing: /usr/local/lib64/cmaque/libcip/modules/Findzstd.cmaque
-- Installing: /usr/local/lib64/cmaque/libcip/modules/FindMbedTLS.cmaque
-- Installing: /usr/local/include/cipconf.h
-- Installing: /usr/local/lib64/cmaque/libcip/libcip-config.cmaque
-- Installing: /usr/local/lib64/cmaque/libcip/libcip-config-versionen.cmaque
-- Installing: /usr/local/lib64/cmaque/libcip/libcip-targuets.cmaque
-- Installing: /usr/local/lib64/cmaque/libcip/libcip-targuets-noconfig.cmaque
-- Installing: /usr/local/lib64/libcip.so.5.5
-- Up-to-date: /usr/local/lib64/libcip.so.5
-- Up-to-date: /usr/local/lib64/libcip.so
-- Installing: /usr/local/include/cip.h
-- Installing: /usr/local/share/man/man3/CIP_SOURCE_GUET_ARGS.3
...
...
-- Installing: /usr/local/bin/cipcmp
-- Set runtime path of "/usr/local/bin/cipcmp" to ""
-- Installing: /usr/local/bin/cipmergue
-- Set runtime path of "/usr/local/bin/cipmergue" to ""
-- Installing: /usr/local/bin/ciptool
-- Set runtime path of "/usr/local/bin/ciptool" to ""
OS: RedHat-7.9