phpredis扩展安装总结:
PHP扩展安装在[root@iZ254lfyd6nZ lampp]# cd include 目录下
创建一个目录phpredis
下载扩展:wget https://github.com/nicolasff/phpredis/archive/master.tar.gz
解压:[root@iZ254lfyd6nZ phpredis]# tar xvf master.tar.gz
运行:[root@iZ254lfyd6nZ phpredis-master]# /opt/lampp/bin/phpize
安装GCC,避免下面的报错: [root@iZ254lfyd6nZ phpredis-master]# /opt/lampp/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
[root@iZ254lfyd6nZ phpredis-master]# ./configure --with-php-config=/opt/lampp/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/opt/lampp/include/php/ext/phpredis/phpredis-master':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@iZ254lfyd6nZ phpredis-master]# yum -y install gcc 运行:
[root@iZ254lfyd6nZ phpredis-master]# ./configure --with-php-config=/opt/lampp/bin/php-config 编译+安装:
[root@iZ254lfyd6nZ phpredis-master]# make && make install 重启WEB服务器:
[root@iZ254lfyd6nZ phpredis-master]# /opt/lampp/lampp stopapache
XAMPP: Stopping Apache...ok.
[root@iZ254lfyd6nZ phpredis-master]# /opt/lampp/lampp startapache 还有去配置PHP.ini的支持:

extension_dir = "/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226"
extension=redis.so


--------------------------------------  日志:
Welcome to aliyun Elastic Compute Service!

