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.3-0-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.12.tar.gz sbin share src [root@iZ254lfyd6nZ local]# cd redis [root@iZ254lfyd6nZ redis]# ls 00-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 00-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 [26373] 26 Jun 15:43: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 [26373] 26 Jun 15:43:20.448 # Creating Server TCP listening socket *:6379: bind: Address already in use [root@iZ254lfyd6nZ redis]# src/redis-cli 127.0.0.1:6379> dbsize (integer) 0 127.0.0.1:6379> ping PONG 127.0.0.1:6379> set name "tanglei" OK 127.0.0.1:6379> get name "tanglei" 127.0.0.1:6379> get name "tanglei" 127.0.0.1:6379> 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.12.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.12.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.3-0-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-1-config dbmmanage gettextize listjpeg mysqlcheck perl ras2tiff tiffsplit apreq2-config defncopy gettext.sh listmp3 mysql_client_test perl5.16.3 raw2adpcm toe apu-1-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.3 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.3 sabcmd unzzipdir-mem bzegrep fix_rights httxt2dbm mp2bug mysqlhotcopy php-config sablot-config wcmgr bzfgrep flex iconv msgattrib mysqlimport php-config-5.6.3 shasum webalizer bzgrep flex++ icu-config msgcat mysql_install_db phpize splain webazolver bzip2 freebcp icuinfo msgcmp mysql_plugin phpize-5.6.3 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.3 -bash: cd: php-5.6.3: 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-1-config dbmmanage gettextize listjpeg mysqlcheck perl ras2tiff tiffsplit apreq2-config defncopy gettext.sh listmp3 mysql_client_test perl5.16.3 raw2adpcm toe apu-1-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.3 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.3 sabcmd unzzipdir-mem bzegrep fix_rights httxt2dbm mp2bug mysqlhotcopy php-config sablot-config wcmgr bzfgrep flex iconv msgattrib mysqlimport php-config-5.6.3 shasum webalizer bzgrep flex++ icu-config msgcat mysql_install_db phpize splain webazolver bzip2 freebcp icuinfo msgcmp mysql_plugin phpize-5.6.3 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-1-config dbmmanage gettextize listjpeg mysqlcheck perl ras2tiff tiffsplit apreq2-config defncopy gettext.sh listmp3 mysql_client_test perl5.16.3 raw2adpcm toe apu-1-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.3 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.3 sabcmd unzzipdir-mem bzegrep fix_rights httxt2dbm mp2bug mysqlhotcopy php-config sablot-config wcmgr bzfgrep flex iconv msgattrib mysqlimport php-config-5.6.3 shasum webalizer bzgrep flex++ icu-config msgcat mysql_install_db phpize splain webazolver bzip2 freebcp icuinfo msgcmp mysql_plugin phpize-5.6.3 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-1 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 --2015-06-26 17:27:22-- https://github.com/nicolasff/phpredis/downloads Resolving github.com... 192.30.252.130 Connecting to github.com|192.30.252.130|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://github.com/phpredis/phpredis/downloads [following] --2015-06-26 17:27:25-- https://github.com/phpredis/phpredis/downloads Connecting to github.com|192.30.252.130|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: “downloads” [ <=> ] 21,925 99.2K/s in 0.2s 2015-06-26 17:27:30 (99.2 KB/s) - “downloads” saved [21925] [root@iZ254lfyd6nZ phpredis]# ls downloads [root@iZ254lfyd6nZ phpredis]# wget https://github.com/nicolasff/phpredis/archive/master.tar.gz --2015-06-26 17:30:29-- https://github.com/nicolasff/phpredis/archive/master.tar.gz Resolving github.com... 192.30.252.130 Connecting to github.com|192.30.252.130|:443... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: https://github.com/phpredis/phpredis/archive/master.tar.gz [following] --2015-06-26 17:30:30-- https://github.com/phpredis/phpredis/archive/master.tar.gz Connecting to github.com|192.30.252.130|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/phpredis/phpredis/tar.gz/master [following] --2015-06-26 17:30:31-- 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|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: “master.tar.gz” [ <=> ] 138,618 59.6K/s in 2.3s 2015-06-26 17:30:36 (59.6 KB/s) - “master.tar.gz” saved [138618] [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: 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 Loaded plugins: security base | 3.7 kB 00:00 epel | 4.4 kB 00:00 epel/primary_db | 6.6 MB 00:01 extras | 3.4 kB 00:00 extras/primary_db | 31 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 3.9 MB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package gcc.x86_64 0:4.4.7-11.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================================================================= Package Arch Version Repository Size ======================================================================================================================================================================= Installing: gcc x86_64 4.4.7-11.el6 base 10 M Transaction Summary ======================================================================================================================================================================= Install 1 Package(s) Total download size: 10 M Installed size: 19 M Downloading Packages: gcc-4.4.7-11.el6.x86_64.rpm | 10 MB 00:01 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : gcc-4.4.7-11.el6.x86_64 1/1 Verifying : gcc-4.4.7-11.el6.x86_64 1/1 Installed: gcc.x86_64 0:4.4.7-11.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-20131226 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.4 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... 1966080 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(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. Installing shared extensions: /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/ [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(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. ===================================================================== PHP : /opt/lampp/bin/php PHP_SAPI : cli PHP_VERSION : 5.6.3 ZEND_VERSION: 2.6.0 PHP_OS : Linux - Linux iZ254lfyd6nZ 2.6.32-431.23.3.el6.x86_64 #1 SMP Thu Jul 31 17:20:51 UTC 2014 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 2015-06-26 18:15:01 ===================================================================== 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扩展
如何联系我:【万里虎】www.bravetiger.cn 【QQ】3396726884 (咨询问题100元起,帮助解决问题500元起) 【博客】http://www.cnblogs.com/kenshinobiy/