[root@9e2c60482bdc test]# pecl install redis downloading redis-3.1.2.tgz ... Starting to download redis-3.1.2.tgz (199,041 bytes) .................done: 199,041 bytes 20 source files, building running: phpize Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012 building in /tmp/pear/install/pear-build-rootLPns3m/redis-3.1.2 running: /tmp/pear/install/redis/configure --with-php-config=/usr/bin/php-config checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for a sed that does not truncate output... /usr/bin/sed checking for cc... no checking for gcc... no configure: error: in /tmp/pear/install/pear-build-rootLPns3m/redis-3.1.2: configure: error: no acceptable C compiler found in $PATH See 'config.log' for more details ERROR: '/tmp/pear/install/redis/configure --with-php-config=/usr/bin/php-config' failed
刷刷的报错了,查询错误后贴出解决方法:yun install gcc gcc+
安装扩展(2)
执行:pecl install monodb
等待自动安装完成后,显示如下
1 2 3 4 5
Build process completed successfully Installing '/usr/lib64/php/modules/redis.so' install ok: channel://pecl.php.net/redis-3.1.2 configuration option "php_ini" is not set to php.ini location You should add "extension=redis.so" to php.ini