aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file

解决pyinstaller打包的程序无法执行,提示Operation not permitted 前言 PyInstaller是一个强大的工具,它可以分析我们的python脚本,发现脚本执行所依赖的模块,并将他们打包到一个文件夹,或者封装成一个可执行文件(exe或者binary)。然后,我们就可以将这个文件(文件夹)放到其他机器上去执行,目标机器甚至可以不用安装python环境!这跟docker有异曲同工之妙。 问题描述 在Centos7上,用PyInstaller将py文件打成一个binar... 阅读详情

在Ubuntu等64为Linux下安装google android的时候会提示:

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

当使用apt-get install ~~~安装的时候却提示已经安装,或者是未发现软件包,

其实这是因为64位系统中安装的libstdc++是64位的而SDK需要的是32位的原因:

解决办法:

        sudo apt-get install lib32ncurses5 lib32stdc++6

还不行在安装:

            sudo apt-get install ia32-libs

   这样SDK就可一正常的在64位环境下编译了

Today I had to reinstall the Android plugin on my system and I recently upgraded to a 64-bit development VM. To my surprise the installation didn’t go smoothly at all. After restarting Eclipse twice I was constantly presented with two error messages “Failed to parse the output of ‘adb version’” and “adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory”. Your system may also present another error message that reads “adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory”.

I could see that it was looking for libncurses.so.5 however I know that ncurses is already installed on my machine in /lib as /lib/libncurses.so.5. So where exactly was Eclipse/adb looking for it? It turns out that it wants to find its libraries in the /lib32 directory but you can’t just symlink it or you’ll get an error that reads “wrong ELF class: ELFCLASS64″. adb needs to have the 32-bit versions installed or it won’t function at all.

So to get up and running just run the following command to fix the issue:

sudo apt-get install lib32ncurses5 lib32stdc++6

After that just restart Eclipse and the issue should be fully put to bed. Let me know how it works out for you or if you run into trouble.

If you still run into trouble like an error message that reads “aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory” you need to install the ia32-libs like this:

sudo apt-get install ia32-libs

Then rebuild your project and the errors should be gone.

UPDATE 2012-02-14: Rortian reports that the following command words on Fedora 16:

yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686
cts 运行时 有时候 aapt2 的问题 然后到 .bashrc 文件 添加 sdk中 aapt2 的路径。运行case 有时候不成功,出现 aapt2 的问题 ,然后ln -s 最新的 aapt2 到 /usr/bin。SDK 下载最新的 build_tools。这就是aapt2 版本不是最新的,查看 使用的 aapt2 的位置。 阅读详情

相关推荐

Doris 编译报错 clang: error while loading shared libraries: libz.so.1: file too short

Doris 编译

JustinMars的博客 925

rpm:error while loading shared libraries: libz.so.1: cannot open shared object file:(问题解决)

rpm:error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory 由于要服务器中zlib版本,但rpm安装时会提示版本冲突,于是手贱rpm -e --nodeps zlib强制将zlib, 然而再执行rpm安装zlib-1.2.7-18.el7.x86_64时提示了错误: rpm:error while loading shared libraries

weixin_46941625的博客 1万+

centos删除zlib后出现rpm:error while loading shared libraries: libz.so.1: cannot open shared object file

不管是出于什么原因删除了zlib,我就是单纯安装完zlib后发现不是自己要的版本,实际应该安装zlib-devel,然后干的蠢事顺手删除了zlib,因为删不掉还特意查了一下当时其实作者就有说明会引起系统崩溃,但是我没有太在意,因为就像更新系统一直都懒得做备份一样然后悲剧出现了,不管怎么样都使用不了等等一大批命令,同时在图形界面中也没有任何软件能够打开了。因为无法获得root权限,所以也无法传输文件回到lib64里面。

liuwang_henu的博客 1277

报错:error while loading shared libraries: libz.so.1: cannot open shared object file(二十五)

OS: Kali linux Compile toolchian: arm-none-linux-gnueabi # arm-none-linux-gnueabi-gcc hook.c arm-linux-gcc 交叉编译报错: error while loading shared libraries: libz.so.1: cannot open shared object file: ...

Android系统攻城狮 1万+

PRIDE PPP-AR软件实战:从ZTD解算到PWV反演的全流程避坑指南

本文详细解析了使用PRIDE PPP-AR软件进行GNSS数据处理的全流程,重点涵盖从ZTD解算到PWV反演的关键步骤与精度评估。文章深入剖析了软件部署、数据准备、参数配置中的常见“坑点”,并提供了与IGS ZTD及ERA5产品进行交叉验证的实用方法,旨在帮助用户高效、准确地获取高精度大气可降水量产品。

p8q9r0的博客 606

手把手教你用OpenCore在Dell Optiplex 3060上安装黑苹果(含ALC255声卡修复)

本文提供了一份详尽的指南,教你如何在Dell Optiplex 3060微型台式机上安装黑苹果系统。文章重点解决了使用OpenCore引导时的核心配置,特别是针对Intel UHD 630核显的驱动优化和Realtek ALC255声卡的修复方案,旨在帮助用户打造一个稳定可用的macOS工作站。

weixin_29275257的博客 789

error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir

ubuntu 16.04 系统下使用  gradlew 编译Android项目  出现 /home/next/Android/sdk_android/build-tools/23.0.2/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or di

change 1047

归因分析计算因子贡献度常见的方法

在归因分析中,我们一般都需要计算出每个因子的贡献度是多少,比如产品DAU上升,对年龄段维度进行拆解,看是不同年龄段的用户对DAU上升的贡献度是多少,一般根据指标的类型,计算贡献度的方法也不一样,下面就列出一些常见的归因分析贡献度的计算方法。

Hubans的博客 4万+

aapt:aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such

sudo yum update zlib-1.2.7-17.el7.x86_64 yum install zlib.i686

github_38641765的博客 493

2.1 SRv6 TE Policy

SRv6 TE Policy是在SRv6技术基础上发展的一种新的隧道引流技术。SRv6 TE Policy路径表示为指定路径的段列表(Segment List),称为SID列表(Segment ID List)。每个SID列表是从源到目的地的端到端路径,并指示网络中的设备遵循指定的路径,而不是遵循IGP计算的最短路径。如果数据包被导入SRv6 TE Policy中,SID列表由头端添加到数据包上,网络的其余设备执行SID列表中嵌入的指令。

m0_70976024的博客 1237

数字IC后端设计实现 | PR工具中到底应该如何控制density和congestion?(ICC2&Innovus)

数字IC后端设计实现中到底应该如何控制cell density和congestion?(ICC2和Innovus两种解决方案)

weixin_37584728的博客 7113

error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or di

最近开发andorid,在windows下开发实在是太卡了,所以就装了ubuntu,环境之类的一切都搭建好了,但是打开eclipse时去出现了 /home/catia/android-sdks/platform-tools/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file:

I_LOVE_LM的专栏 1万+

【feature_column处理】- indicator_column(指示列)和embedding_column(嵌入列)

1. 开胃菜 我们先来了解一下tf.feature_column.input_layer def input_layer(features, feature_columns, weight_collections=None, trainable=True, cols_to_vars=None, cols_to_output_tensors=None)

DataAlgo 1487

解决aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: Nosuchfile

在Ubunton14.04x64上使用Eclipse(adt)时,新建Android项目报aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory。 解决办法:sudo apt-get install ia32-libs 会发现出现

niuzhucedenglu的博客 2124

Python 爬虫实战:Steam 游戏数据爬取与游戏市场分析

本文介绍了一个基于Python的Steam游戏数据分析项目。通过爬取Steam公开API和游戏详情页,获取游戏列表、价格、评价、标签等数据,结合SteamSpy统计销量和在线人数。项目使用requests、BeautifulSoup4进行数据采集,pandas处理数据,pyecharts和seaborn进行可视化。核心步骤包括:1)获取全量游戏列表并过滤;2)异步请求游戏详情处理限速;3)提取关键字段如价格、评分、标签;4)多维分析价格分布、标签热度等。技术栈涵盖API请求、HTML解析、数据存储与可视化,

u014481728的博客 307

AI上推荐 之 AutoInt模型(Transformer开始玩特征交互)

1. 写在前面 这段时间做优化模型的事情,正好和特征交互有关系,这个也是推荐系统里面一直探索的一个方向,从浅层模型的FM, FFM, HOFM, FwFM到深层模型的DNN, PNN, NFM, AFM, DeepFM, DCN, xDeepFM, FiBiNet等,而这次正好借着这次机会, 多看一些有关于特征交叉方向的模型paper, 把一些新的模型或者较为前沿的思想融入进来。 上一篇的FiBinet模型就是在特征交互上一个非常有意思的探索, 通过SENET动态选择有用的交互特征, 然后再用一个双线性交互

Miracle8070 5725

解决AaptParser: aapt dump badging stderr: aapt: error while loading shared libraries: libc++.so

问题描述: 在ubuntu下做cts测试时候跑某些case提示AaptParser: aapt dump badging stderr: aapt: error while loading shared libraries: libc++.so: cannot open shared object file: No such file or directory,导致case失败。 原因

wangjunfeng0000的专栏 5841

老版QQ原生表情gif动态

这是老版的QQ表情,不过全是动态的的,Windows照片查看器是不会动的,可以右击用浏览器打开查看,再说一遍是老版的,只是分享给宁愿用老版也要动态的人。

libz.so.1: cannot open shared object file

23down votefavorite 7 I am facing an issue on ubuntu 12.04 as : /usr/lib/ndk/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-andro

我的文档 6223

C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片

基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正

蓝牙模块HM-10手册

蓝牙模块HM-10手册,该手册对蓝牙模块HM-10进行了详细的介绍和使用方法以及一些AT指令。

error while loading shared libraries的解决方案

error while loading shared libraries的解决方案

jjjqqq123321的博客 2万+

Outlook Express 6 (OE6) for Win7/Win8/Win10

英文版 Outlook Express6.0, 兼容Win7/Win10/WinXP,解压就可用。

libz.so.1: cannot open shared object file: No such file or directory

使用arm编译c程序时出现错误[root@localhost Downloads]# arm-linux-gcc -o test test.c /usr/local/arm/4.4.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.3/../../../../arm-none-linux-gnueabi/bin/as: error while loading s

sdd220的博客 1万+

解决 error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or

编译android7.0出现问题: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory 解决方法: sudo apt-get install apt-file sudo apt-file update sudo apt-file...

liangtianmeng的专栏 9733

aapt 在linux下的运行错误

1、aapt: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory 2、aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

running_snail_的专栏 999
上一篇: Android开发服务器的搭建
下一篇: Genymotion出现错误INSTALL_FAILED_CPU_ABI_INCOMPATIBLE解决办法
hi_Xing
博客等级 码龄12年 2粉丝 6原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值