ubuntu下ltib安裝問題(解決)

ubuntu 下ltib 安裝問題linux


OS: Ubuntu 12.04shell


ltib安裝包:Freescale iMX6/L3.0.35_4.1.0_130816_source.tar.gzubuntu


第一次執行./ltib 顯示未安裝的軟件包bash

***********************************flex

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

***********************************ui

全部的安裝包安裝均可以用sudo apt-get install package_nameurl

其中ncurses-devel  安裝 sudo apt-get install libncurses5-deves5

最終安裝完全部的以後,會提示 zlib沒有安裝。(sudo apt-get install zlib 提示已經安裝過)spa

怎麼辦呢?(高潮來了,哈哈!)code

      其緣由是系統找不到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!

相關文章
相關標籤/搜索