06
- CentOS6.2にOpenssh 5.9p1をインストール時にRPM ビルドエラー:
- 2月 6, 2012 2
//php the_content_rss('', FALSE, '', 68); ?>
参考サイト:SSHサーバー構築(OpenSSH)
$ wget http://ftp.jaist.ac.jp/pub/OpenBSD/OpenSSH/portable/openssh-5.9p1.tar.gz
$ tar zxvf openssh-5.9p1.tar.gz
$ vi openssh-5.9p1/contrib/redhat/openssh.spec
# Do we want to disable building of x11-askpass? (1=yes 0=no)
%define no_x11_askpass 1
# Do we want to disable building of gnome-askpass? (1=yes 0=no)
%define no_gnome_askpass 1
%configure \
configure --without-zlib-version-check \
いらないファイルを削除
$ rm -rf openssh-5.9p1/contrib/aix/
$ rm -rf openssh-5.9p1/contrib/hpux/
$ rm -rf openssh-5.9p1/contrib/caldera/
$ rm -rf openssh-5.9p1/contrib/suse/
$ rm -rf openssh-5.9p1/contrib/cygwin/
$ rm -rf openssh-5.9p1/contrib/solaris/
$ tar czvf openssh-5.9p1.tar.gz openssh-5.9p1/
下記のエラーがでたので、必要なパッケージをインストール
$ rpmbuild -tb --clean openssh-5.9p1.tar.gz 警告: line 92: buildprereq is deprecated: BuildPreReq: glibc-devel, pam エラー: ビルド依存性の失敗: openssl-devel は openssh-5.9p1-1.i686 に必要とされています krb5-devel は openssh-5.9p1-1.i686 に必要とされています $ yum -y install pam-devel openssl-devel krb5-devel





