Home > Backend Development > PHP Tutorial > CentOS installation php v8js tutorial, centosphpv8js tutorial_PHP tutorial

CentOS installation php v8js tutorial, centosphpv8js tutorial_PHP tutorial

WBOY
Release: 2016-07-13 10:06:14
Original
931 people have browsed it

CentOS installation php v8js tutorial, centosphpv8js tutorial

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

The gcc version, the glibc version, the libstdc++.so.6 version, the gnu-binutils version, the tar version, the python version, and the re2c version must all be correct. In the end, the one that is already vomiting blood needs a higher version of glibc. It can't be done, and the risk would be too great if we insist on doing it.

The latest version of v8js, 0.1.5beta, cannot be used on CentOS5. Various version dependencies cannot be used, so the old version is used.

Version:

Copy code The code is as follows:

gcc-4.4.7, php-5.4, v8-3.15.5, python-2.7

Compile libv8.so
Copy code The 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
Copy code The code is as follows:

cp /root/software/v8-git-mirror-3.15.5/out/ia32.release/lib.target/libv8.so /usr/lib/
cp /root/software/v8-git-mirror-3.15.5/include/v8* /usr/include/

Just do this: pecl install v8js-0.1.3

Note:

When installing gcc, contrib/download_prerequisites can automatically download the required dependencies.
If it is a 64-bit system, you need yum install glibc-devel.i686 libstdc++.i686, etc.
make -j4 uses 4 logical CPUs to compile, which can speed up the compilation, but it may be unstable and cause internal errors and the like. Just remove -j4. Personal experience is that don't use the -j parameter, it is easy to encounter nausea problems.
For a 64-bit system, if php is installed with yum, php is 64-bit, and 64-bit libv8.so needs to be compiled (make x64.release library=shared).

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/960708.htmlTechArticleCentOS installation php v8js tutorial, centosphpv8js tutorial CentOS release 5.11 (Final), CentOS release 6.6 (Final) x64 test passed . gcc version, glibc version, libstdc++.so.6 version, gnu-bi...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template