编译hal 出现RPM build errors: File not found: 的错误
来源:互联网 发布:新浪集团网络运营 编辑:程序博客网 时间:2024/06/16 00:00
最近在编译一些包,编译到hal这个包的时候卡住了,提示:“ File not found: /var/tmp/hal-root/usr/bin/hal-setup-keymap”,之前编译别的包也有出现 File not found 类似的错误,查看一下spec文件中使用到这个hal-setup-keymap的地方
原来时生成hal-gnome要用到这个文件,安装目录是/usr/bin
为了保险起见,同时在系统里用命令又查了一下确保无误:
这个文件属于hal-gnome 这个包,查一下这个包的信息:
hal-gnome 是由hal 这个源码包编译出来,说白了,是自身缺少hal-setup-keymap这个文件,
于是, SPEC目录下rpmbuild -bp hal.spec ,在BUILD/hal-0.5.8.1目录下开始编译,
查看了一下spec文件,按照它的步骤,首先autoreconf
然后configure,加部分参数: ./configure --disable-docbook-docs --with-os-type=redhat --disable-policy-kit --with-keymaps
接着make
然后查看一下编译结果,是有hal-setup-keymap这个文件的
这就奇怪了,编译参数加上了,结果也有hal-setup-keymap了,为什么生成rpm包的时候提示找不到包呢?
于是一整天都在被这个问题困扰,各种排查,各种查看
就在几乎想要放弃的时候,在configure脚本中发现了一些蛛丝马迹
通过这段脚本看到没? 光在configure的时候加上--with-keymaps 还不行,还得系统中安装gperf 这个包,
果断安装,然后chroot环境中编译
顺利通过!
虽然时解决的一个小的Bug,但是值得深思的地方还是很多,之前看过介绍,说程序员提升自身能力最有效的途径就是看源码,所以还得多看多练多想多实践。
这篇文章写的匆忙,文中有什么不对的地方还请不吝赐教,我好及时改正,大家共同进步。
- 编译hal 出现RPM build errors: File not found: 的错误
- Flex Builder 编译老出现 file not found 的错误
- txt文件导入数据库,出现file not found错误。
- nginx+php-fpm出现file not found错误
- ReactNative出现错误问题'React/RCTBridgeModule.h' file not found
- 编译apprtc 出现如下错误 File "./build/build_app_engine_package.py"
- macbook 编译时出现stdio.h file not found 的解决办法
- linux 编译中required file `./ltmain.sh' not found 错误的解决办法
- 编译linux内核出现mkimage command not found错误
- required file `build/ltmain.sh' not found
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- nginx File not found 错误
- gcc在出现错误的时候停止编译 -Wfatal-errors
- mac 命令行里 编译 链接 出现xcrun: error: active developer&nbs
- 遍历Map的四种方法
- linux查看系统版本信息
- UVA 1420 - Priest John's Busiest Day 贪心
- 数据库入门速成---ORACLE (01) Oracle DB基础
- 编译hal 出现RPM build errors: File not found: 的错误
- HUD 1255——覆盖的面积(线段树+面积并多次+离散化)
- Array 和 ArrayList 的区别
- sql常用作业定义的T-SQL模板
- 性能指标分析
- APP的理解
- flume 日志收集单节点
- Chrome 控制台新玩法-console显示图片以及为文字加样式
- Android:junit测试的步骤