CentOS 5.5 上的 PhantomJS(glibc 和 libstdc++ 版本)

CentOS 5.5 上的 PhantomJS(glibc 和 libstdc++ 版本)

我嘗試在 CentOS 上運行 PhantomJS,但得到以下資訊:

./phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./phantomjs)
./phantomjs: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./phantomjs)
./phantomjs: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by ./phantomjs)
./phantomjs: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by /home/bamboo/bamboo-data/xml-data/build-dir/PHANTOMJS-ARTIFACT-JOB1/target/checkout/dists/linux_x64/bin/../lib/libQtGui.so.4)
./phantomjs: /lib64/libc.so.6: version `GLIBC_2.11' not found (required by /home/bamboo/bamboo-data/xml-data/build-dir/PHANTOMJS-ARTIFACT-JOB1/target/checkout/dists/linux_x64/bin/../lib/libQtGui.so.4)
./phantomjs: /lib64/libc.so.6: version `GLIBC_2.9' not found (required by /home/bamboo/bamboo-data/xml-data/build-dir/PHANTOMJS-ARTIFACT-JOB1/target/checkout/dists/linux_x64/bin/../lib/libQtGui.so.4)
./phantomjs: /lib64/libc.so.6: version `GLIBC_2.10' not found (required by /home/bamboo/bamboo-data/xml-data/build-dir/PHANTOMJS-ARTIFACT-JOB1/target/checkout/dists/linux_x64/bin/../lib/libQtNetwork.so.4)
./phantomjs: /lib64/libc.so.6: version `GLIBC_2.9' not found (required by /home/bamboo/bamboo-data/xml-data/build-dir/PHANTOMJS-ARTIFACT-JOB1/target/checkout/dists/linux_x64/bin/../lib/libQtCore.so.4)

我甚至構建了 PhantomJS 的靜態構建,但與 PhantomJS 捆綁的庫似乎依賴 glibc 和 libstdc++。

在 CentOS 上建立特定的 PhantomJS 二進位檔案不是一個選擇,因為這台機器是我們建置和測試專案的持續整合框。我將 PhantomJS 打包為工件,然後在建置過程中將其解壓縮並使用(用於 Javascript 持續整合)。所以需要使用這個精確的神器。

有沒有簡單的方法來升級 glibc 和 libstdc++?我嘗試過yum install glibc並且yum install libstdc++。我注意到它確實執行了更新,但在我嘗試再次運行 PhantomJS 後沒有任何變化。

答案1

您在比您嘗試部署的系統更新得多的系統上建置了 PhantomJS。在與部署系統相符的系統上重建它。

相關內容