ubuntu下ltib安装问题(解决)

ubuntu 下ltib 安装问题


OS: Ubuntu 12.04


ltib安装包:Freescale iMX6/L3.0.35_4.1.0_130816_source.tar.gz


第一次执行./ltib 显示未安装的软件包

***********************************

zlib                   0             not installed
zlib-devel             0             not installed
rpm                    0             not installed
rpm-build              0             not installed
ncurses-devel          0             not installed
m4                     0             not installed
bison                  0             not installed
tcl

***********************************

所有的安装包安装都可以用sudo apt-get install package_name

其中ncurses-devel  安装 sudo apt-get install libncurses5-dev

最终安装完所有的之后,会提示 zlib没有安装。(sudo apt-get install zlib 提示已经安装过)

怎么办呢?(高潮来了,哈哈!)

      其原因是系统找不到32位的zlib, 找一下/lib/i386-linux-gnu 目录里面有没有libz.so  

如果没有i386-linux-gnu目录,则安装sudo apt-get install ia32-libs


最后记得打一个补丁patch-ltib-ubuntu12.04.sh


操作url:https://community.freescale.com/docs/DOC-93455


error: /bin/bash: texi2dvi: command not found   


解决办法: 安装texinfo、texlive

sudo apt-get install texinfo
sudo apt-get install texlive


之后执行./ltib

错误:

These packages failed to build:

flex 

Build Failed


解决办法:

[Remove directory]

sudo rm -Rf /opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37
sudo rm -Rf /opt/freescale/ltib/usr/src/rpm/BUILD/libtool-2.4.2

然后再执行./ltib



errors: 

These packages failed to build:

mtd-utils

Build Failed

********

1. compr_lzo.c:31:23: fatal error: lzo/lzo1x.h: No such file or directory

安装

sudo apt-get install liblzo2-dev

删除/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils

执行./ltib


2 uuid/uuid.h No such file or directory

安装

sudo apt-get install uuid-dev

删除/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils

执行./ltib


------------------------------

ok!


你可能感兴趣的:(ltib安装)