[root@iZ254lfyd6nZ ~]# ls
hello.txt test-conf xm-cron
[root@iZ254lfyd6nZ ~]# cd /
[root@iZ254lfyd6nZ /]# ls
bin boot dev etc home lib lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var
[root@iZ254lfyd6nZ /]# redis-server --version
-bash: redis-server: command not found
[root@iZ254lfyd6nZ /]# src/redis-server --version
-bash: src/redis-server: No such file or directory
[root@iZ254lfyd6nZ /]# cd root
[root@iZ254lfyd6nZ ~]# ls
hello.txt test-conf xm-cron
[root@iZ254lfyd6nZ ~]# cd root
-bash: cd: root: No such file or directory
[root@iZ254lfyd6nZ ~]# redis-cli
-bash: redis-cli: command not found
[root@iZ254lfyd6nZ ~]# redis-server
-bash: redis-server: command not found
[root@iZ254lfyd6nZ ~]# cd opt
-bash: cd: opt: No such file or directory
[root@iZ254lfyd6nZ ~]# ls
hello.txt test-conf xm-cron
[root@iZ254lfyd6nZ ~]# ls
hello.txt test-conf xm-cron
[root@iZ254lfyd6nZ ~]# cd /
[root@iZ254lfyd6nZ /]# ls
bin boot dev etc home lib lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var
[root@iZ254lfyd6nZ /]# cd opt
[root@iZ254lfyd6nZ opt]# ls
lampp rh xampp-linux-x64-5.6.--installer.run
[root@iZ254lfyd6nZ opt]# cd /
[root@iZ254lfyd6nZ /]# ls
bin boot dev etc home lib lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var
[root@iZ254lfyd6nZ /]# cd usr
[root@iZ254lfyd6nZ usr]# ls
bin etc games include lib lib64 libexec local sbin share src tmp
[root@iZ254lfyd6nZ usr]# cd local
[root@iZ254lfyd6nZ local]# ls
aegis bin etc games include lib lib64 libexec redis redis-2.8..tar.gz sbin share src
[root@iZ254lfyd6nZ local]# cd redis
[root@iZ254lfyd6nZ redis]# ls
-RELEASENOTES CONTRIBUTING deps INSTALL MANIFESTO redis.conf runtest-sentinel src utils
BUGS COPYING dump.rdb Makefile README runtest sentinel.conf tests
[root@iZ254lfyd6nZ redis]# cd src
[root@iZ254lfyd6nZ src]# ls
adlist.c aof.o db.o intset.h mkreleasehdr.sh rand.c redis-check-dump replication.o sha1.h t_list.o ziplist.o
adlist.h asciilogo.h debug.c intset.o multi.c rand.h redis-check-dump.c rio.c sha1.o t_set.c zipmap.c
adlist.o bio.c debug.o lzf_c.c multi.o rand.o redis-check-dump.o rio.h slowlog.c t_set.o zipmap.h
ae.c bio.h dict.c lzf_c.o networking.c rdb.c redis-cli rio.o slowlog.h t_string.c zipmap.o
ae_epoll.c bio.o dict.h lzf_d.c networking.o rdb.h redis-cli.c scripting.c slowlog.o t_string.o zmalloc.c
ae_evport.c bitops.c dict.o lzf_d.o notify.c rdb.o redis-cli.o scripting.o solarisfixes.h t_zset.c zmalloc.h
ae.h bitops.o endianconv.c lzf.h notify.o redisassert.h redis.h sds.c sort.c t_zset.o zmalloc.o
ae_kqueue.c config.c endianconv.h lzfP.h object.c redis-benchmark redis.o sds.h sort.o util.c
ae.o config.h endianconv.o Makefile object.o redis-benchmark.c redis-sentinel sds.o syncio.c util.h
ae_select.c config.o fmacros.h Makefile.dep pqsort.c redis-benchmark.o redis-server sentinel.c syncio.o util.o
anet.c crc64.c help.h memtest.c pqsort.h redis.c release.c sentinel.o testhelp.h valgrind.sup
anet.h crc64.h hyperloglog.c memtest.o pqsort.o redis-check-aof release.h setproctitle.c t_hash.c version.h
anet.o crc64.o hyperloglog.o migrate.c pubsub.c redis-check-aof.c release.o setproctitle.o t_hash.o ziplist.c
aof.c db.c intset.c migrate.o pubsub.o redis-check-aof.o replication.c sha1.c t_list.c ziplist.h
[root@iZ254lfyd6nZ src]# redis-server
-bash: redis-server: command not found
[root@iZ254lfyd6nZ src]# cd ..
[root@iZ254lfyd6nZ redis]# ls
-RELEASENOTES CONTRIBUTING deps INSTALL MANIFESTO redis.conf runtest-sentinel src utils
BUGS COPYING dump.rdb Makefile README runtest sentinel.conf tests
[root@iZ254lfyd6nZ redis]# src/redis-server
[] Jun ::20.447 # Warning: no config file specified, using the default config. In order to specify a config file use src/redis-server /path/to/redis.conf
[] Jun ::20.448 # Creating Server TCP listening socket *:: bind: Address already in use
[root@iZ254lfyd6nZ redis]# src/redis-cli
127.0.0.1:> dbsize
(integer)
127.0.0.1:> ping
PONG
127.0.0.1:> set name "tanglei"
OK
127.0.0.1:> get name
"tanglei"
127.0.0.1:> get name
"tanglei"
127.0.0.1:> quit
[root@iZ254lfyd6nZ redis]# cd /
[root@iZ254lfyd6nZ /]# ls
bin boot dev etc home lib lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var
[root@iZ254lfyd6nZ /]# cd usr
[root@iZ254lfyd6nZ usr]# ls
bin etc games include lib lib64 libexec local sbin share src tmp
[root@iZ254lfyd6nZ usr]# cd local
[root@iZ254lfyd6nZ local]# ls
aegis bin etc games include lib lib64 libexec redis redis-2.8..tar.gz sbin share src
[root@iZ254lfyd6nZ local]# cd bin
[root@iZ254lfyd6nZ bin]# ls
[root@iZ254lfyd6nZ bin]# cd ..
[root@iZ254lfyd6nZ local]# ls
aegis bin etc games include lib lib64 libexec redis redis-2.8..tar.gz sbin share src
[root@iZ254lfyd6nZ local]# cd /
[root@iZ254lfyd6nZ /]# ls
bin boot dev etc home lib lib64 lost+found media mnt opt proc root sbin selinux srv sys tmp usr var
[root@iZ254lfyd6nZ /]# cd opt
[root@iZ254lfyd6nZ opt]# ls
lampp rh xampp-linux-x64-5.6.--installer.run
[root@iZ254lfyd6nZ opt]# cd lampp
[root@iZ254lfyd6nZ lampp]# ls
apache2 cgi-bin error icons info libexec man modules php properties.ini share uninstall.dat
bin ctlscript.sh etc img lampp licenses manager-linux-x64.run mysql phpmyadmin RELEASENOTES temp var
build docs htdocs include lib logs manual pear proftpd sbin uninstall xampp
[root@iZ254lfyd6nZ lampp]# cd php
[root@iZ254lfyd6nZ php]# ls
man
[root@iZ254lfyd6nZ php]# cd bin
-bash: cd: bin: No such file or directory
[root@iZ254lfyd6nZ php]# ls
man
[root@iZ254lfyd6nZ php]# cd ..
[root@iZ254lfyd6nZ lampp]# ls
apache2 cgi-bin error icons info libexec man modules php properties.ini share uninstall.dat
bin ctlscript.sh etc img lampp licenses manager-linux-x64.run mysql phpmyadmin RELEASENOTES temp var
build docs htdocs include lib logs manual pear proftpd sbin uninstall xampp
[root@iZ254lfyd6nZ lampp]# cd bin
[root@iZ254lfyd6nZ bin]# ls
a2p dbilogstrip gen_php_doc.sh libpng-config mysqlaccess.conf pear pstruct tiffdump
ab dbiprof genrb listaction mysqladmin peardev ptar tiffinfo
annotate dbiproxy GET listaction_d mysqlbinlog pearinfo ptardiff tiffmedian
apachectl dbl2png gettext listfdb mysqlbug pecl ptargrep tiffset
apr--config dbmmanage gettextize listjpeg mysqlcheck perl ras2tiff tiffsplit
apreq2-config defncopy gettext.sh listmp3 mysql_client_test perl5.16.3 raw2adpcm toe
apu--config derb gif2tiff listswf mysql_client_test_embedded perlbug raw2tiff tput
apxs djpeg giftogd2 listswf_d mysql_config perldoc rdjpgcom tset
autopoint enc2xs h2ph logresolve mysql_config_editor perlivp recode-sr-latin tsql
bdftogd envsubst h2xs lwp-download mysql_convert_table_format perlthanks replace uconv
bison envvars HEAD lwp-mirror mysqld_multi perror reset unzip-mem
bmp2tiff envvars-std htcacheclean lwp-request mysqld_safe phar resolveip unzzip
bsqldb fax2ps htdbm lwp-rget mysqldump phar.phar resolve_stack_dump unzzipcat
bunzip2 fax2tiff htdigest makeconv mysqldumpslow php rgb2ycbcr unzzipcat-mem
bzcat fcgistarter html_template_phplibtool makefdb mysql_embedded php-5.6. rotatelogs unzzipcat-seeko
bzcmp find2perl htpasswd makeswf mysql_find_rows php-cgi s2p unzzipdir
bzdiff fisql httpd ming-config mysql_fix_extensions php-cgi-5.6. sabcmd unzzipdir-mem
bzegrep fix_rights httxt2dbm mp2bug mysqlhotcopy php-config sablot-config wcmgr
bzfgrep flex iconv msgattrib mysqlimport php-config-5.6. shasum webalizer
bzgrep flex++ icu-config msgcat mysql_install_db phpize splain webazolver
bzip2 freebcp icuinfo msgcmp mysql_plugin phpize-5.6. sqlite webpng
bzip2recover freetype-config infocmp msgcomm mysql_secure_installation phpunit sqlite3 wrjpgcom
bzless ftpasswd infotocap msgconv mysql.server piconv suexec xgettext
bzmore ftpcount innochecksum msgen mysql_setpermission pkgdata swftocxx xml2-config
c2ph ftpdctl instmodsh msgexec mysqlshow pl2pm swftoperl xmlcatalog
captoinfo ftpmail jpegtran msgfilter mysqlslap png2dbl swftophp xmllint
checkgid ftpquota json_pp msgfmt mysqltest pngtogd swftopython xmlwf
cjpeg ftptop ldapadd msggrep mysqltest_embedded pngtogd2 swftotcl xslt-config
clear ftpwho ldapcompare msginit mysql_tzinfo_to_sql pod2html tabs xsltproc
config_data gd2copypal ldapdelete msgmerge mysql_upgrade pod2latex tdspool xsubpp
corelist gd2togif ldapexop msgunfmt mysql_waitpid pod2man thumbnail yacc
cpan gd2topng ldapmodify msguniq mysql_zap pod2text tic ysh
cpan2dist gdcmpgif ldapmodrdn msql2mysql ncurses5-config pod2usage tiff2bw zipdetails
cpanp gdlib-config ldappasswd myisamchk ngettext podchecker tiff2pdf zzcat
cpanp-run-perl gdparttopng ldapsearch myisam_ftdump openssl podselect tiff2ps zzdir
crc32 gdtopng ldapurl myisamlog osql POST tiff2rgba zzxorcat
c_rehash genbrk ldapwhoami myisampack pal2rgb ppm2tiff tiffcmp zzxorcopy
curl gencfu libmcrypt-config my_print_defaults pcre-config prove tiffcp zzxordir
curl-config gencnval libnetcfg mysql pcregrep prxs tiffcrop
datacopy genctd libpng15-config mysqlaccess pcretest psed tiffdither
[root@iZ254lfyd6nZ bin]# cd php-5.6.
-bash: cd: php-5.6.: Not a directory
[root@iZ254lfyd6nZ bin]# ls
a2p dbilogstrip gen_php_doc.sh libpng-config mysqlaccess.conf pear pstruct tiffdump
ab dbiprof genrb listaction mysqladmin peardev ptar tiffinfo
annotate dbiproxy GET listaction_d mysqlbinlog pearinfo ptardiff tiffmedian
apachectl dbl2png gettext listfdb mysqlbug pecl ptargrep tiffset
apr--config dbmmanage gettextize listjpeg mysqlcheck perl ras2tiff tiffsplit
apreq2-config defncopy gettext.sh listmp3 mysql_client_test perl5.16.3 raw2adpcm toe
apu--config derb gif2tiff listswf mysql_client_test_embedded perlbug raw2tiff tput
apxs djpeg giftogd2 listswf_d mysql_config perldoc rdjpgcom tset
autopoint enc2xs h2ph logresolve mysql_config_editor perlivp recode-sr-latin tsql
bdftogd envsubst h2xs lwp-download mysql_convert_table_format perlthanks replace uconv
bison envvars HEAD lwp-mirror mysqld_multi perror reset unzip-mem
bmp2tiff envvars-std htcacheclean lwp-request mysqld_safe phar resolveip unzzip
bsqldb fax2ps htdbm lwp-rget mysqldump phar.phar resolve_stack_dump unzzipcat
bunzip2 fax2tiff htdigest makeconv mysqldumpslow php rgb2ycbcr unzzipcat-mem
bzcat fcgistarter html_template_phplibtool makefdb mysql_embedded php-5.6. rotatelogs unzzipcat-seeko
bzcmp find2perl htpasswd makeswf mysql_find_rows php-cgi s2p unzzipdir
bzdiff fisql httpd ming-config mysql_fix_extensions php-cgi-5.6. sabcmd unzzipdir-mem
bzegrep fix_rights httxt2dbm mp2bug mysqlhotcopy php-config sablot-config wcmgr
bzfgrep flex iconv msgattrib mysqlimport php-config-5.6. shasum webalizer
bzgrep flex++ icu-config msgcat mysql_install_db phpize splain webazolver
bzip2 freebcp icuinfo msgcmp mysql_plugin phpize-5.6. sqlite webpng
bzip2recover freetype-config infocmp msgcomm mysql_secure_installation phpunit sqlite3 wrjpgcom
bzless ftpasswd infotocap msgconv mysql.server piconv suexec xgettext
bzmore ftpcount innochecksum msgen mysql_setpermission pkgdata swftocxx xml2-config
c2ph ftpdctl instmodsh msgexec mysqlshow pl2pm swftoperl xmlcatalog
captoinfo ftpmail jpegtran msgfilter mysqlslap png2dbl swftophp xmllint
checkgid ftpquota json_pp msgfmt mysqltest pngtogd swftopython xmlwf
cjpeg ftptop ldapadd msggrep mysqltest_embedded pngtogd2 swftotcl xslt-config
clear ftpwho ldapcompare msginit mysql_tzinfo_to_sql pod2html tabs xsltproc
config_data gd2copypal ldapdelete msgmerge mysql_upgrade pod2latex tdspool xsubpp
corelist gd2togif ldapexop msgunfmt mysql_waitpid pod2man thumbnail yacc
cpan gd2topng ldapmodify msguniq mysql_zap pod2text tic ysh
cpan2dist gdcmpgif ldapmodrdn msql2mysql ncurses5-config pod2usage tiff2bw zipdetails
cpanp gdlib-config ldappasswd myisamchk ngettext podchecker tiff2pdf zzcat
cpanp-run-perl gdparttopng ldapsearch myisam_ftdump openssl podselect tiff2ps zzdir
crc32 gdtopng ldapurl myisamlog osql POST tiff2rgba zzxorcat
c_rehash genbrk ldapwhoami myisampack pal2rgb ppm2tiff tiffcmp zzxorcopy
curl gencfu libmcrypt-config my_print_defaults pcre-config prove tiffcp zzxordir
curl-config gencnval libnetcfg mysql pcregrep prxs tiffcrop
datacopy genctd libpng15-config mysqlaccess pcretest psed tiffdither
[root@iZ254lfyd6nZ bin]# cd php
-bash: cd: php: Not a directory
[root@iZ254lfyd6nZ bin]# ls
a2p dbilogstrip gen_php_doc.sh libpng-config mysqlaccess.conf pear pstruct tiffdump
ab dbiprof genrb listaction mysqladmin peardev ptar tiffinfo
annotate dbiproxy GET listaction_d mysqlbinlog pearinfo ptardiff tiffmedian
apachectl dbl2png gettext listfdb mysqlbug pecl ptargrep tiffset
apr--config dbmmanage gettextize listjpeg mysqlcheck perl ras2tiff tiffsplit
apreq2-config defncopy gettext.sh listmp3 mysql_client_test perl5.16.3 raw2adpcm toe
apu--config derb gif2tiff listswf mysql_client_test_embedded perlbug raw2tiff tput
apxs djpeg giftogd2 listswf_d mysql_config perldoc rdjpgcom tset
autopoint enc2xs h2ph logresolve mysql_config_editor perlivp recode-sr-latin tsql
bdftogd envsubst h2xs lwp-download mysql_convert_table_format perlthanks replace uconv
bison envvars HEAD lwp-mirror mysqld_multi perror reset unzip-mem
bmp2tiff envvars-std htcacheclean lwp-request mysqld_safe phar resolveip unzzip
bsqldb fax2ps htdbm lwp-rget mysqldump phar.phar resolve_stack_dump unzzipcat
bunzip2 fax2tiff htdigest makeconv mysqldumpslow php rgb2ycbcr unzzipcat-mem
bzcat fcgistarter html_template_phplibtool makefdb mysql_embedded php-5.6. rotatelogs unzzipcat-seeko
bzcmp find2perl htpasswd makeswf mysql_find_rows php-cgi s2p unzzipdir
bzdiff fisql httpd ming-config mysql_fix_extensions php-cgi-5.6. sabcmd unzzipdir-mem
bzegrep fix_rights httxt2dbm mp2bug mysqlhotcopy php-config sablot-config wcmgr
bzfgrep flex iconv msgattrib mysqlimport php-config-5.6. shasum webalizer
bzgrep flex++ icu-config msgcat mysql_install_db phpize splain webazolver
bzip2 freebcp icuinfo msgcmp mysql_plugin phpize-5.6. sqlite webpng
bzip2recover freetype-config infocmp msgcomm mysql_secure_installation phpunit sqlite3 wrjpgcom
bzless ftpasswd infotocap msgconv mysql.server piconv suexec xgettext
bzmore ftpcount innochecksum msgen mysql_setpermission pkgdata swftocxx xml2-config
c2ph ftpdctl instmodsh msgexec mysqlshow pl2pm swftoperl xmlcatalog
captoinfo ftpmail jpegtran msgfilter mysqlslap png2dbl swftophp xmllint
checkgid ftpquota json_pp msgfmt mysqltest pngtogd swftopython xmlwf
cjpeg ftptop ldapadd msggrep mysqltest_embedded pngtogd2 swftotcl xslt-config
clear ftpwho ldapcompare msginit mysql_tzinfo_to_sql pod2html tabs xsltproc
config_data gd2copypal ldapdelete msgmerge mysql_upgrade pod2latex tdspool xsubpp
corelist gd2togif ldapexop msgunfmt mysql_waitpid pod2man thumbnail yacc
cpan gd2topng ldapmodify msguniq mysql_zap pod2text tic ysh
cpan2dist gdcmpgif ldapmodrdn msql2mysql ncurses5-config pod2usage tiff2bw zipdetails
cpanp gdlib-config ldappasswd myisamchk ngettext podchecker tiff2pdf zzcat
cpanp-run-perl gdparttopng ldapsearch myisam_ftdump openssl podselect tiff2ps zzdir
crc32 gdtopng ldapurl myisamlog osql POST tiff2rgba zzxorcat
c_rehash genbrk ldapwhoami myisampack pal2rgb ppm2tiff tiffcmp zzxorcopy
curl gencfu libmcrypt-config my_print_defaults pcre-config prove tiffcp zzxordir
curl-config gencnval libnetcfg mysql pcregrep prxs tiffcrop
datacopy genctd libpng15-config mysqlaccess pcretest psed tiffdither
[root@iZ254lfyd6nZ bin]# cd ..
[root@iZ254lfyd6nZ lampp]# ls
apache2 cgi-bin error icons info libexec man modules php properties.ini share uninstall.dat
bin ctlscript.sh etc img lampp licenses manager-linux-x64.run mysql phpmyadmin RELEASENOTES temp var
build docs htdocs include lib logs manual pear proftpd sbin uninstall xampp
[root@iZ254lfyd6nZ lampp]# ls
apache2 cgi-bin error icons info libexec man modules php properties.ini share uninstall.dat
bin ctlscript.sh etc img lampp licenses manager-linux-x64.run mysql phpmyadmin RELEASENOTES temp var
build docs htdocs include lib logs manual pear proftpd sbin uninstall xampp
[root@iZ254lfyd6nZ lampp]# cd php
[root@iZ254lfyd6nZ php]# ls
man
[root@iZ254lfyd6nZ php]# cd bin
-bash: cd: bin: No such file or directory
[root@iZ254lfyd6nZ php]# ls
man
[root@iZ254lfyd6nZ php]# cd ..
[root@iZ254lfyd6nZ lampp]# ls
apache2 cgi-bin error icons info libexec man modules php properties.ini share uninstall.dat
bin ctlscript.sh etc img lampp licenses manager-linux-x64.run mysql phpmyadmin RELEASENOTES temp var
build docs htdocs include lib logs manual pear proftpd sbin uninstall xampp
[root@iZ254lfyd6nZ lampp]# cd cgi-bin
[root@iZ254lfyd6nZ cgi-bin]# ls
printenv printenv.vbs printenv.wsf test-cgi
[root@iZ254lfyd6nZ cgi-bin]# cd ..
[root@iZ254lfyd6nZ lampp]# ls
apache2 cgi-bin error icons info libexec man modules php properties.ini share uninstall.dat
bin ctlscript.sh etc img lampp licenses manager-linux-x64.run mysql phpmyadmin RELEASENOTES temp var
build docs htdocs include lib logs manual pear proftpd sbin uninstall xampp
[root@iZ254lfyd6nZ lampp]# ls
apache2 cgi-bin error icons info libexec man modules php properties.ini share uninstall.dat
bin ctlscript.sh etc img lampp licenses manager-linux-x64.run mysql phpmyadmin RELEASENOTES temp var
build docs htdocs include lib logs manual pear proftpd sbin uninstall xampp
[root@iZ254lfyd6nZ lampp]# cd include
[root@iZ254lfyd6nZ include]# ls
apache_noprobes.h gdfontl.h mhash.h modperl_log.h my_list.h sqlfront.h
ap_compat.h gdfontmb.h ming.h modperl_mgv.h my_net.h sqlite3ext.h
ap_config_auto.h gdfonts.h mingpp.h modperl_module.h my_pthread.h sqlite3.h
ap_config.h gdfontt.h mod_auth.h modperl_options.h mysql sqlite.h
ap_config_layout.h gdfx.h mod_cache.h modperl_pcw.h mysql_com.h sql_state.h
ap_expr.h gd.h mod_cgi.h modperl_perl_global.h mysql_com_server.h sslopt-case.h
ap_hooks.h gd_io.h mod_core.h modperl_perl.h mysqld_ername.h sslopt-longopts.h
ap_listen.h gettext-po.h mod_dav.h modperl_perl_includes.h mysqld_error.h sslopt-vars.h
ap_mmn.h heartbeat.h mod_dbd.h modperl_perl_pp.h mysql_embed.h sxpath.h
ap_mpm.h http_config.h mod_include.h modperl_perl_unembed.h mysql.h sybdb.h
ap_provider.h http_connection.h mod_log_config.h modperl_svptr_table.h mysql_time.h syberror.h
apr- http_core.h modperl_apache_compat.h modperl_sys.h mysql_version.h sybfront.h
ap_regex.h httpd.h modperl_apache_includes.h modperl_time.h my_sys.h tds_sysdep_public.h
ap_regkey.h http_log.h modperl_apr_compat.h modperl_tipool.h my_xml.h tiffconf.h
ap_release.h http_main.h modperl_apr_includes.h modperl_trace.h ncurses tiff.h
apreq2 http_protocol.h modperl_apr_perlio.h modperl_types.h odbcss.h tiffio.h
ap_slotmem.h http_request.h modperl_bucket.h modperl_util.h openssl tiffio.hxx
ap_socache.h http_vhost.h modperl_callback.h modperl_xs_sv_convert.h os.h tiffvers.h
autosprintf.h iconv.h modperl_cgi.h modperl_xs_typedefs.h pcrecpparg.h typelib.h
big_endian.h jconfig.h modperl_cmd.h modperl_xs_util.h pcrecpp.h unicode
bkpublic.h jerror.h modperl_common_includes.h mod_proxy.h pcre.h unixd.h
byte_order_generic.h jmorecfg.h modperl_common_log.h mod_request.h pcreposix.h util_cfgtree.h
byte_order_generic_x86_64.h jpeglib.h modperl_common_types.h mod_rewrite.h pcre_scanner.h util_charset.h
byte_order_generic_x86.h keycache.h modperl_common_util.h mod_session.h pcre_stringpiece.h util_cookies.h
bzlib.h layout modperl_config.h mod_so.h php util_ebcdic.h
cache_common.h lber.h modperl_constants.h mod_ssl.h plugin_audit.h util_fcgi.h
c-client lber_types.h modperl_const.h mod_status.h plugin_ftparser.h util_filter.h
cspublic.h ldap_cdefs.h modperl_debug.h mod_unixd.h plugin.h util_ldap.h
cstypes.h ldap_features.h modperl_directives.h mod_watchdog.h plugin_validate_password.h util_md5.h
ctpublic.h ldap.h modperl_env.h mod_xml2enc.h pngconf.h util_mutex.h
curl ldap_schema.h modperl_error.h mpm_common.h png.h util_script.h
decimal.h ldap_utf8.h modperl_filter.h m_string.h pnglibconf.h util_time.h
entities.h libaio.h modperl_flags.h mutils proftpd util_varbuf.h
errmsg.h libcharset.h modperl_global.h my_alloc.h sabcfg.h util_xml.h
expat_external.h libexslt modperl_gtop.h my_attribute.h sabdbg.h zconf.h
expat.h libpng15 mod_perl.h my_byteorder.h sablot.h zlib.h
FlexLexer.h libxml2 modperl_handler.h my_compiler.h scoreboard.h zzip
freetype2 libxslt modperl_hooks.h my_config.h sdom.h zzip.h
ft2build.h little_endian.h modperl_interp.h my_dbug.h shandler.h zzip-io.h
gdbm.h localcharset.h modperl_io_apache.h my_dir.h slapi-plugin.h zziplib.h
gdcache.h mcrypt.h modperl_io.h my_getopt.h sql_common.h
gdfontg.h m_ctype.h modperl_largefiles.h my_global.h sqldb.h
[root@iZ254lfyd6nZ include]# cd php
[root@iZ254lfyd6nZ php]# ls
ext include main sapi TSRM Zend
[root@iZ254lfyd6nZ php]# cd ext
[root@iZ254lfyd6nZ ext]# ls
date dom ereg filter gd hash iconv json libxml mbstring mysqli mysqlnd pcre pdo phar phpredis session simplexml sockets spl standard xml
[root@iZ254lfyd6nZ ext]# cd phpredis
[root@iZ254lfyd6nZ phpredis]# ls
[root@iZ254lfyd6nZ phpredis]# wget https://github.com/nicolasff/phpredis/downloads
---- ::-- https://github.com/nicolasff/phpredis/downloads
Resolving github.com... 192.30.252.130
Connecting to github.com|192.30.252.130|:... connected.
HTTP request sent, awaiting response... Moved Permanently
Location: https://github.com/phpredis/phpredis/downloads [following]
---- ::-- https://github.com/phpredis/phpredis/downloads
Connecting to github.com|192.30.252.130|:... connected.
HTTP request sent, awaiting response... OK
Length: unspecified [text/html]
Saving to: “downloads” [ <=> ] , .2K/s in .2s -- :: (99.2 KB/s) - “downloads” saved [] [root@iZ254lfyd6nZ phpredis]# ls
downloads
[root@iZ254lfyd6nZ phpredis]# wget https://github.com/nicolasff/phpredis/archive/master.tar.gz
---- ::-- https://github.com/nicolasff/phpredis/archive/master.tar.gz
Resolving github.com... 192.30.252.130
Connecting to github.com|192.30.252.130|:... connected.
HTTP request sent, awaiting response... Moved Permanently
Location: https://github.com/phpredis/phpredis/archive/master.tar.gz [following]
---- ::-- https://github.com/phpredis/phpredis/archive/master.tar.gz
Connecting to github.com|192.30.252.130|:... connected.
HTTP request sent, awaiting response... Found
Location: https://codeload.github.com/phpredis/phpredis/tar.gz/master [following]
---- ::-- https://codeload.github.com/phpredis/phpredis/tar.gz/master
Resolving codeload.github.com... 192.30.252.145
Connecting to codeload.github.com|192.30.252.145|:... connected.
HTTP request sent, awaiting response... OK
Length: unspecified [application/x-gzip]
Saving to: “master.tar.gz” [ <=> ] , .6K/s in .3s -- :: (59.6 KB/s) - “master.tar.gz” saved [] [root@iZ254lfyd6nZ phpredis]# tar xvf master.tar.gz
phpredis-master/
phpredis-master/COPYING
phpredis-master/CREDITS
phpredis-master/README.markdown
phpredis-master/arrays.markdown
phpredis-master/common.h
phpredis-master/config.m4
phpredis-master/config.w32
phpredis-master/debian.control
phpredis-master/debian/
phpredis-master/debian/changelog
phpredis-master/debian/compat
phpredis-master/debian/control
phpredis-master/debian/copyright
phpredis-master/debian/postinst
phpredis-master/debian/postrm
phpredis-master/debian/rules
phpredis-master/library.c
phpredis-master/library.h
phpredis-master/mkdeb-apache2.sh
phpredis-master/mkdeb.sh
phpredis-master/package.xml
phpredis-master/php_redis.h
phpredis-master/redis.c
phpredis-master/redis_array.c
phpredis-master/redis_array.h
phpredis-master/redis_array_impl.c
phpredis-master/redis_array_impl.h
phpredis-master/redis_session.c
phpredis-master/redis_session.h
phpredis-master/rpm/
phpredis-master/rpm/php-redis.spec
phpredis-master/rpm/redis.ini
phpredis-master/serialize.list
phpredis-master/tests/
phpredis-master/tests/TestRedis.php
phpredis-master/tests/array-tests.php
phpredis-master/tests/memory.php
phpredis-master/tests/mkring.sh
phpredis-master/tests/test.php
[root@iZ254lfyd6nZ phpredis]# ls
master.tar.gz phpredis-master
[root@iZ254lfyd6nZ phpredis]# cd phpredis-master
[root@iZ254lfyd6nZ phpredis-master]# ls
arrays.markdown config.w32 debian library.h package.xml redis_array.c redis_array_impl.h redis_session.h tests
common.h COPYING debian.control mkdeb-apache2.sh php_redis.h redis_array.h redis.c rpm
config.m4 CREDITS library.c mkdeb.sh README.markdown redis_array_impl.c redis_session.c serialize.list
[root@iZ254lfyd6nZ phpredis-master]# phpize
-bash: phpize: command not found
[root@iZ254lfyd6nZ phpredis-master]# /opt/lampp/bin/phpize
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
[root@iZ254lfyd6nZ phpredis-master]# ./configure --with-php-config=/opt/lampp/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... no
checking for gcc... no
configure: error: in `/opt/lampp/include/php/ext/phpredis/phpredis-master':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@iZ254lfyd6nZ phpredis-master]# yum -y install gcc
Loaded plugins: security
base | 3.7 kB :
epel | 4.4 kB :
epel/primary_db | 6.6 MB :
extras | 3.4 kB :
extras/primary_db | kB :
updates | 3.4 kB :
updates/primary_db | 3.9 MB :
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc.x86_64 :4.4.-.el6 will be installed
--> Finished Dependency Resolution Dependencies Resolved =======================================================================================================================================================================
Package Arch Version Repository Size
=======================================================================================================================================================================
Installing:
gcc x86_64 4.4.-.el6 base M Transaction Summary
=======================================================================================================================================================================
Install Package(s) Total download size: M
Installed size: M
Downloading Packages:
gcc-4.4.-.el6.x86_64.rpm | MB :
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : gcc-4.4.-.el6.x86_64 /
Verifying : gcc-4.4.-.el6.x86_64 / Installed:
gcc.x86_64 :4.4.-.el6 Complete!
[root@iZ254lfyd6nZ phpredis-master]# ./configure --with-php-config=/opt/lampp/bin/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/lampp
checking for PHP includes... -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib
checking for PHP extension directory... /opt/lampp/lib/php/extensions/no-debug-non-zts-
checking for PHP installed headers prefix... /opt/lampp/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13. or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable redis support... yes, shared
checking whether to enable sessions... yes
checking whether to enable igbinary serializer support... no
checking for redis igbinary support... disabled
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments...
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
[root@iZ254lfyd6nZ phpredis-master]# make && make install
/bin/sh /opt/lampp/include/php/ext/phpredis/phpredis-master/libtool --mode=compile cc -I. -I/opt/lampp/include/php/ext/phpredis/phpredis-master -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/lampp/include/php/ext/phpredis/phpredis-master/redis.c -o redis.lo
mkdir .libs
cc -I. -I/opt/lampp/include/php/ext/phpredis/phpredis-master -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/lampp/include/php/ext/phpredis/phpredis-master/redis.c -fPIC -DPIC -o .libs/redis.o
/bin/sh /opt/lampp/include/php/ext/phpredis/phpredis-master/libtool --mode=compile cc -I. -I/opt/lampp/include/php/ext/phpredis/phpredis-master -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/lampp/include/php/ext/phpredis/phpredis-master/library.c -o library.lo
cc -I. -I/opt/lampp/include/php/ext/phpredis/phpredis-master -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/lampp/include/php/ext/phpredis/phpredis-master/library.c -fPIC -DPIC -o .libs/library.o
/bin/sh /opt/lampp/include/php/ext/phpredis/phpredis-master/libtool --mode=compile cc -I. -I/opt/lampp/include/php/ext/phpredis/phpredis-master -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/lampp/include/php/ext/phpredis/phpredis-master/redis_session.c -o redis_session.lo
cc -I. -I/opt/lampp/include/php/ext/phpredis/phpredis-master -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/lampp/include/php/ext/phpredis/phpredis-master/redis_session.c -fPIC -DPIC -o .libs/redis_session.o
/bin/sh /opt/lampp/include/php/ext/phpredis/phpredis-master/libtool --mode=compile cc -I. -I/opt/lampp/include/php/ext/phpredis/phpredis-master -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/lampp/include/php/ext/phpredis/phpredis-master/redis_array.c -o redis_array.lo
cc -I. -I/opt/lampp/include/php/ext/phpredis/phpredis-master -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/lampp/include/php/ext/phpredis/phpredis-master/redis_array.c -fPIC -DPIC -o .libs/redis_array.o
/bin/sh /opt/lampp/include/php/ext/phpredis/phpredis-master/libtool --mode=compile cc -I. -I/opt/lampp/include/php/ext/phpredis/phpredis-master -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/lampp/include/php/ext/phpredis/phpredis-master/redis_array_impl.c -o redis_array_impl.lo
cc -I. -I/opt/lampp/include/php/ext/phpredis/phpredis-master -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /opt/lampp/include/php/ext/phpredis/phpredis-master/redis_array_impl.c -fPIC -DPIC -o .libs/redis_array_impl.o
/bin/sh /opt/lampp/include/php/ext/phpredis/phpredis-master/libtool --mode=link cc -DPHP_ATOM_INC -I/opt/lampp/include/php/ext/phpredis/phpredis-master/include -I/opt/lampp/include/php/ext/phpredis/phpredis-master/main -I/opt/lampp/include/php/ext/phpredis/phpredis-master -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o redis.la -export-dynamic -avoid-version -prefer-pic -module -rpath /opt/lampp/include/php/ext/phpredis/phpredis-master/modules redis.lo library.lo redis_session.lo redis_array.lo redis_array_impl.lo
cc -shared .libs/redis.o .libs/library.o .libs/redis_session.o .libs/redis_array.o .libs/redis_array_impl.o -Wl,-soname -Wl,redis.so -o .libs/redis.so
creating redis.la
(cd .libs && rm -f redis.la && ln -s ../redis.la redis.la)
/bin/sh /opt/lampp/include/php/ext/phpredis/phpredis-master/libtool --mode=install cp ./redis.la /opt/lampp/include/php/ext/phpredis/phpredis-master/modules
cp ./.libs/redis.so /opt/lampp/include/php/ext/phpredis/phpredis-master/modules/redis.so
cp ./.libs/redis.lai /opt/lampp/include/php/ext/phpredis/phpredis-master/modules/redis.la
PATH="$PATH:/sbin" ldconfig -n /opt/lampp/include/php/ext/phpredis/phpredis-master/modules
----------------------------------------------------------------------
Libraries have been installed in:
/opt/lampp/include/php/ext/phpredis/phpredis-master/modules If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for
more information, such as the ld() and ld.so() manual pages.
---------------------------------------------------------------------- Build complete.
Don't forget to run 'make test'. Installing shared extensions: /opt/lampp/lib/php/extensions/no-debug-non-zts-/
[root@iZ254lfyd6nZ phpredis-master]# /opt/lampp/lampp stopapache
XAMPP: Stopping Apache...ok.
[root@iZ254lfyd6nZ phpredis-master]# /opt/lampp/lampp startapache
XAMPP: Starting Apache...ok.
[root@iZ254lfyd6nZ phpredis-master]# make test
/bin/sh /opt/lampp/include/php/ext/phpredis/phpredis-master/libtool --mode=install cp ./redis.la /opt/lampp/include/php/ext/phpredis/phpredis-master/modules
cp ./.libs/redis.so /opt/lampp/include/php/ext/phpredis/phpredis-master/modules/redis.so
cp ./.libs/redis.lai /opt/lampp/include/php/ext/phpredis/phpredis-master/modules/redis.la
PATH="$PATH:/sbin" ldconfig -n /opt/lampp/include/php/ext/phpredis/phpredis-master/modules
----------------------------------------------------------------------
Libraries have been installed in:
/opt/lampp/include/php/ext/phpredis/phpredis-master/modules If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for
more information, such as the ld() and ld.so() manual pages.
---------------------------------------------------------------------- Build complete.
Don't forget to run 'make test'. =====================================================================
PHP : /opt/lampp/bin/php
PHP_SAPI : cli
PHP_VERSION : 5.6.
ZEND_VERSION: 2.6.
PHP_OS : Linux - Linux iZ254lfyd6nZ 2.6.-431.23..el6.x86_64 # SMP Thu Jul :: UTC x86_64
INI actual : /opt/lampp/include/php/ext/phpredis/phpredis-master/tmp-php.ini
More .INIs :
CWD : /opt/lampp/include/php/ext/phpredis/phpredis-master
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START -- ::
=====================================================================
No tests were run.
[root@iZ254lfyd6nZ phpredis-master]# /opt/lampp/lampp stopapache
XAMPP: Stopping Apache...ok.
[root@iZ254lfyd6nZ phpredis-master]# /opt/lampp/lampp startapache
XAMPP: Starting Apache...ok.
[root@iZ254lfyd6nZ phpredis-master]#

使用过程中的遇到的问题:

A PHP Error was encountered

Severity: Core Warning

Message: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll: cannot open shared object file: No such file or directory

Filename: Unknown

Line Number: 0

Backtrace:

我个人用的是CI,XAMMP 发现出现了上面的问题,解决方法:关闭掉php.ini中的openssl.dll扩展

***phpredis扩展安装总结的更多相关文章

  1. linux下Redis与phpredis扩展安装

    ++++++++++++++++++++++++++++++++++++++++++++++linux下Redis与phpredis扩展安装++++++++++++++++++++++++++++++ ...

  2. centos redis 安装 php-redis扩展安装 及使用

    前提:centos7.php7 安装redis-server 1:yum install redis 编译安装php-redis 扩展 1:下载编译安装 wget https://codeload.g ...

  3. PHP-Redis扩展安装(四)

    PHP-Redis扩展安装(四) 安装环境链接:http://pan.baidu.com/s/1i4IbJox Memecached 服务器安装(一) memcached php扩展(二) redis ...

  4. php-redis扩展安装

    1 phpredis 在php中访问redis需要安装 https://github.com/phpredis/phpredis 基本上安装上面的readme既可以完成安装,需要注意的是在编译安装的时 ...

  5. Redis实战——phpredis扩展安装

    准备安装软件(download) 1> [redis]       http://redis.googlecode.com/files/redis-2.4.3.tar.gz 2> [php ...

  6. CentOS 7 PHP-redis扩展安装,浏览器不显示数据及redis无法储存数据常见问题解决办法

    首先使用php -m 可以查看到自己安装了那些扩展. 1.使用wget下载redis压缩包 wget https://github.com/phpredis/phpredis/archive/deve ...

  7. redis安装和配置教程phpredis扩展安装测试

    作者:zhanhailiang 日期:2014-10-16 推荐阅读: Redis持久化策略 关于Redis很多其它资料阅读 1. 下载redis-2.8.17.tar.gz:http://downl ...

  8. Linux下安装Redis php-redis扩展 redis重启shell脚本 超详细!

    前言 前面刚写过nosql其中三款热门产品的对比,这次主要写关于Redis的一些事情,Redis的介绍.安装以及扩展(php-redis,因为我是phper)安装等等.同时是写给我的朋友(cccjjj ...

  9. mac 安装phpredis扩展

    curl -O https://nodeload.github.com/nicolasff/phpredis/zip/master tar -zxf master cd phpredis-master ...

随机推荐

  1. windows7下系统保护中出现错误“文件名、目录名或卷标语法不正确。(0x8007007B)“ 以及保护设置列表中出现“Windows7_os(c:)(找不到)”选项时的解决方法

    windows7下系统保护功能很是鸡肋,有事会出现一下两个问题: 1.出现错误“文件名.目录名或卷标语法不正确.(0x8007007B) 2.保护设置列表中出现“Windows7_os(c:)(找不到 ...

  2. OC第一天-Xcode、工程组成及运行状态

    Xcode 中iOS工程模版: 1.Application类型: Master-detail Application. 可以构建树形结构导航模式应用,生成的代码中包含了导航控制器和表示图控制器.(表示 ...

  3. SwithAndActivity 选择开关和活动指示

    ////  ViewController.m//  SwithAndActivity////  Created by qianfeng on 15/9/21.//  Copyright (c) 201 ...

  4. Windows Forms (一)

    导读 1.什么是 Windows Forms 2.需要学Windows Forms 么? 3.如何手写一个简单的Windows Forms 程序 4.对上面程序的说明 5.Form 类与Control ...

  5. 为什么要使用jQuery?

    首先必须得了解为什么要学习JQuery,JQuery有哪些优点,当然是相对于传统的Javascript和DOM来说了,现在将JQuery的优势总结如下: 1,轻量级. JQuery非常小,压缩包只有1 ...

  6. (转)SQL按照日、周、月、年统计数据

    写sql语句分别按日,星期,月,季度,年统计销售额 --按日 select sum(consume),day([date]) from consume_record where year([date] ...

  7. requirejs实验002. r.js合并文件. 初体验.

    requirejs的官网上有介绍如何使用r.js合并,压缩文件的.http://requirejs.org/docs/optimization.html https://github.com/jrbu ...

  8. OOP—还原被遮掩的继承名称

    1.public继承——using 声明式 class Base { private: int x; public: ; virtual void mf1(int) ; virtual void mf ...

  9. ImageLoader(多线程网络图片加载)+本地缓存 for windowsphone 7

    搞了好长一阵子wp,做点好事. C/S手机app中应用最多的是  获取网络图片,缓存到本地,展示图片 本次主要对其中的delay:LowProfileImageLoader进行修改,在获取图片的时候, ...

  10. JavaScript null and undefined

    http://stackoverflow.com/questions/6429225/javascript-null-or-undefined var x; x == null // true x = ...