1)解压L3.0.35_1.1.0_121218_source.tar.gz

2)cd  L3.0.35_1.1.0_121218_source ,执行./install
3)  复制 patch-ltib-ubuntu12.04.sh 到 litb文件夹,
     修改权限,sudo chmod 777  patch-ltib-ubuntu12.04.sh ,
     执行:./ patch-ltib-ubuntu12.04.sh 
4)执行:./ltib
错误1:make[1]: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/bld/linux'
gcc -g -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/elftosb2 -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/keygen -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/sbtool -I/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/common -DLinux -c /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/common/AESKey.cpp
In file included from /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/common/AESKey.h:10:0,
from /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/common/AESKey.cpp:8:
/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/common/stdafx.h:30:36: fatal error: /usr/include/sys/types.h: No such file or directory
compilation terminated.
make[1]: *** [AESKey.o] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/bld/linux'
make: *** [all] Error 2
error: Bad exit status from /home/think/imx6/ltib/tmp/rpm-tmp.51338 (%build) RPM build errors:
Bad exit status from /home/think/imx6/ltib/tmp/rpm-tmp.51338 (%build)
Build time for elftosb: 0 seconds Failed building elftosb
Died at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
main::host_checks:1447
main:554
以上错误是因为/opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0/common/stdafx.h,包含的头文件types.h的路径
不对导致,修改stdafx.h文件:
1)cd /opt/freescale/pkgs/
2)tar zxvf elftosb-1.1.0.tar.gz 
3)修改stdafx.h文件,#include"/usr/include/sys/types.h" 改成 #include"/usr/include/i386-linux-gnu/sys/types.h"
4)重新打包:
tar zcvf elftosb-1.1.0.tar.gz elftosb-1.1.0
5)rm -rf /opt/freescale/ltib/usr/src/rpm/BUILD/elftosb-1.1.0
6)./ltib -m config
执行通过,祝贺一下。
./ltib install 出错:
  • /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /lib/libc.so.6

    /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /usr/lib/libc_nonshared.a

    /opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/../lib/gcc/arm-fsl-linux-gnueabi/4.6.2/../../../../arm-fsl-linux-gnueabi/bin/ld: cannot find /lib/ld-linux.so.3

    解决方法:

    编辑 ltib/dist/lfs-5.1/base_libs/base_libs.spec

    找到以下行

    perl -w -e '

    @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV

    exit(0) unless @ARGV;

    删除.“ @ARGV = grep { `file $_` =~ m,ASCII C program text, } @ARGV”以及"exit(0) unless @ARGV;"

    保存退出。

ubuntu 12.04.2 基于 L3.0.35_1.1.0_121218_source LTIB 问题汇总的更多相关文章

  1. 在 Ubuntu 12.04 上安装 GitLab6.0

    安装环境: 操作系统:    Ubuntu 12.4 LTS 英文 数据库:        mysql5.5.32 web服务器: nginx1.4.1 首先, 添加git和nginx的ppa,并升级 ...

  2. Ubuntu 12.04安装VMware Workstation8.0.3

    2012-06-18 12:52   Ubuntu安装VMware Workstation8.0.3   由于使用Ubuntu的人比较少,网上关于Ubuntu的资料也很少,笔者在安装VMware Wo ...

  3. Ubuntu 12.04下安装thrift 0.9

    Thrift这里就不介绍了,只说一句--Facebook很牛逼. 我这里安装Thrift主要是为Accumulo数据库作准备,所以java语言为必选项. 具体安装参考官方Apache Thrift R ...

  4. Ubuntu 12.04+DarwinStreamingSrvr6.0.3 架设流媒体服务器

    1.安装Ubuntu 12.04操作系统,网上很多教程.. 2.打开终端,下载darwin源代码DarwinStreamingSrvr6.0.3-Source.tar,补丁patch dss-6.0. ...

  5. Ubuntu 12.04 64bit 配置完android 5.0编译环境后出现“could not write bytes: Broken pipe.”而无法进入输入帐号密码的登陆界面

    Ubuntu 12.04 64bit 配置完android 5.0编译环境后出现“could not write bytes: Broken pipe.”而无法进入输入帐号密码的登陆界面.上网问了问百 ...

  6. Ubuntu 12.04下spark1.0.0 集群搭建(原创)

    spark1.0.0新版本的于2014-05-30正式发布啦,新的spark版本带来了很多新的特性,提供了更好的API支持,spark1.0.0增加了Spark SQL组件,增强了标准库(ML.str ...

  7. Ubuntu 12.04下Hadoop 2.2.0 集群搭建(原创)

    现在大家可以跟我一起来实现Ubuntu 12.04下Hadoop 2.2.0 集群搭建,在这里我使用了两台服务器,一台作为master即namenode主机,另一台作为slave即datanode主机 ...

  8. 安装Redmine 2.3.0(Ubuntu 12.04 Server)

    怀揣着为中小企业量身定做一整套开源软件解决方案的梦想开始了一个网站的搭建.http://osssme.org/ 安装Redmine 2.3.0(Ubuntu 12.04 Server) 翻译源\参考源 ...

  9. GAMIT 10.50在Ubuntu 12.04系统下的安装

    转载于:http://www.itxuexiwang.com/a/liunxjishu/2016/0225/162.html?1456480908 摘要:GAMIT/GLOBK是一套安装于Unix/L ...

随机推荐

  1. 【转】Monkey测试2——Monkey测试策略

    Monkey的测试策略 一. 分类 Monkey测试针对不同的对象和不同的目的采用不同的测试方案,首先测试的对象.目的及类型如下: 测试的类型分为:应用程序的稳定性测试和压力测试 测试对象分为:单一a ...

  2. 我的第六个java程序 spring-bean

    配置文件 Beans.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns=&quo ...

  3. jQuery一步一步实现跨浏览器的可编辑表格,支持IE、Firefox、Safari、

    脚 本 之 家 www.jb51.net 脚本云 专题 素材下载 电子书 软件下载 源码下载 服务器常用软件 a5交易 首页 网页制作 脚本专栏 脚本下载 网络编程 数据库 CMS教程 电子书籍 平面 ...

  4. jfinal 使用类里的方法

    package demo; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; imp ...

  5. OpenCV中Kinect的使用(2)

    接OpenCV中Kinect的使用(1),主要讲述OpenCV中关于Kinect接口(类 VideoCapture )的一些使用介绍. 类 VideoCapture 支持Kinect传感器.使用 Vi ...

  6. ssh 面试

    Struts1工作原理1. 初始化:struts框架的总控制器ActionServlet是一个Servlet,它在web.xml中配置成自动启动的Servlet,在启动时总 控制器会读取配置文件(st ...

  7. 现代 PHP 新特性系列

    生成器的创建和使用 http://laravelacademy.org/post/4317.html

  8. C# 如何判断系统是32位还是64位

    摘自:http://www.cnblogs.com/tom-tong/archive/2012/03/12/2392173.html public static int GetOSBit() { tr ...

  9. iOS-获取当前网页的 url 和 title 和 html

    本文转载至 http://www.th7.cn/Program/IOS/201310/156916.shtml   @property (strong,nonatomic)UIWebView *web ...

  10. css 变手

    用css 添加手状样式,鼠标移上去变小手,变小手 用css 添加手状样式,鼠标移上去变小手,变小手 cursor:pointer; 用JS使鼠标变小手onmouseover(鼠标越过的时候) onmo ...