CentOS下如何安装phpredis扩展

来源:互联网 发布:雷神2 知乎 编辑:程序博客网 时间:2024/06/14 01:19

1.到redis的官网找到redis客户端下载,选择php

示例

安装Redis的PHP扩展
2.1 安装phpize

yum install php-devel  

2.2 下载扩展源码包,直接用wget
wget下载github上的文件

wget https://github.com/nicolasff/phpredis/archive/master.zip  

2.3 如果没装unzip,需要先安装unzip

yum install unzip

2.4 解压master.zip

unzip master.zip

2.5 解压目录为phpredis-master,进入该文件夹,开始编译php扩展

phpize

2.6 配置环境

./configure  

2.7 编译

make && make install 

编译完成后显示:

Build complete.  Don't forget to run 'make test'.  Installing shared extensions:     /usr/lib64/php/modules/ 

进入/usr/lib64/php/modules/文件夹,发现redis.so的扩展
2.8 修改/etc/php.ini,添加下面的扩展

extension=redis.so 

2.9 重启服务器

service httpd restart

最后查看phpinfo,显示如下,代表安装成功:

示例

安装完成以后,创建index.php测试一下

<?php    //实例化    $redis = new Redis();    //连接服务器    $a=$redis->connect("localhost",6379);    //var_dump($a);    //授权    $redis->auth("107lab");    $redis->set("name1","107lab");    $data=$redis->get("name1");    var_dump($data);

运行结果为:

string(6) "107lab"

以下是安装过程全记录

