***phpredis扩展安装总结

phpredis扩展安装总结:PHP扩展安装在[[email protected] lampp]# cd include  目录下创建一个目录phpredis下载扩展:wget https://github.com/nicolasff/phpredis/archive/master.tar.gz解压:[[email protected] phpredis]# tar xvf master.tar.gz运行:[[email protected] phpredis-master]# /opt/lampp/bin/phpize安装GCC,避免下面的报错:

[[email protected] phpredis-master]# /opt/lampp/bin/phpizeConfiguring for:PHP Api Version:         20131106Zend Module Api No:      20131226Zend Extension Api No:   220131226[[email protected] phpredis-master]# ./configure --with-php-config=/opt/lampp/bin/php-configchecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for a sed that does not truncate output... /bin/sedchecking for cc... nochecking for gcc... noconfigure: error: in `/opt/lampp/include/php/ext/phpredis/phpredis-master‘:configure: error: no acceptable C compiler found in $PATHSee `config.log‘ for more details.[[email protected] phpredis-master]# yum -y install gcc

运行:[[email protected] phpredis-master]# ./configure --with-php-config=/opt/lampp/bin/php-config

编译+安装:[[email protected] phpredis-master]# make && make install

重启WEB服务器:[[email protected] phpredis-master]# /opt/lampp/lampp stopapacheXAMPP: Stopping Apache...ok.[[email protected] phpredis-master]# /opt/lampp/lampp startapache

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

