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:
Copy Code code as follows:
gcc-4.4.7,php-5.4,v8-3.15.5,python-2.7
Compiling libv8.so
Copy Code code 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 code 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 64-bit system, need 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 the PHP is yum installed PHP is 64-bit, you need to compile 64-bit libv8.so (make X64.release library=shared).