Home > Article > Backend Development > How to install yaf extension on Ubuntu php example
The editor below will share with you an article on how to install the yaf extension on Ubuntu. It has a good reference value and I hope it will be helpful to everyone. Let’s follow the editor to take a look
1. Download
yaf extension download address
http://pecl .php.net/package/yaf
Select the package you want to download
wget http://pecl.PHP.net/get/yaf-2.3.5.tgz tar zxvf yaf-2.3.5.tgz cd yaf-2.3.5
##2. Installation
###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##Solution:
An error may occur during the last command: compilation terminated. make: * [yaf_router.lo] Error 1
sudo apt-get install libpcre3 libpcre3-dev openssl libssl-devExecute the last command again. If everything goes well, it should look like this:
也可以执行以下make testThere may be errors like this :cp:cannot create regular file '/usr/lib/php5/20121212/#INST@13121#':Permission deniedThis is insufficient permission. The current user is not root. You can switch to root through su and enter Just root password. If you forget your password, you can reset it: sudo passwd rootAdd in php.ini:
extension=yaf.soIf you don’t know php Where is the .ini, you can look at phpinfo ##Finally, restart the server The above article installs the yaf extension on Ubuntu The method is all the content shared by the editor. I hope it can give you a reference, and I also hope that everyone will support the php Chinese website.
Related recommendations:
thinkphp3.2.0 setInc method source code comprehensive analysis of PHP examplesPHP PHP example of using binary to save user status
The above is the detailed content of How to install yaf extension on Ubuntu php example. For more information, please follow other related articles on the PHP Chinese website!