欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Ubuntu上安裝yaf擴展的方法

 更新時間:2018年01月29日 10:23:30   投稿:jingxian  
下面小編就為大家分享一篇Ubuntu上安裝yaf擴展的方法,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧

一、下載

yaf擴展下載地址

http://pecl.php.net/package/yaf

選擇你想要下載的包

wget http://pecl.PHP.net/get/yaf-2.3.5.tgz
tar zxvf yaf-2.3.5.tgz
cd yaf-2.3.5

二、安裝

#whereis phpize
/data/yaf-2.3.5# /usr/bin/phpize
#whereis php-config
php-config: /usr/bin/php-config /usr/share/man/man1/php-config.1.gz
/data/yaf-2.3.5# ./configure --with-php-config=/usr/bin/php-config
/data/yaf-2.3.5# make && make install

解決方法:

最后一條命令時可能出現(xiàn)錯誤:compilation terminated. make: * [yaf_router.lo] Error 1

sudo apt-get install libpcre3 libpcre3-dev openssl libssl-dev

再執(zhí)行最后一條命令。

一切順利的話,應該是這樣的:

也可以執(zhí)行以下make test 

還有可能出現(xiàn)這樣的錯誤:cp:cannot create regular file ‘/usr/lib/php5/20121212/#INST@13121#':Permission denied

這是權限不夠,當前用戶不是root,可以通過su切換到root,輸入root密碼即可,忘記密碼可以重設:sudo passwd root

在php.ini中添加:

extension=yaf.so

如果不知道php.ini在哪兒,可以看phpinfo

最后,重啟服務器

以上這篇Ubuntu上安裝yaf擴展的方法就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關文章

最新評論