海思Hi3518内核编译过程中问题点记录
2015-10-14 23:05
387 查看
1、已经安装了交叉编译环境,并且/etc/profile里面也有记录编译器的环境变量,但是编译时还是提示bash:arm-hisiv100nptl-linux-gcc未找到。
这个的解决方案为:在/etc/bashrc文件里面添加编译器的路径。然后source /etc/bashrc.
出现问题的原因应该是/etc/profile里面的环境变量是对应所有用户的,并且第一次登陆的时候读取。/etc/bashrc里面是用户使用bash的时候读取的环境变量。应该要更新
这个文件执行bash命令时才能找到。
2、出现如下错误:
"mkimage" command not found - U-Boot images will not be built
make[2]: *** [arch/arm/boot/uImage] Error 1
make[1]: *** [uImage] Error 2
很明显是mkimage这个东西找不到。
先说下下mkimage这个东西,它会在uboot源码的/tools路径下存在(需要先编译uboot源码),它可以用来制作压缩的或是不压缩的内核镜像文件。
解决方法:
1.把uboot/tools路径加入到环境变量中(不推荐)
2.把uboot/tools下的mkimage拷贝到/usr/bin路径下即可。
3、编译文件系统的时候出现/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory:
是因为64位系统中安装了32位程序
解决方法:
yum install glibc.i686
重新安装以后还有如下类系错误 再继续安装包
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
yum install libstdc++.so.6
还有如下类系错误 再继续安装包
error while loading shared libraries: libz.so.1:
cannot open shared object file: No such file or directory
yum install zlib.i686
这个的解决方案为:在/etc/bashrc文件里面添加编译器的路径。然后source /etc/bashrc.
出现问题的原因应该是/etc/profile里面的环境变量是对应所有用户的,并且第一次登陆的时候读取。/etc/bashrc里面是用户使用bash的时候读取的环境变量。应该要更新
这个文件执行bash命令时才能找到。
2、出现如下错误:
"mkimage" command not found - U-Boot images will not be built
make[2]: *** [arch/arm/boot/uImage] Error 1
make[1]: *** [uImage] Error 2
很明显是mkimage这个东西找不到。
先说下下mkimage这个东西,它会在uboot源码的/tools路径下存在(需要先编译uboot源码),它可以用来制作压缩的或是不压缩的内核镜像文件。
解决方法:
1.把uboot/tools路径加入到环境变量中(不推荐)
2.把uboot/tools下的mkimage拷贝到/usr/bin路径下即可。
3、编译文件系统的时候出现/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory:
是因为64位系统中安装了32位程序
解决方法:
yum install glibc.i686
重新安装以后还有如下类系错误 再继续安装包
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
yum install libstdc++.so.6
还有如下类系错误 再继续安装包
error while loading shared libraries: libz.so.1:
cannot open shared object file: No such file or directory
yum install zlib.i686
相关文章推荐
- ndk-build
- 地图定位异常问题
- struts2标签Tags的用法
- Spring官网改版后下载
- 新版WampServer项目路径前面没有localhost
- 饭碗是要靠抢的
- Sql Server 分页查询
- C++文件(夹)选择对话框
- 安卓TV开发(十) 智能电视开发之在线视频直播
- 安卓TV开发(十) 智能电视开发之在线视频直播
- 汇编语言 第三版 王爽 实验9 根据材料编程
- 流程控制
- webform--常用的控件
- 垃圾收集算法
- 【转载】阎焱:90后创业是扯淡 大量O2O和P2P公司濒临倒闭
- 剑指offer第十一题【二进制中1的个数】c++实现
- win8远程 凭证不能工作
- java中网络socket编程简单例子,用于读写字符
- Objective-C中的一些细枝末节(更新)
- 12321能被写成______种两个质数相加的形式