免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1136 | 回复: 1
打印 上一主题 下一主题

使用diff补丁文件出现的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-10 16:21 |只看该作者 |倒序浏览
[root@rs1 /usr/src/linux]# patch  -p1 <  hidden-2.6.9-1.diff
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -ur v2.6.9/linux/Documentation/filesystems/proc.txt linux/Documentation/filesystems/proc.txt
|--- v2.6.9/linux/Documentation/filesystems/proc.txt    2004-10-19 10:00:33.000000000 +0300
|+++ linux/Documentation/filesystems/proc.txt   2004-10-19 11:53:53.438336280 +0300
--------------------------
File to patch:

为什么会这样啊 ?     我改怎么做呢?   内核是2.6.9的

论坛徽章:
0
2 [报告]
发表于 2006-07-10 16:55 |只看该作者
解压缩 一个官方内核, 然后打补丁。 不要用发行版带的内核打补丁, 你都甚至无法知道它打过多少补丁了。

另外, 补丁文件不要放在解压之后的内核目录中, 放在上一层或者别的什么地方

cd linux-2.6.9
patch -p1 < ../patch-xxx-2.6.9
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP