Linux下编译LTIB时找不到zlib的解决办法

一、问题一
最近在使用基于ARM Cortex-A9内核的飞思卡尔i.MX6Q四核处理器开发一款产品,在ubuntu 12.04上编译LTIB时遇到了找不到zlib的问题(在此之前已经安装了必须的各种库文件)。

错误信息如下:

ltib cannot be run because one or more of the host packages needed to run it
are either missing or out of date or not in ltib’s standard path. Please
install/upgrade these packages on your host. If you have your own utilities
in non-standard paths, please add an entry into the .ltibrc file for example:

%path_std
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/my/own/exes

Package Minimum ver Installed info
——- ———– —————
zlib 0 not installed

Died at ./ltib line 1409.
traceback:
main::host_checks:1409
main:554

Started: Tue Dec 20 16:24:21 2016
Ended: Tue Dec 20 16:24:21 2016
Elapsed: 0 seconds

Build Failed

Exiting on error or interrupt

问题原因:在用ubuntu12.04编译LTIB时候,需要安装脚本patch-ltib-ubuntu12.04.sh。

二、问题二

在网站https://community.nxp.com/docs/DOC-93455下载patch-ltib-ubuntu12.04.sh文件。

Script which patches the ltib folder on Ubuntu 12.04.

Steps:
cp patch-ltib-ubuntu12.04.sh your ltib folder
cd your ltib folder
chmod +x patch-ltib-ubuntu12.04.sh
./patch-ltib-ubuntu12.04.sh

最后一步执行脚本时出现错误:

正在解析主机 community.freescale.com (community.freescale.com)… 192.88.156.33
正在连接 community.freescale.com (community.freescale.com)|192.88.156.33|:443… 已连接。
错误: 没有匹配的证书主体别名 (Subject Alternative Name)。
请求的主机名为 “community.freescale.com”。
要以不安全的方式连接至 community.freescale.com,使用“–no-check-certificate”。

解决:打开脚本patch-ltib-ubuntu12.04.sh,在wget -O ubuntu-ltib-patch.tgz https://community.freescale.com/servlet/JiveServlet/downloadBody/93454-102-3-2834/ubuntu-ltib-patch.tgz后面添加–no-check-certificate即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值