[root@VM_114_93_centos local]# lsredis-3.0.6  redis-3.0.6.tar.gz[root@VM_114_93_centos local]# wget https://github.com/phpredis/phpredis/archive/develop.zip--2016-10-02 11:06:16--  https://github.com/phpredis/phpredis/archive/develop.zipResolving github.com... 192.30.253.112Connecting to github.com|192.30.253.112|:443... connected.HTTP request sent, awaiting response... 302 FoundLocation: https://codeload.github.com/phpredis/phpredis/zip/develop [following]--2016-10-02 11:06:18--  https://codeload.github.com/phpredis/phpredis/zip/developResolving codeload.github.com... 192.30.253.121Connecting to codeload.github.com|192.30.253.121|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 220222 (215K) [application/zip]Saving to: `develop.zip'100%[==============================================>] 220,222      104K/s   in 2.1s    2016-10-02 11:06:23 (104 KB/s) - `develop.zip' saved [220222/220222][root@VM_114_93_centos local]# lsdevelop.zip  redis-3.0.6  redis-3.0.6.tar.gz[root@VM_114_93_centos local]# yum install unzipLoaded plugins: fastestmirror, securitySetting up Install ProcessDetermining fastest mirrorsepel                                                             | 4.3 kB     00:00     extras                                                           | 3.3 kB     00:00     os                                                               | 3.7 kB     00:00     updates                                                          | 3.4 kB     00:00     Package unzip-6.0-4.el6.i686 already installed and latest versionNothing to do[root@VM_114_93_centos local]# unzip develop.zip Archive:  develop.zipb5fd2ccc95457fe1c3decfdbdd72751a87ed12b4   creating: phpredis-develop/  inflating: phpredis-develop/.gitignore    inflating: phpredis-develop/.travis.yml    inflating: phpredis-develop/COPYING    inflating: phpredis-develop/CREDITS    inflating: phpredis-develop/README.markdown    inflating: phpredis-develop/arrays.markdown    inflating: phpredis-develop/cluster.markdown    inflating: phpredis-develop/cluster_library.c    inflating: phpredis-develop/cluster_library.h    inflating: phpredis-develop/common.h    inflating: phpredis-develop/config.m4    inflating: phpredis-develop/config.w32    inflating: phpredis-develop/crc16.h    inflating: phpredis-develop/debian.control     creating: phpredis-develop/debian/  inflating: phpredis-develop/debian/changelog   extracting: phpredis-develop/debian/compat    inflating: phpredis-develop/debian/control    inflating: phpredis-develop/debian/copyright    inflating: phpredis-develop/debian/postinst    inflating: phpredis-develop/debian/postrm    inflating: phpredis-develop/debian/rules    inflating: phpredis-develop/library.c    inflating: phpredis-develop/library.h    inflating: phpredis-develop/mkdeb-apache2.sh    inflating: phpredis-develop/mkdeb.sh    inflating: phpredis-develop/package.xml    inflating: phpredis-develop/php_redis.h    inflating: phpredis-develop/redis.c    inflating: phpredis-develop/redis_array.c    inflating: phpredis-develop/redis_array.h    inflating: phpredis-develop/redis_array_impl.c    inflating: phpredis-develop/redis_array_impl.h    inflating: phpredis-develop/redis_cluster.c    inflating: phpredis-develop/redis_cluster.h    inflating: phpredis-develop/redis_commands.c    inflating: phpredis-develop/redis_commands.h    inflating: phpredis-develop/redis_session.c    inflating: phpredis-develop/redis_session.h     creating: phpredis-develop/rpm/  inflating: phpredis-develop/rpm/php-redis.spec   extracting: phpredis-develop/rpm/redis.ini    inflating: phpredis-develop/serialize.list     creating: phpredis-develop/tests/  inflating: phpredis-develop/tests/RedisArrayTest.php    inflating: phpredis-develop/tests/RedisClusterTest.php    inflating: phpredis-develop/tests/RedisTest.php    inflating: phpredis-develop/tests/TestRedis.php    inflating: phpredis-develop/tests/TestSuite.php    inflating: phpredis-develop/tests/make-cluster.sh    inflating: phpredis-develop/tests/mkring.sh  [root@VM_114_93_centos local]# lsdevelop.zip  phpredis-develop  redis-3.0.6  redis-3.0.6.tar.gz[root@VM_114_93_centos local]# cd phpredis-develop/[root@VM_114_93_centos phpredis-develop]# lsCOPYING            config.w32        php_redis.h         redis_commands.hCREDITS            crc16.h           redis.c             redis_session.cREADME.markdown    debian            redis_array.c       redis_session.harrays.markdown    debian.control    redis_array.h       rpmcluster.markdown   library.c         redis_array_impl.c  serialize.listcluster_library.c  library.h         redis_array_impl.h  testscluster_library.h  mkdeb-apache2.sh  redis_cluster.ccommon.h           mkdeb.sh          redis_cluster.hconfig.m4          package.xml       redis_commands.c[root@VM_114_93_centos phpredis-develop]# phpizeConfiguring for:PHP Api Version:         20090626Zend Module Api No:      20090626Zend Extension Api No:   220090626[root@VM_114_93_centos phpredis-develop]# lltotal 2124-rw-r--r-- 1 root root   3218 Oct  1 17:56 COPYING-rw-r--r-- 1 root root    204 Oct  1 17:56 CREDITS-rw-r--r-- 1 root root   5462 Oct  2 11:07 Makefile.global-rw-r--r-- 1 root root  96037 Oct  1 17:56 README.markdown-rw-r--r-- 1 root root  75570 Oct  2 11:07 acinclude.m4-rw-r--r-- 1 root root 358139 Oct  2 11:07 aclocal.m4-rw-r--r-- 1 root root   8471 Oct  1 17:56 arrays.markdowndrwxr-xr-x 2 root root   4096 Oct  2 11:07 autom4te.cachedrwxr-xr-x 2 root root   4096 Oct  2 11:07 build-rw-r--r-- 1 root root  10126 Oct  1 17:56 cluster.markdown-rw-r--r-- 1 root root  75698 Oct  1 17:56 cluster_library.c-rw-r--r-- 1 root root  16362 Oct  1 17:56 cluster_library.h-rw-r--r-- 1 root root  13417 Oct  1 17:56 common.h-rwxr-xr-x 1 root root  44892 Oct  2 11:07 config.guess-rw-r--r-- 1 root root   1754 Oct  2 11:07 config.h.in-rwxr-xr-x 1 root root   3395 Oct  1 17:56 config.m4-rwxr-xr-x 1 root root  33387 Oct  2 11:07 config.sub-rw-r--r-- 1 root root    923 Oct  1 17:56 config.w32-rwxr-xr-x 1 root root 402197 Oct  2 11:07 configure-rw-r--r-- 1 root root   4639 Oct  2 11:07 configure.in-rw-r--r-- 1 root root   4483 Oct  1 17:56 crc16.hdrwxr-xr-x 2 root root   4096 Oct  1 17:56 debian-rw-r--r-- 1 root root    309 Oct  1 17:56 debian.control-rw-r--r-- 1 root root      0 Oct  2 11:07 install-sh-rw-r--r-- 1 root root  69874 Oct  1 17:56 library.c-rw-r--r-- 1 root root   6647 Oct  1 17:56 library.h-rw-r--r-- 1 root root 243248 Oct  2 11:07 ltmain.sh-rw-r--r-- 1 root root      0 Oct  2 11:07 missing-rwxr-xr-x 1 root root    636 Oct  1 17:56 mkdeb-apache2.sh-rwxr-xr-x 1 root root    471 Oct  1 17:56 mkdeb.sh-rw-r--r-- 1 root root      0 Oct  2 11:07 mkinstalldirs-rw-r--r-- 1 root root  10686 Oct  1 17:56 package.xml-rw-r--r-- 1 root root   8715 Oct  1 17:56 php_redis.h-rw-r--r-- 1 root root 119068 Oct  1 17:56 redis.c-rw-r--r-- 1 root root  37494 Oct  1 17:56 redis_array.c-rw-r--r-- 1 root root   1681 Oct  1 17:56 redis_array.h-rw-r--r-- 1 root root  36659 Oct  1 17:56 redis_array_impl.c-rw-r--r-- 1 root root   1613 Oct  1 17:56 redis_array_impl.h-rw-r--r-- 1 root root  96357 Oct  1 17:56 redis_cluster.c-rw-r--r-- 1 root root   9833 Oct  1 17:56 redis_cluster.h-rw-r--r-- 1 root root 102831 Oct  1 17:56 redis_commands.c-rw-r--r-- 1 root root  11419 Oct  1 17:56 redis_commands.h-rw-r--r-- 1 root root  21666 Oct  1 17:56 redis_session.c-rw-r--r-- 1 root root    422 Oct  1 17:56 redis_session.hdrwxr-xr-x 2 root root   4096 Oct  1 17:56 rpm-rw-r--r-- 1 root root  68683 Oct  2 11:07 run-tests.php-rw-r--r-- 1 root root    424 Oct  1 17:56 serialize.listdrwxr-xr-x 2 root root   4096 Oct  1 17:56 tests[root@VM_114_93_centos phpredis-develop]# ./configure checking 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... ccchecking for C compiler default output file name... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for suffix of executables... checking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether cc accepts -g... yeschecking for cc option to accept ISO C89... none neededchecking how to run the C preprocessor... cc -Echecking for icc... nochecking for suncc... nochecking whether cc understands -c and -o together... yeschecking for system library directory... libchecking if compiler supports -R... nochecking if compiler supports -Wl,-rpath,... yeschecking build system type... i686-pc-linux-gnuchecking host system type... i686-pc-linux-gnuchecking target system type... i686-pc-linux-gnuchecking for PHP prefix... /usrchecking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/libchecking for PHP extension directory... /usr/lib/php/moduleschecking for PHP installed headers prefix... /usr/include/phpchecking if debug is enabled... nochecking if zts is enabled... nochecking for re2c... noconfigure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.checking for gawk... gawkchecking whether to enable redis support... yes, sharedchecking whether to enable sessions... yeschecking whether to enable igbinary serializer support... nochecking for redis igbinary support... disabledchecking for a sed that does not truncate output... (cached) /bin/sedchecking for fgrep... /bin/grep -Fchecking for ld used by cc... /usr/bin/ldchecking if the linker (/usr/bin/ld) is GNU ld... yeschecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -Bchecking the name lister (/usr/bin/nm -B) interface... BSD nmchecking whether ln -s works... yeschecking the maximum length of command line arguments... 1966080checking whether the shell understands some XSI constructs... yeschecking whether the shell understands "+="... yeschecking for /usr/bin/ld option to reload object files... -rchecking for objdump... objdumpchecking how to recognize dependent libraries... pass_allchecking for ar... archecking for strip... stripchecking for ranlib... ranlibchecking command to parse /usr/bin/nm -B output from cc object... okchecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking for dlfcn.h... yeschecking for objdir... .libschecking if cc supports -fno-rtti -fno-exceptions... nochecking for cc option to produce PIC... -fPIC -DPICchecking if cc PIC flag -fPIC -DPIC works... yeschecking if cc static flag -static works... yeschecking if cc supports -c -o file.o... yeschecking if cc supports -c -o file.o... (cached) yeschecking whether the cc linker (/usr/bin/ld) supports shared libraries... yeschecking whether -lc should be explicitly linked in... nochecking dynamic linker characteristics... GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... yeschecking whether to build static libraries... noconfigure: creating ./config.statusconfig.status: creating config.hconfig.status: executing libtool commands[root@VM_114_93_centos phpredis-develop]# make && make install/bin/sh /local/phpredis-develop/libtool --mode=compile cc  -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /local/phpredis-develop/redis.c -o redis.lo libtool: compile:  cc -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /local/phpredis-develop/redis.c  -fPIC -DPIC -o .libs/redis.o/bin/sh /local/phpredis-develop/libtool --mode=compile cc  -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /local/phpredis-develop/redis_commands.c -o redis_commands.lo libtool: compile:  cc -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /local/phpredis-develop/redis_commands.c  -fPIC -DPIC -o .libs/redis_commands.o/local/phpredis-develop/redis_commands.c: In function 'redis_setbit_cmd':/local/phpredis-develop/redis_commands.c:2081: warning: this decimal constant is unsigned only in ISO C90/bin/sh /local/phpredis-develop/libtool --mode=compile cc  -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /local/phpredis-develop/library.c -o library.lo libtool: compile:  cc -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /local/phpredis-develop/library.c  -fPIC -DPIC -o .libs/library.o/bin/sh /local/phpredis-develop/libtool --mode=compile cc  -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /local/phpredis-develop/redis_session.c -o redis_session.lo libtool: compile:  cc -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /local/phpredis-develop/redis_session.c  -fPIC -DPIC -o .libs/redis_session.o/bin/sh /local/phpredis-develop/libtool --mode=compile cc  -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /local/phpredis-develop/redis_array.c -o redis_array.lo libtool: compile:  cc -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /local/phpredis-develop/redis_array.c  -fPIC -DPIC -o .libs/redis_array.o/bin/sh /local/phpredis-develop/libtool --mode=compile cc  -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /local/phpredis-develop/redis_array_impl.c -o redis_array_impl.lo libtool: compile:  cc -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /local/phpredis-develop/redis_array_impl.c  -fPIC -DPIC -o .libs/redis_array_impl.o/bin/sh /local/phpredis-develop/libtool --mode=compile cc  -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /local/phpredis-develop/redis_cluster.c -o redis_cluster.lo libtool: compile:  cc -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /local/phpredis-develop/redis_cluster.c  -fPIC -DPIC -o .libs/redis_cluster.o/bin/sh /local/phpredis-develop/libtool --mode=compile cc  -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /local/phpredis-develop/cluster_library.c -o cluster_library.lo libtool: compile:  cc -I. -I/local/phpredis-develop -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /local/phpredis-develop/cluster_library.c  -fPIC -DPIC -o .libs/cluster_library.o/bin/sh /local/phpredis-develop/libtool --mode=link cc -DPHP_ATOM_INC -I/local/phpredis-develop/include -I/local/phpredis-develop/main -I/local/phpredis-develop -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -o redis.la -export-dynamic -avoid-version -prefer-pic -module -rpath /local/phpredis-develop/modules  redis.lo redis_commands.lo library.lo redis_session.lo redis_array.lo redis_array_impl.lo redis_cluster.lo cluster_library.lo libtool: link: cc -shared  .libs/redis.o .libs/redis_commands.o .libs/library.o .libs/redis_session.o .libs/redis_array.o .libs/redis_array_impl.o .libs/redis_cluster.o .libs/cluster_library.o      -Wl,-soname -Wl,redis.so -o .libs/redis.solibtool: link: ( cd ".libs" && rm -f "redis.la" && ln -s "../redis.la" "redis.la" )/bin/sh /local/phpredis-develop/libtool --mode=install cp ./redis.la /local/phpredis-develop/moduleslibtool: install: cp ./.libs/redis.so /local/phpredis-develop/modules/redis.solibtool: install: cp ./.libs/redis.lai /local/phpredis-develop/modules/redis.lalibtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /local/phpredis-develop/modules----------------------------------------------------------------------Libraries have been installed in:   /local/phpredis-develop/modulesIf you ever happen to want to link against installed librariesin a given directory, LIBDIR, you must either use libtool, andspecify 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 formore information, such as the ld(1) and ld.so(8) manual pages.----------------------------------------------------------------------Build complete.Don't forget to run 'make test'.Installing shared extensions:     /usr/lib/php/modules/[root@VM_114_93_centos phpredis-develop]# cd /usr/lib/php/modules/[root@VM_114_93_centos modules]# lltotal 4744-rwxr-xr-x 1 root root   65568 May 11 05:33 curl.so-rwxr-xr-x 1 root root  158384 May 11 05:33 dom.so-rwxr-xr-x 1 root root 1843676 May 11 05:33 fileinfo.so-rwxr-xr-x 1 root root  316012 May 11 05:33 gd.so-rwxr-xr-x 1 root root   90676 May 11 05:33 imap.so-rwxr-xr-x 1 root root   33428 May 11 05:33 json.so-rwxr-xr-x 1 root root   45396 May 11 05:33 ldap.so-rwxr-xr-x 1 root root   45332 May 11 05:33 mysql.so-rwxr-xr-x 1 root root  122024 May 11 05:33 mysqli.so-rwxr-xr-x 1 root root   61460 May 11 05:33 odbc.so-rwxr-xr-x 1 root root   90872 May 11 05:33 pdo.so-rwxr-xr-x 1 root root   25672 May 11 05:33 pdo_mysql.so-rwxr-xr-x 1 root root   22696 May 11 05:33 pdo_odbc.so-rwxr-xr-x 1 root root   21288 May 11 05:33 pdo_sqlite.so-rwxr-xr-x 1 root root  265280 May 11 05:33 phar.so-rwxr-xr-x 1 root root 1216119 Oct  2 11:09 redis.so-rwxr-xr-x 1 root root   41344 May 11 05:33 sqlite3.so-rwxr-xr-x 1 root root   31572 May 11 05:33 wddx.so-rwxr-xr-x 1 root root   25592 May 11 05:33 xmlreader.so-rwxr-xr-x 1 root root   81584 May 11 05:33 xmlrpc.so-rwxr-xr-x 1 root root   37752 May 11 05:33 xmlwriter.so-rwxr-xr-x 1 root root   27892 May 11 05:33 xsl.so-rwxr-xr-x 1 root root   81248 May 11 05:33 zip.so[root@VM_114_93_centos modules]# vim /etc/php.ini You have new mail in /var/spool/mail/root[root@VM_114_93_centos modules]# service httpd restartStopping httpd:                                            [  OK  ]Starting httpd:                                            [  OK  ][root@VM_114_93_centos modules]# 
2 0