日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux android gradle构建机器 error while loading shared libraries: libz.so.1: cannot open shared object

發(fā)布時間:2023/12/19 linux 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux android gradle构建机器 error while loading shared libraries: libz.so.1: cannot open shared object 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

原因:64位 linux 機(jī)器缺少32位lib相關(guān)的支持庫

如果yum 服務(wù)器上有 相關(guān)的庫最好使用 yum 安裝,其他 博客上使用 apt-file 安裝。

查看libz.so.1屬于 glic 庫包

glibc.i686 2.12-1.166.el6_7.7 @base glibc.x86_64 2.14.1-6 installed

執(zhí)行 yum list?glibc?

安裝glibc相關(guān)的:

[root@jenkissitweb206 ~]# yum list glibc* Loaded plugins: product-id, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Installed Packages glibc.i686 2.12-1.166.el6_7.7 @yum-cd glibc.x86_64 2.14.1-6 installed glibc-common.x86_64 2.14.1-6 installed glibc-devel.x86_64 2.14.1-6 installed glibc-headers.x86_64 2.14.1-6 installed glibc-static.x86_64 2.14.1-6 installed glibc-utils.x86_64 2.14.1-6 installed Available Packages glibc-devel.i686 2.12-1.166.el6_7.7 yum-cd glibc-static.i686 2.12-1.166.el6_7.7 yum-cd

然后 yum??install glibc.i686??

還需要安裝zlib先關(guān)的:安裝 zlib.i686

[root@jenkissitweb206 ~]# yum list zlib* Loaded plugins: product-id, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Installed Packages zlib.x86_64 1.2.3-27.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 Available Packages zlib.i686 1.2.3-27.el6 yum-cd

安裝ncurses相關(guān)的庫:

[root@jenkissitweb206 ~]# yum list ncurses* Loaded plugins: product-id, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity Installed Packages ncurses.x86_64 5.7-3.20090208.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 ncurses-base.x86_64 5.7-3.20090208.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 ncurses-libs.i686 5.7-3.20090208.el6 @yum-cd ncurses-libs.x86_64 5.7-3.20090208.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3 Available Packages ncurses-devel.i686 5.7-3.20090208.el6 yum-cd ncurses-devel.x86_64 5.7-3.20090208.el6 yum-cd ncurses-term.x86_64

yum install?ncurses-libs.i686


然后又報錯:

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or director

先確定?libstdc++.so.6 是在哪個包中:libstdc++.i686

執(zhí)行 yum install libstdc++.i686


總結(jié)

以上是生活随笔為你收集整理的linux android gradle构建机器 error while loading shared libraries: libz.so.1: cannot open shared object的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。