redhat5安装phantomjs
Linux 64-bit
Download phantomjs-2.1.1-linux-x86_64.tar.bz2 (22.3 MB) and extract the content.
Note: For this static build, the binary is self-contained. There is no requirement to install Qt, WebKit, or any other libraries. It however still relies on Fontconfig (the package fontconfig orlibfontconfig, depending on the distribution). The system must have GLIBCXX_3.4.9 and GLIBC_2.7.
官网说要运行phantomjs必须GLIBCXX_3.4.9 and GLIBC_2.7
先看看系统当前的GLIBC版本吧
[root@localhost ~]# strings /usr/lib/libstdc++.so.6|grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_FORCE_NEW
[root@localhost lib]# rpm -qa|grep glibc
glibc-2.5-58.3.0.1.AXS3
glibc-headers-2.5-58.3.0.1.AXS3
compat-glibc-headers-2.3.4-2.26
compat-glibc-2.3.4-2.26
glibc-2.5-58.3.0.1.AXS3
compat-glibc-2.3.4-2.26
glibc-common-2.5-58.3.0.1.AXS3
glibc-utils-2.5-58.3.0.1.AXS3
glibc-devel-2.5-58.3.0.1.AXS3
glibc-devel-2.5-58.3.0.1.AXS3
安装GLIBCXX_3.4.9
1、网上下载libstdc++.so.6.0.10,拷贝到/usr/lib和/usr/lib64下,删除libstdc++.so.6这个快捷方式。
2、重建快捷方式:
ln -s libstdc++.so.6.0.10 libstdc++.so.6
3、查看
[root@localhost lib]# strings /usr/lib/libstdc++.so.6|grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH
安装 GLIBC_2.7
1、下载glibc-2.7.tar.gz并解压tar -xvf glibc-2.7.tar.gz
2、创建目录 /usr/lib/glib2.7/
3、/root/glibc-2.7/configure --prefix=/usr/lib/glib2.7/
4、cd /usr/lib/glib2.7/
make & make install
注意:不能进入glibc-2.7目录下执行configure,需进入prefix指定的目录下执行make
浙公网安备 33010602011771号