LinuxSir.cn,穿越时空的Linuxsir!

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

ubuntu11.04安LFS7.0 安装到5.5节GCC(pass1)时,gcc-4.6.1-cross_compile-1.patch安不上

[复制链接]
发表于 2012-1-14 15:36:00 | 显示全部楼层 |阅读模式
一直按照7.0手册做,这步按不上

宿主是ubuntu11.04

=======
lfs@ubuntu:/mnt/lfs/sources$ patch -Np1 -i /media/gcc-4.6.1-cross_compile-1.patch
The program 'patch' is currently not installed.  To run 'patch' please ask your administrator to install the package 'patch'

lfs@ubuntu:/mnt/lfs/sources$ cd gcc-4.6.1
lfs@ubuntu:/mnt/lfs/sources/gcc-4.6.1$ patch -Np1 -i /media/gcc-4.6.1-cross_compile-1.patch
The program 'patch' is currently not installed.  To run 'patch' please ask your administrator to install the package 'patch'

lfs@ubuntu:/mnt/lfs/sources/gcc-4.6.1$ su
Password:
root@ubuntu:/mnt/lfs/sources/gcc-4.6.1# patch -Np1 -i /media/gcc-4.6.1-cross_compile-1.patch
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.2.44

=======

怎么办呢?
 楼主| 发表于 2012-1-14 15:39:42 | 显示全部楼层
这个是它的上面

=======
lfs@ubuntu:/mnt/lfs/sources$ tar -jxf /media/mpfr-3.1.0.tar.bz2
lfs@ubuntu:/mnt/lfs/sources$ mv -v mpfr-3.1.0 mpfr
`mpfr-3.1.0' -> `mpfr'
lfs@ubuntu:/mnt/lfs/sources$ tar -jxf /media/gmp-5.0.2.tar.bz2
lfs@ubuntu:/mnt/lfs/sources$ mv -v gmp-5.0.2 gmp
`gmp-5.0.2' -> `gmp'
lfs@ubuntu:/mnt/lfs/sources$ tar -zxf /media/mpc-0.9.tar.gz
lfs@ubuntu:/mnt/lfs/sources$ mv -v mpc-0.9 mpc
`mpc-0.9' -> `mpc'
lfs@ubuntu:/mnt/lfs/sources$ tar -jxf /media/gcc-4.6.1.tar.bz2
……这里向下就是楼上了
========
回复 支持 反对

使用道具 举报

发表于 2012-1-14 18:28:01 | 显示全部楼层
Post by yxg789xg;2158708
一直按照7.0手册做,这步按不上

宿主是ubuntu11.04

=======
lfs@ubuntu:/mnt/lfs/sources$ patch -Np1 -i /media/gcc-4.6.1-cross_compile-1.patch
The program 'patch' is currently not installed.  To run 'patch' please ask your administrator to install the package 'patch'

lfs@ubuntu:/mnt/lfs/sources$ cd gcc-4.6.1
lfs@ubuntu:/mnt/lfs/sources/gcc-4.6.1$ patch -Np1 -i /media/gcc-4.6.1-cross_compile-1.patch
The program 'patch' is currently not installed.  To run 'patch' please ask your administrator to install the package 'patch'

lfs@ubuntu:/mnt/lfs/sources/gcc-4.6.1$ su
Password:
root@ubuntu:/mnt/lfs/sources/gcc-4.6.1# patch -Np1 -i /media/gcc-4.6.1-cross_compile-1.patch
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

command-not-found version: 0.2.44

=======

怎么办呢?


看样子是patch没有安装,你先apt-get install patch看看,俺不用ubuntu,不知道上面的命令对不对。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-1-14 19:19:31 | 显示全部楼层
Post by 独钓寒江雪;2158717
看样子是patch没有安装,你先apt-get install patch看看,俺不用ubuntu,不知道上面的命令对不对。

大侠,你说对了 TAT,这一下午找的试的都不及你一句话啊,小弟对你的崇拜犹如滔滔江水,………依法不可收拾!

=====
额,另外,你是怎么看出来的啊?

=====
这样算是成功打上吧?
lfs@ubuntu:/mnt/lfs/sources/gcc-4.6.1$ patch -Np1 -i ../gcc-4.6.1-cross_compile-1.patch (没看到独钓时,做实验,把补丁放到了$LFS/sources里)
patching file configure
patching file configure.ac
=====
回复 支持 反对

使用道具 举报

发表于 2012-1-14 20:27:16 | 显示全部楼层
oot@ubuntu:/mnt/lfs/sources/gcc-4.6.1# patch -Np1 -i /media/gcc-4.6.1-cross_compile-1.patch
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:

翻译一下
oot@ubuntu:/mnt/lfs/sources/gcc-4.6.1# 补丁 -Np1 -i /media/gcc-4.6.1-cross_compile-1.patch
对不起,命令无法找到!,请发个 bug 报告 到 https://bugs.launchpad.net/comma ... 下错误内容:

这条命令中的唯一一个命令就是 patch,所以,很显然,你没有 patch 命令。

sudo apt-get install patch 便可。

建议楼主先补下英语再弄,否则看不懂提示害死人呀。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-1-14 21:16:32 | 显示全部楼层
很感谢! 英语太烂,被bug report 给虎住了!
就算我先明白这句了,但不经历这次,我还是不会往这方面想,只会认为是我哪里弄错了,汗
回复 支持 反对

使用道具 举报

发表于 2012-1-17 21:49:43 | 显示全部楼层
你运行命令的第一行就显示patch没安装!report什么的不用看也知道啊。
回复 支持 反对

使用道具 举报

发表于 2012-1-17 21:55:00 | 显示全部楼层
你运行命令的第一行就显示patch没安装!report什么的不用看也知道啊。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-1-18 15:10:48 | 显示全部楼层
Post by whdxwym;2158851
你运行命令的第一行就显示patch没安装!report什么的不用看也知道啊。
哈哈,。。。。。惭愧
回复 支持 反对

使用道具 举报

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

本版积分规则

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