How to install php yac extensions locally
This article introduces the relevant knowledge of "how to install php yac extensions locally". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Local installation of php yac extension methods: 1, through the "wget https://github.com/laruence/yac/archive/master.zip" download yac;2, modify the php.ini file and install the yac extension module can be."
Operating environment of this article: centOS6.8 system, PHP5.6 version, macbook air2017 computer
How to install the php yac extension locally?
Install the yac extension cache for php. Did you use the cache? Not yet, is it too out?
Here are my own notes on installing yac.
Method
I didn't bother to look for it officially. I downloaded it directly from the github address of BOSS Hui Xinchen.
I'll just wget https://github.com/laruence/yac/archive/master.zip.
Then extract it to the current directory (I don't know why I can't see the suffix of zip in linux)
Unzip master-d. /
Will create a directory of yac-master
Cd, go in.
Then compile and install.
Phpize. / configure-- with-php-config=/usr/local/php/bin/php-config make make install (the paths of phpize and php-config are based on their own servers)
After installation, modify the php.ini file to add a line
Extension = yac.so
If this is the first time to install the expansion module, please set the
Extension_dir is modified to the directory where the yac.so file is located after installation. As shown in the following figure:
Extension_dir = / usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/
(just an example, based on the actual path)
That's all for "how to install php yac extensions locally". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!