In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
How to compile and generate OpenSSH rpm package in CentOS6 system? This problem may be often seen in our daily work. Through this question, I hope you can gain more. Let's take a look at the solution with the editor today.
1. Install the compiler component
Yum-y groupinstall "Development tools"
Yum-y install pam-devel rpm-build rpmdevtools zlib-devel krb5-devel tcp_wrappers tcp_wrappers-devel tcp_wrappers-libs libX11-devel xmkmf libXt-devel wget openssl-devel
2. Configure the compilation environment
Cd ~
Mkdir rpmbuild
Cd rpmbuild
Mkdir-pv {BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
3. Upgrade the current OpenSSL
Yum update openssl openssl-devel
4. Download the source package
Cd ~ / rpmbuild/SOURCES/
Wget http://mirror.jmu.edu/pub/OpenBSD/OpenSSH/portable/openssh-7.3p1.tar.gz
5. Configure spec
Cd ~ / rpmbuild/SPECS
Tar xfz.. / SOURCES/openssh-7.3p1.tar.gz openssh-7.3p1/contrib/redhat/openssh.spec
Mv openssh-7.3p1/contrib/redhat/openssh.spec openssh-7.3p1.spec
Rm-rf openssh-7.3p1
Sed-I-e "s/%define no_gnome_askpass 0/%define no_gnome_askpass 1gamma g" openssh-7.3p1.spec
Sed-I-e "s/%define no_x11_askpass 0/%define no_x11_askpass 1gamma g" openssh-7.3p1.spec
Sed-I-e "s/BuildPreReq/BuildRequires/g" openssh-7.3p1.spec
6. Compile the source code
Cd ~ / rpmbuild/SPECS
Rpmbuild-bb openssh-7.3p1.spec
7. View the generated binaries
Cd ~ / rpmbuild/RPMS/x86_64
Ls openssh-*
The above is the method of compiling and generating the rpm package of OpenSSH in the CentOS6 system, and you have to use it to know the details. If you want to read more related articles, you are welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.