我有一個應用程序在本地編譯ldd版本 (Ubuntu EGLIBC 2.15-0ubuntu10.4) 2.15
,我需要在ldd version 2.12
的服務器上運行。由於它是在QT框架中構建的,並且我沒有root權限來安裝框架或升級libc.so.6
,所以我需要在我的機器上安裝一個較舊的glibc,以便編譯,如此post。從下載hereglibc-2.11.2.tar.gz
後嘗試使用命令./configure --prefix=/usr/oldlibc
安裝它,它會顯示以下錯誤:在ubuntu上安裝glibc 11精確(12.04)
/bogdan/Downloads/safe/csu/crti.o
/tmp/ccHNBWLa.s: Assembler messages:
/tmp/ccHNBWLa.s: Error: open CFI at the end of file; missing .cfi_endproc directive
/tmp/ccHNBWLa.s: Error: open CFI at the end of file; missing .cfi_endproc directive
make[2]: *** [/home/bogdan/Downloads/safe/csu/crti.o] Error 1
make[2]: Leaving directory `/home/bogdan/Downloads/glibc-2.11/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home/bogdan/Downloads/glibc-2.11'
make: *** [all] Error 2
我能做些什麼來正確安裝libc.so.6
?
靜態構建應用程序?不要在運行的系統上降級glibc。你可以在vm上安裝ubuntu10.04並在那裏建立。 – 2014-12-02 06:35:20
@ElliottFrisch,我已經試過了,但這次我有intalling opencv2問題。我沒有發現任何存儲庫有opencv2 – courage 2014-12-02 07:04:18
在你的問題中沒有提到,但你可以得到的源代碼,並建立它。降級glibc會破壞你擁有的任何opencv2。 – 2014-12-02 07:09:56