I would install phpredis with php, that is, I would download php 7.1.5, download phpredis (master) and both compile together.
what is the line to add in ./configure of php?
an alternative is compile phpredis (./configure && make && make install into php7.1.5/ext)
after
cd php7.1.5
./configure \
-with-config-file-path=/etc \
-with-libdir=lib64 \
-prefix=/usr/local \
-with-layout=PHP \
-with-pear \
-with-apxs2 \
-enable-calendar \
-enable-bcmath \
-with-gmp \
-enable-exif \
-with-mcrypt \
-with-mhash \
-with-zlib \
-with-bz2 \
-enable-zip \
-enable-ftp \
-enable-mbstring \
-with-iconv \
-enable-intl \
-with-icu-dir=/usr \
-with-gettext \
-with-pspell \
-enable-sockets \
-with-openssl=/usr/local \
-with-curl \
-with-curlwrappers \
-with-gd \
-enable-gd-native-ttf \
-with-jpeg-dir=/usr \
-with-png-dir=/usr \
-with-zlib-dir=/usr \
-with-xpm-dir=/usr \
-with-vpx-dir=/usr \
-with-freetype-dir=/usr \
-with-libxml-dir=/usr \
-with-mysqli=mysqlnd \
-with-pdo-mysql=mysqlnd \
-enable-soap \
-with-xmlrpc \
-with-xsl \
-with-tidy=/usr \
-with-readline \
-enable-pcntl \
-enable-sysvshm \
-enable-sysvmsg \
-enable-shmop
make && make install
and add into php.ini extension=redis.so
thanks
compile redis or any module together to php
Moderator: General Moderators
Re: compile redis or any module together to php
./configure only works with "core" extensions. Those that are bundled together with PHP. The redis extension is not in the core so it needs to be built separately.
Re: compile redis or any module together to php
thanks a lot, you have removed a doubt


Re: compile redis or any module together to php
another doubt, if I can...
in the self condition of before, if I don't use phpize command what happens?
that is:
you suppose I have php 7.0.0 installed
have I php 7.1.5 installed now?
is phpredis enabled?
thanks
in the self condition of before, if I don't use phpize command what happens?
that is:
you suppose I have php 7.0.0 installed
Code: Select all
download php7.1.5
cd php7.1.5/ext
download phpredis
cd phpredis
configure
make && make install
cd ../../ (pwd php7.1.5)
.configure -with=.....
make && make install
vi php.ini -> extension=redis.so
is phpredis enabled?
thanks
Re: compile redis or any module together to php
You won't be able to build the extension correctly.oscaroxy wrote:in the self condition of before, if I don't use phpize command what happens?
Yes, because you followed the steps for how to build and install PHP.oscaroxy wrote:have I php 7.1.5 installed now?
Probably not, because you can't build and install a PHP extension until you have PHP itself built and installed. Also I don't think you followed the steps for building an extension.oscaroxy wrote:is phpredis enabled?
Re: compile redis or any module together to php
so without phpize I don't install correctly the extension.
thanks for your patience
bye
thanks for your patience
bye