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. JavaScript 对大小写敏感。

    JavaScript 对大小写是敏感的. 当编写 JavaScript 语句时,请留意是否关闭大小写切换键. 函数 getElementById 与 getElementbyID 是不同的. 同样,变 ...

  2. freemark 页面静态化

    1. 页面静态化是什么? 页面静态化有非常多含义,在WEB开发中.静态网页一般理解为站点中大部分超级链接所引用的页面是单独的HTML静态页面文件(如.htm..html等页面文件,html语言本身是静 ...

  3. 转:SSD详解

    原文:http://blog.csdn.net/a8039974/article/details/77592395, http://blog.csdn.net/jesse_mx/article/det ...

  4. ios 关于collectionView.performBatchUpdates()方法 --时时更新

    今天想实现一个简单的collectionView动画效果,查阅相关资料发现,实现 collectionView.performBatchUpdates()方法即可,于是掉坑里了. 文档: public ...

  5. Eclipse集成resin服务器

    就我遇到的问题来说吧: 1. resin-pro-4.0.36去官网下载,目前这是最新版,27M 2. Eclipse安装Resin服务器的插件 Help->Install New Soft-& ...

  6. [Unity3D]Unity3D游戏开发之伤害数值显示

    大家好,我是秦元培,欢迎大家关注我的博客,我的博客地址是blog.csdn.net/qinyuanpei.众所周知,在RPG游戏策划中最为重要的一个环节是数值策划.数值策划是一个关于游戏平衡方面的概念 ...

  7. windows下sshfs挂载远程文件夹-server could not connect故障解决

    使用sshfs挂载server上面的文件夹到windows中.轻松方便. 在之前的系统上挂载.没出问题. 近期买了块固态硬盘.装了个系统. 结果在系统上执行sshfs时报例如以下错误: 事实上非常ea ...

  8. JS将秒转换为 天

    function SecondToDate(msd) {             var time =msd             if (null != time && " ...

  9. CAS 源码编译

    准备 :gradle   idea 第一次用Idea 还是有点不熟悉呀,还是eclipse 顺手! 哈哈 下载源码  :我的是4.2.7 解压 导入idea 重点: 调试时候在写 .没时间

  10. error C1853: “Debug\BigBuffer.pch”预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(或相反)

    <pre id="best-content-1299104064" mb-10"="" style="font-size: 14px; ...