尝试在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。放弃了。。。

 

转载于:https://www.cnblogs.com/westfly/p/5297722.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值