CentOS Installation PHP V8js tutorial
CentOS Release 5.11 (final), CentOS Release 6.6 (final) x64 test passed.
GCC version, glibc version, libstdc++. So.6 version, gnu-binutils version, tar version, Python version, re2c version must be right on the line, and finally got to vomit blood, need to glibc high version of the words is not to do, hard to engage the words of risk too big.
V8JS currently the latest version of 0.1.5beta, on the CentOS5 is impossible, various versions rely on can not get, so all use the old version.
Version:
The code is as follows:
gcc-4.4.7,php-5.4,v8-3.15.5,python-2.7
Compiling libv8.so
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 able to ignore
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 it: pecl install v8js-0.1.3
Attention:
When installing GCC, contrib/download_prerequisites can automatically download the required dependencies.
For 64-bit systems, yum install glibc-devel.i686 libstdc++.i686 is required.
Make-j4 is compiled with 4 logical CPUs, can speed up the compilation, but may be unstable internal error, such as, remove-j4 can be. First-hand experience do not use-j parameters, it is easy to encounter nausea problems.
64-bit system if it is a yum-loaded PHP, PHP is 64-bit and needs to compile 64-bit libv8.so (make X64.release library=shared).
http://www.bkjia.com/PHPjc/961077.html www.bkjia.com true http://www.bkjia.com/PHPjc/961077.html techarticle CentOS installation php v8js tutorial CentOS release 5.11 (final), CentOS Release 6.6 (final) x64 test pass. GCC version, glibc version, libstdc++.so.6 version, gnu-binutils version, tar version ...