PHP Developers Network
http://forums.devnetwork.net/

compile redis or any module together to php
http://forums.devnetwork.net/viewtopic.php?f=30&t=143700
Page 1 of 1

Author:  oscaroxy [ Wed May 31, 2017 2:26 am ]
Post subject:  compile redis or any module together to php

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

Author:  requinix [ Wed May 31, 2017 3:26 am ]
Post subject:  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.

Author:  oscaroxy [ Wed May 31, 2017 4:46 am ]
Post subject:  Re: compile redis or any module together to php

thanks a lot, you have removed a doubt
:D

Author:  oscaroxy [ Wed May 31, 2017 5:17 am ]
Post subject:  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
Syntax: [ Download ] [ Hide ]
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
 

have I php 7.1.5 installed now?
is phpredis enabled?

thanks

Author:  requinix [ Wed May 31, 2017 7:00 am ]
Post subject:  Re: compile redis or any module together to php


Author:  oscaroxy [ Wed May 31, 2017 7:14 am ]
Post subject:  Re: compile redis or any module together to php

so without phpize I don't install correctly the extension.
thanks for your patience
bye

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/