CentOS Install PHP v8js Tutorial

Source: Internet
Author: User
Tags install php versions centos

CentOS release 5.11 (final), CentOS release 6.6 (final) x64 test passed.

GCC version, glibc version, libstdc++. So.6 version, gnu-binutils version, the tar version, Python version, re2c version of the right to do, and finally have to vomit blood, the need to glibc a high version of the words is not, hard to engage in the words of risk too big.

V8JS currently the latest version of 0.1.5beta, on the CentOS5 is not to be done, various versions rely on can not be made, so all with the old versions.



code is as follows:


Compiling libv8.so


code is as follows:

wget https://github.com/v8/v8-git-mirror/archive/3.15.5.tar.gz

CD v8-git-mirror-3.15.5/

Make Dependencies

make Ia32.release library=shared-j4

The following should be ignored


code is as follows:



Just do it: pecl install v8js-0.1.3.


When you install GCC, contrib/download_prerequisites can automatically download the dependencies you need.
If it is a 64-bit system, you need to yum install glibc-devel.i686 libstdc++.i686.
Make-j4 is compiled using 4 logical CPUs, can speed up the compilation speed, but may be unstable occurrence internal error and so on, remove-j4 can. Personal experience do not use-j parameters, it is easy to encounter nausea problems.
64-bit system if PHP is Yum installed PHP is 64-bit, you need to compile 64-bit libv8.so (make X64.release library=shared).

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.