PhantomJS auf CentOS 5.5 (glibc- und libstdc++-Versionen)

PhantomJS auf CentOS 5.5 (glibc- und libstdc++-Versionen)

Ich versuche, PhantomJS auf CentOS auszuführen, aber ich erhalte Folgendes:

./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)

Ich habe sogar eine statische Version von PhantomJS erstellt, aber es scheint, dass die mit PhantomJS gebündelten Bibliotheken von glibc und libstdc++ abhängig sind.

Das Erstellen einer bestimmten PhantomJS-Binärdatei auf CentOS ist keine Option, da diese Maschine unsere Continuous-Integration-Box ist, die unser Projekt erstellt und testet. Ich habe PhantomJS als Artefakt verpackt, das dann während des Build-Prozesses entpackt und verwendet wird (für Javascript Continuous Integration). Daher muss genau dieses Artefakt verwendet werden.

Gibt es eine einfache Möglichkeit, glibc und libstdc++ zu aktualisieren? Ich habe es versucht yum install glibcund yum install libstdc++. Mir ist aufgefallen, dass tatsächlich eine Aktualisierung durchgeführt wurde, aber es gab keine Änderung, nachdem ich versucht habe, PhantomJS erneut auszuführen.

Antwort1

Sie haben PhantomJS auf einem viel neueren System erstellt als dem, auf dem Sie es bereitstellen möchten. Erstellen Sie es auf einem System neu, das dem Bereitstellungssystem entspricht.

verwandte Informationen