日期:2014-05-16  浏览次数:20634 次

linux patch的问题
在linux中使用命令: cat ../download/binutils-2.15-rtems-20040519.diff|patch -p1
提示错误: -bash: patch: command not found.
急求高手帮忙解答。谢谢!!!

------解决方案--------------------
提示错误: -bash: patch: command not found.
------------
很明显啊 你的系统没有patch这个命令哦!

你用的什么linux 如果是redhat 这样安装试试yum -y install patch
如果是debian系的 这样试试apt-get install patch

不过在我试用的linux中好像都默认有这个命令哇
------解决方案--------------------
干嘛要用那么古董的linux哦 如果你真要用redhat系的
那你就选择fedora14 RHEL5.6 RHEL6 CentOS5.5等

试试这个rpm包
rpm -ivh ftp://ftp.muug.mb.ca/mirror/redhat/redhat/linux/9/en/os/i386/RedHat/RPMS/patch-2.5.4-16.i386.rpm