尝试在centos5下运行phantomjs2

在redhat5上运行plantomjs 2,出现如下错误

bin/phantomjs: /lib64/libz.so.1: no version information available (required by bin/phantomjs)
bin/phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by bin/phantomjs)
bin/phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by bin/phantomjs)
bin/phantomjs: /lib64/libc.so.6: version `GLIBC_2.9' not found (required by bin/phantomjs)
bin/phantomjs: /lib64/libc.so.6: version `GLIBC_2.10' not found (required by bin/phantomjs)
bin/phantomjs: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by bin/phantomjs)

搜索了很多都说是glibc的版本低的问题。

 

官方说,不会再支持redhat5了。崩溃中,不过redhat5的确很老了,都是十年前的东东了。

We're not planning to support CentOS 5, its glibc is too old. See #13940 for details.

于是循着《libc.so.6: version `GLIBC_XXX' not found》 这篇文中提到的方法升级。当中提到了需要

禁用multiarch,在 http://stackoverflow.com/questions/7647818/glibc-elf-file-os-abi-invalid 也有提到。

解决了部分,但还是要升级 GLIBCXX_3.4.9,但glibcxx不单独提供,在gcc源码包中,无奈下只得编译gcc。

可以参考这篇文章 https://github.com/qiwsir/ITArticles/blob/master/Linux/How_to_solve_GLIBCXX_3.4.19.md。

 

最终发现还是不行。

bin/phantomjs: symbol lookup error: bin/phantomjs: undefined symbol: _ZZN9QtPrivate15ConnectionTypesINS_4ListIP7QObjectvEELb1EE5typesEvE1t

貌似需要升级qt。放弃了。。。

 

posted @ 2016-03-20 14:29  westfly  阅读(1234)  评论(0编辑  收藏  举报