[[email protected] ~]# ls
hello.txt  test-conf  xm-cron
[[email protected] ~]# cd /
[[email protected] /]# ls
bin  boot  dev  etc  home  lib  lib64  lost+found  media  mnt  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var
[[email protected] /]# redis-server --version
-bash: redis-server: command not found
[[email protected] /]# src/redis-server --version
-bash: src/redis-server: No such file or directory
[[email protected] /]# cd root
[[email protected] ~]# ls
hello.txt  test-conf  xm-cron
[[email protected] ~]# cd root
-bash: cd: root: No such file or directory
[[email protected] ~]# redis-cli
-bash: redis-cli: command not found
[[email protected] ~]# redis-server
-bash: redis-server: command not found
[[email protected] ~]# cd opt
-bash: cd: opt: No such file or directory
[[email protected] ~]# ls
hello.txt  test-conf  xm-cron
[[email protected] ~]# ls
hello.txt  test-conf  xm-cron
[[email protected] ~]# cd /
[[email protected] /]# ls
bin  boot  dev  etc  home  lib  lib64  lost+found  media  mnt  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var
[[email protected] /]# cd opt
[[email protected] opt]# ls
lampp  rh  xampp-linux-x64-5.6.3-0-installer.run
[[email protected] opt]# cd /
[[email protected] /]# ls
bin  boot  dev  etc  home  lib  lib64  lost+found  media  mnt  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var
[[email protected] /]# cd usr
[[email protected] usr]# ls
bin  etc  games  include  lib  lib64  libexec  local  sbin  share  src  tmp
[[email protected] usr]# cd local
[[email protected] local]# ls
aegis  bin  etc  games  include  lib  lib64  libexec  redis  redis-2.8.12.tar.gz  sbin  share  src
[[email protected] local]# cd redis
[[email protected] redis]# ls
00-RELEASENOTES  CONTRIBUTING  deps      INSTALL   MANIFESTO  redis.conf  runtest-sentinel  src    utils
BUGS             COPYING       dump.rdb  Makefile  README     runtest     sentinel.conf     tests
[[email protected] redis]# cd src
[[email protected] 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
[[email protected] src]# redis-server
-bash: redis-server: command not found
[[email protected] src]# cd ..
[[email protected] redis]# ls
00-RELEASENOTES  CONTRIBUTING  deps      INSTALL   MANIFESTO  redis.conf  runtest-sentinel  src    utils
BUGS             COPYING       dump.rdb  Makefile  README     runtest     sentinel.conf     tests
[[email protected] 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
[[email protected] 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
[[email protected] redis]# cd /
[[email protected] /]# ls
bin  boot  dev  etc  home  lib  lib64  lost+found  media  mnt  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var
[[email protected] /]# cd usr
[[email protected] usr]# ls
bin  etc  games  include  lib  lib64  libexec  local  sbin  share  src  tmp
[[email protected] usr]# cd local
[[email protected] local]# ls
aegis  bin  etc  games  include  lib  lib64  libexec  redis  redis-2.8.12.tar.gz  sbin  share  src
[[email protected] local]# cd bin
[[email protected] bin]# ls
[[email protected] bin]# cd ..
[[email protected] local]# ls
aegis  bin  etc  games  include  lib  lib64  libexec  redis  redis-2.8.12.tar.gz  sbin  share  src
[[email protected] local]# cd /
[[email protected] /]# ls
bin  boot  dev  etc  home  lib  lib64  lost+found  media  mnt  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var
[[email protected] /]# cd opt
[[email protected] opt]# ls
lampp  rh  xampp-linux-x64-5.6.3-0-installer.run
[[email protected] opt]# cd lampp
[[email protected] 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
[[email protected] lampp]# cd php
[[email protected] php]# ls
man
[[email protected] php]# cd bin
-bash: cd: bin: No such file or directory
[[email protected] php]# ls
man
[[email protected] php]# cd ..
[[email protected] 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
[[email protected] lampp]# cd bin
[[email protected] 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
[[email protected] bin]# cd php-5.6.3
-bash: cd: php-5.6.3: Not a directory
[[email protected] 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
[[email protected] bin]# cd php
-bash: cd: php: Not a directory
[[email protected] 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
[[email protected] bin]# cd ..
[[email protected] 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
[[email protected] 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
[[email protected] lampp]# cd php
[[email protected] php]# ls
man
[[email protected] php]# cd bin
-bash: cd: bin: No such file or directory
[[email protected] php]# ls
man
[[email protected] php]# cd ..
[[email protected] 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
[[email protected] lampp]# cd cgi-bin
[[email protected] cgi-bin]# ls
printenv  printenv.vbs  printenv.wsf  test-cgi
[[email protected] cgi-bin]# cd ..
[[email protected] 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
[[email protected] 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
[[email protected] lampp]# cd include
[[email protected] 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
[[email protected] include]# cd php
[[email protected] php]# ls
ext  include  main  sapi  TSRM  Zend
[[email protected] php]# cd ext
[[email protected] ext]# ls
date  dom  ereg  filter  gd  hash  iconv  json  libxml  mbstring  mysqli  mysqlnd  pcre  pdo  phar  phpredis  session  simplexml  sockets  spl  standard  xml
[[email protected] ext]# cd phpredis
[[email protected] phpredis]# ls
[[email protected] 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]

[[email protected] phpredis]# ls
downloads
[[email protected] 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]

[[email protected] 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
[[email protected] phpredis]# ls
master.tar.gz  phpredis-master
[[email protected] phpredis]# cd phpredis-master
[[email protected] 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
[[email protected] phpredis-master]# phpize
-bash: phpize: command not found
[[email protected] phpredis-master]# /opt/lampp/bin/phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
[[email protected] 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.
[[email protected] 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!
[[email protected] 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
[[email protected] 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/
[[email protected] phpredis-master]# /opt/lampp/lampp stopapache
XAMPP: Stopping Apache...ok.
[[email protected] phpredis-master]# /opt/lampp/lampp startapache
XAMPP: Starting Apache...ok.
[[email protected] 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.
[[email protected] phpredis-master]# /opt/lampp/lampp stopapache
XAMPP: Stopping Apache...ok.
[[email protected] phpredis-master]# /opt/lampp/lampp startapache
XAMPP: Starting Apache...ok.
[[email protected] phpredis-master]# 
时间: 2024-10-14 02:41:43

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

redis安装+redis集群配置+phpredis扩展安装

安装前的准备: redis-3.0tar.gz    官网下载地址    http://redis.io/download/以下软件或直接yum安装也可(安装步骤略)tcl8.6.1-src.tar.gz               官网下载地址   http://sourceforge.jp/projects/sfnet_tcl/releases/rubygems-2.4.2.zip            官网下载地址   http://rubygems.org/pages/download/

linux下Redis与phpredis扩展安装

++++++++++++++++++++++++++++++++++++++++++++++linux下Redis与phpredis扩展安装++++++++++++++++++++++++++++++++++++++++++++++操作系统   : [CentOS6.0]redis  : [redis-2.4.3]phpredis   : [phpredis-2.1.0]++++++++++++++++++++++++++++++++++++++++++++++准备安装软件(download) 

Redis实战——phpredis扩展安装

准备安装软件(download) 1> [redis]       http://redis.googlecode.com/files/redis-2.4.3.tar.gz 2> [phpredis]       https://github.com/owlient/phpredis/tarball/master redis安装跳过 1>[安装phpredis扩展] tar -zxvf owlient-phpredis-2.1.1-1-g90ecd17.tar.gz cd owlient

redis安装配置教程及phpredis扩展安装测试

作者:zhanhailiang 日期:2014-10-16 推荐阅读: Redis持久化策略 关于Redis更多资料阅读 1. 下载redis-2.8.17.tar.gz:http://download.redis.io/releases/redis-2.8.17.tar.gz: 2. 编译安装配置如下: [redis-2.8.17]# make [redis-2.8.17]# make PREFIX=/usr/local/redis-2.8.17 install [redis-2.8.17]#

phpredis扩展安装

redis高速缓存,有链表排序功能,效率相当高,对创建内存级的模块业务关系很有用 下载phpredis git clone git://github.com/nicolasff/phpredis.git wget http://download.csdn.net/detail/wkupaochuan/5100016 yum -y install php-devel 安装php-devel软件包,可以执行phpize命令 phpize生成编译文件,即可以调用./configure命令 tar zx

redis以及php的redis扩展安装部署

一.redis 安装部署: tar xf redis-3.2.8.tar.gz cd redis-3.2.8 make MANIFESTO=jemalloc make PREFIX=/usr/local/redis-3.2.8 install ln -s /usr/local/redis-3.2.8/ /usr/local/redis echo "export PATH=/usr/local/redis/bin:$PATH" >> /etc/profile find / -

linux下安装redis和phpredis扩展

一.安装redis 1.下载redis-3.2.3.tar.gz wget http://download.redis.io/releases/redis-3.2.3.tar.gz 2.解压redis-3.2.3.tar.gz tar -zxvf redis-3.2.3.tar.gz 3.解压完成后,安装 cd redis-3.2.3 make && make install 4.切换到utils,执行redis初始化脚本install_server.sh cd utils ./insta

CentOS7安装redis数据库及php-redis扩展

redis 首先把redis安装到服务器中 1.wget http://download.redis.io/redis-stable.tar.gz 下载redis源码 2. tar xvzf redis-stable.tar.gz 解压 3.cd redis-stable 4.make   make的时候可能出现问题,我的就出现了异常 异常一: make[2]: cc: Command not found 异常原因:没有安装gcc 解决方案:yum install gcc-c++ 异常二: zm

Centos7下安装php-redis扩展及简单使用

前言: 在本篇博客中,我将给大家介绍如何在Centos7上安装PHP-Redis扩展以及一些简单的实用,关于如何在Centos上安装redis的,可以参考我的上一篇博客 Redis在Centos7上的安装部署 想要在php中操作redis,那就必须安装php-redis扩展,就比如MySQL一样,php想要操作mysql数据库的话,就必须安装mysql扩展,只是在php安装中就默认安装了mysql扩展了. 步骤一:下载解压 下载:https://github.com/nicolasff/phpr