In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article will explain in detail about linux php installation apc failure how to do, the content of the article is of high quality, so the editor to share with you to do a reference, I hope you have a certain understanding of the relevant knowledge after reading this article.
Linux php failed to install apc solutions: 1, click "git.php.net/?p=pecl/caching/apc.git"; 2, download the latest version of apc installation.
This article runs on centos6.5 system, PHP5.5.10 version, Dell G3 computer.
What if linux php failed to install apc?
Solution to the failure of installing apc for php5.5 under linux
Recently, I found apc in the cache. I wanted to study it, so I downloaded the latest version (3.1.13) of the apc extension from http://pecl.php.net/package/apc in the official php extension library, and then installed php extensions like phpize, configure, make, but something unexpected happened. There was an error in make. The error message is roughly as follows.
/ home/centos/Downloads/apc/apc_compile.c:2379:12: error: 'zend_trait_alias' has no member named' function'/home/centos/Downloads/apc/apc_compile.c:2380:9: error: 'zend_trait_alias' has no member named' function'/home/centos/Downloads/apc/apc_compile.c:2380:9: error: 'zend_trait_alias' has no member named' function'/home/centos/Downloads/apc/apc_compile .c: In function' apc_copy_trait_precedence':/home/centos/Downloads/apc/apc_compile.c:2416:12: error: 'zend_trait_precedence' has no member named' function'/home/centos/Downloads/apc/apc_compile.c:2417:9: error: 'zend_trait_precedence' has no member named' function'/home/centos/Downloads/apc/apc_compile.c:2417:9: error: 'zend_trait_precedence' has no member named 'function'make: * [apc_compile.lo] Error 1ERROR: `make' failed
At this time need omnipotent Baidu, after Baidu found that most of the problem is the php5.5 version, so I checked the php version is really php5.5, although many people encounter problems, but there is no way to solve the problem, most of the argument is that the apc extension does not support php5.5, is there no solution? With a burst of tenacity, the editor changed N keywords, clicked on N web pages, and finally lived up to the dedicated people, so that the editor found a solution, the specific solution is as follows:
Click http://git.php.net/?p=pecl/caching/apc.git to download the latest version of apc installation to solve the problem.
The above URL is the official source code library of apc. Compared with the official extended database, there are more versions of the source code library (including various modified versions). We click "master" to view more detailed modification information. If you are careful, you may find such a description "Fix build with latest PHP 5.5". In other words, it is only from this version that the bug of PHP 5.5 has been repaired. The version before installation will still report an error under PHP 5.5. does this version really solve this problem? the editor downloaded it and tested it. After installation, it did not report an error. After downloading the latest version, it did not report an error. What about the previous version? After downloading and testing, I still reported an error, and sure enough, it was from this version that I really fixed bug that PHP 5.5 could not install apc.
Special note: as the official repair of this bug after apc 3.1.14 release version, there will still be errors when using apc 3.1.14 version. If you want not to report errors, you need to download and install the version after the description of "Fix build with latest PHP 5.5".
About linux php installation apc failure how to share here, I hope the above content can be of some help to you, you can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.