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.
Version 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 ignored
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 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).