原因:系统里面没有patch命令。
解决方案:安装patch命令。
[oct1158@fed41-bh8f7e0 ~]$ sudo dnf install patch
[sudo] password for oct1158:
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
patch x86_64 2.7.6-25.fc41 fedora 266.7 KiB
Installing dependencies:
ed x86_64 1.20.2-2.fc41 fedora 146.9 KiB
Transaction Summary:
Installing: 2 packages
Total size of inbound packages is 213 KiB. Need to download 213 KiB.
After this operation, 414 KiB extra will be used (install 414 KiB, remove 0 B).
Is this ok [y/N]: y
[1/2] ed-0:1.20.2-2.fc41.x86_64 100% | 256.5 KiB/s | 81.8 KiB | 00m00s
[2/2] patch-0:2.7.6-25.fc41.x86_64 100% | 382.9 KiB/s | 131.0 KiB | 00m00s
--------------------------------------------------------------------------------
[2/2] Total 100% | 307.9 KiB/s | 212.8 KiB | 00m01s
Running transaction
[1/4] Verify package files 100% | 666.0 B/s | 2.0 B | 00m00s
[2/4] Prepare transaction 100% | 4.0 B/s | 2.0 B | 00m00s
[3/4] Installing ed-0:1.20.2-2.fc41.x86 100% | 16.2 MiB/s | 149.2 KiB | 00m00s
[4/4] Installing patch-0:2.7.6-25.fc41. 100% | 484.2 KiB/s | 268.2 KiB | 00m01s
Complete!
[oct1158@fed41-bh8f7e0 ~]$ patch -v
GNU patch 2.7.6
Copyright (C) 2003, 2009-2012 Free Software Foundation, Inc.
Copyright (C) 1988 Larry Wall
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Larry Wall and Paul Eggert
[oct1158@fed41-bh8f7e0 ~]$