LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1099|回复: 4

遇到问题了,perl的补丁

[复制链接]
发表于 2006-1-16 22:43:47 | 显示全部楼层 |阅读模式
构建临时环境最后一个文件了,竟然在打补丁的时候出错。
我的是lfs-livecd6.1.3的,因此里面的是perl-5.8.7,和lfsbook上的perl5.8.6不同。当然补丁文件也是一样的,只是那个 6 改成 7 而已。但是在输入完命令:
patch -Np1 -i ../perl-5.8.7-libc-1.patch
回车,出现提示:

can't find file to patch at input line 11
perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------------
|Submitted By:Anderson Lizardo <andersonlizardo(at)yahoo(dot)com(dot)br>
|Date:2003-09-06
|Initial Package Version:5.8.0
|Origin:based on currint LFS-BOOK patch (perl-5.8.0-libc-2.patch)
|Description:this patch adapts some hard-wired paths to the C library.
|                   It uses the $prefix variable to locate the correct libc.
|
|diff -uNr perl-5.8.0.orig/hints/linux.sh perl-5.8.0/hints/linux.sh
|--- perl-5.8.0.orig/hints/linux.sh       2002-06-05 23:46:00.000000000 +1000
|+++ perl-5.8.0/hints/linux.sh  2003-02-19 16:32:18.000000000 +1100
--------------------------------------
File to patch:


如何处理???在线等着。
发表于 2006-1-16 22:50:35 | 显示全部楼层

patch -Np1 -i ../perl-5.8.7-libc-1.patch
不是
patch -Np1 -i patch -Np1 -i ../perl-5.8.7-libc-1.patch
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-16 22:58:01 | 显示全部楼层
不好意思,多写了两次。我知道的。但是就是出现上面的问题啊。
回复 支持 反对

使用道具 举报

发表于 2006-1-16 23:20:16 | 显示全部楼层
patch -Np0 -i ../perl-5.8.7-libc-1.patch
patch -Np1 -i ../perl-5.8.7-libc-1.patch
patch -Np2 -i ../perl-5.8.7-libc-1.patch

都试试。记得要在 perl-5.8.7 目录里边执行。呵呵
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-16 23:44:28 | 显示全部楼层
啊~~~~~~~~~~~
脑子有点乱了,看来要停下来休息一下了。
天啊,犯了如此低级的错误啊。不可饶恕!!!
我竟然没有到perl-5.8.7 目录里,刚解压完就 执行了的.
真是。。。。。。
给大家添麻烦。以后不会再出现类似情况。
非常感谢。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表