解决 Package test is missing dependencies for the following libraries: libcrypto.so.1.0.0

根据项目要求需要用到openssl这个库,看了看编译环境幸好本身就集成了该库。但在编译openssl的功能时,碰到缺少类库的错误。

Package test is missing dependencies for the following libraries:

libcrypto.so.1.0.0

看了看 编译器路径

/home/sonny/Desktop/bitmain1/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib

这个目录下是存在  libcrypto.so.1.0.0的。

百度谷歌查询了很多方法,为了保险我吧所有要修改的地方都列出来。若有类似问题应该能解决了

首先要在make memuconfig 时选上openssl有关的内容,应该还有其他的就不多说了。

下面开始添加库的操作。首先声明我使用Openwrt 没有几天,对其具体细节不甚了解。可能有说的不对的地方。

第一步:

确保/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib目录下存在  libcrypto.so

其中staging_dir是我的配置的Openwrt的编译环境。

第二步:

在你写的代码文件夹下(我写的是个test)下的Makefile里

增加:DEPENDS:=+libcrypto

就是在

define Package/test 
        SECTION:=utils  
        CATEGORY:=Utilities  
        TITLE:=test-- prints a snarky message  
        DEPENDS:=+libcrypto
endef

这个define下面。

第三步:也是在Makefile里增加:

define Package/test/install  
        $(INSTALL_DIR) $(1)/bin  
        $(CP) /lib/i386-linux-gnu/libc.so.6 $(1)/bin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/helloworld $(1)/bin/  
endef

这里多了一行$(CP)的代码。

最后一步:

在openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo下的libcrypto.provides文件里增加两行:

/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/lib
libcrypto.so.1.0.0  最后这一步对成败应该是很关键的。

时间: 2024-12-11 14:40:13

解决 Package test is missing dependencies for the following libraries: libcrypto.so.1.0.0的相关文章

Package helloworld is missing dependencies for the following libraries: libc.so.6

这个是在我在Openwrt的SDK下编译模块的时候碰到的问题. 缺少类库,然后其实我发现我的类库在系统里是存在的: locate libc.so.6 结果: /lib/i386-linux-gnu/libc.so.6 /lib64/libc.so.6 看~ 明显存在,我用的应该是上面的那个类库,然后我弄了一晚上没弄好,今天所有工作做完终于弄好了.我做的工作包括这些: 第一步: 把/lib/i386-linux-gnu/libc.so.6这个文件拷贝到/home/user/attitude/sta

OpenWRT SDK Compile Package Error : Package hello is missing dependencies for the following libraries: libc.so.6

在OpenWRT SDK 编译 hello demo的时候出现错误: Package hello is missing dependencies for the following libraries: libc.so.6 发现以前可以编译通过,现在编不过了,奇怪. 后来在网上找原因,有的说改 libc.provides 添加  libc.so.6 这样把编译的ipk安装到openwrt里运行时出错. 最后,自己发现了问题 : 我在package/hello/src下make过一下检查代码有没有

openwrt 编译软件包出现错误(is missing dependencies for the following libraries: libpthread.so.0)

install -m0755 /home/yanfa/workspace/trunk-wr703/build_dir/target-mips_r2_uClibc-0.9.33.2/lk_cnp_serial_eth/lk_cnp_serial_eth /home/yanfa/workspace/trunk-wr703/build_dir/target-mips_r2_uClibc-0.9.33.2/lk_cnp_serial_eth/ipkg-ar71xx/lk_cnp_serial_eth/b

Package Pdksh-5.12 missing

Package Pdksh-5.12 missing 安装环境 1.Redhat6.6   2.Standlone server GI(问题不局限于standlone) 问题描述 原因解释 1.利用OUI安装GI时,oracle会执行下面的命令: /bin/rpm -q --qf %{version} redhat-release 但redhat 6中Package redhat-release被redhat-release-server-6Server所替代.执行上面的命令无返回使得oracl

解决python 提示 SyntaxError: Missing parentheses in call to 'print'

刚刚学习python,练习他的输出,发现输出一个常量时报错了,如下: 发现是因为python2.X版本与python3.X版本输出方式不同造成的在python3.X的,输入内容时都要带上括号python(),而在2.X中直接输出就没有问题 第二个地方,在IDE中运行给予提示,如 解决python 提示 SyntaxError: Missing parentheses in call to 'print'

Ubuntu18.04 virutalenv报错:pip._vendor.requests.exceptions.InvalidSchema: Missing dependencies for SOCKS support.

使用virtualenv创建不同环境时,始终大面积报错,其中最重要的一行是: pip._vendor.requests.exceptions.InvalidSchema: Missing dependencies for SOCKS support. 大概报错如下: 其实很简单,虽然我有梯子,但是没有配置在terminal中配置好,只要设置为自己的代理即可: export all_proxy="https://127.0.0.1:1080/" 原文地址:https://www.cnbl

The POM for cn.e3mall:e3mall-common:jar:0.0.1-SNAPSHOT is missing, no dependency information available

[WARNING] The POM for cn.e3mall:e3mall-common:jar:0.0.1-SNAPSHOT is missing, no dependency information available[INFO] ------------------------------------------------------------------------[INFO] Reactor Summary:[INFO] [INFO] e3mall-manager .......

[Nuget] - "Runtime error: Could not load file or assembly 'System.Web.WebPages.Razor, Version=3.0.0.0'" 问题之解决

环境 项目中使用了 System.Web.WebPages.Razor, Version=3.0.0.0,Nuget 还原缺失包后自动更新至 Version=3.2.5.0,编译成功,运行失败. 错误 "/"应用程序中的服务器错误.未能加载文件或程序集"System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"或它的某一个依赖项.系统找不到

VS2013 此模板尝试加载组件程序集”NuGet.VisualStudio.interop,Version=1.0.0.0 的解决办法 ZT

情景再现 使用VS2013新建ASP.NET MVC项目时,出现下面的错误: 具体错误信息: 错误: 此模板尝试加载组件程序集 “NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.有关此问题和如何启用此模板的详细信息,请参见有关“自定义项目模板”的文档. 分析错误 既然错误信息提示模板尝试加载组件程序集,那说明NuGet.VisualStudio.Inter