Centos6下编译openssh8.8提示cannot stat contrib/redhat/sshd.pam.old’: No such file or directory 解决办法

Centos6下编译openssh8.8会出现以下错误:

install: cannot stat `contrib/redhat/sshd.pam.old': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.mJYxRe (%install)
RPM build errors:
line 94: prereq is deprecated: PreReq: initscripts >= 5.00
Bad exit status from /var/tmp/rpm-tmp.mJYxRe (%install)

正常来说,PreReq: initscripts >= 5.00错误直接注释掉即可。但是注释掉后仍然会出现以下错误:

install: cannot stat `contrib/redhat/sshd.pam.old': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.mJYxRe (%install)

后面解包分析,发现是由于openssh8.8安装包缺少文件导致的,具体如下:

openssh8.8缺少了sshd.pam.old和sshd.init.old文件。

解决办法:

将之前版本内的sshd.pam.old和sshd.init.old文件放进压缩包,然后正常打包即可。
» 本文链接:Centos6下编译openssh8.8提示cannot stat contrib/redhat/sshd.pam.old’: No such file or directory 解决办法
» 转载请注明来源:刺客博客
» 如果文章失效或者安装失败,请留言进行反馈。