CentOS7 编译安装yaf框架

准备:

# 安装包
wget http://pecl.php.net/get/yaf-3.0.7.tgz
tar zxvf yaf-3.0.7.tgz
cd yaf-3.0.7

# 编译安装
使用安装 php 时生成的 phpize 来生成 configure 配置文件(可以用 whereis phpize查看路径,其中 php-config 和 phpize 所在的目录是相同的)

#这个是我php安装的路径
/usr/local/php7/bin/phpize

# 查看是否生成configure
ll

# 配置编译
./configure --with-php-config=/usr/local/php7/bin/php-config

# 编译
make

# 安装
make install

# 去php.ini文件中添加
# 找到extension_dir = "ext"在下一行添加
extension = "yaf.so"

重启php生效

你可能感兴趣的:(CentOS7 编译安装yaf框架)