Linux(CentOS7.x)学习笔记(七)软件安装

原始码安装

 

tarball安装

安装软件:ntp(network time protocol)时间服务器

-1--下载ntp tar.gz包----------------------------------------------------------------------
[root@localhost ~]# wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p13.tar.gz
[root@localhost ~]# ls
anaconda-ks.cfg  CentOS7.7  link.prac  myProject  ntp-4.2.8p13.tar.gz

-2--将下载的包解压到 /usr/local/src/-------------------------------------------------------
[root@localhost ~]# cd /usr/local/src/
[root@localhost src]# pwd
/usr/local/src
[root@localhost src]# tar -zxvf /root/ntp-4.2.8p13.tar.gz 
.............此处省略
ntp-4.2.8p13/lib/isc/ia64/include/
ntp-4.2.8p13/lib/isc/ia64/include/isc/
ntp-4.2.8p13/lib/isc/ia64/include/isc/atomic.h
ntp-4.2.8p13/lib/isc/nls/msgcat.c
[root@localhost src]# ls
ntp-4.2.8p13

-3--建立makefile,配置其安装目录为/usr/local/ntp----------------------------------

[root@localhost src]# cd ntp-4.2.8p13/
[root@localhost ntp-4.2.8p13]# vim INSTALL   <==查看INSTALL,在28行到54行之间的安装简介,可以了解如何安装的流程。
[root@localhost ntp-4.2.8p13]# ./configure --prefix=/usr/local/ntp --enable-all-clocks --enable-parse-clocks
config.status: creating evconfig-private.h
config.status: evconfig-private.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

-4--编译与安装--------------------------------------------------------------------
[root@localhost ntp-4.2.8p13]#make clean;make
[root@localhost ntp-4.2.8p13]#make check
[root@localhost ntp-4.2.8p13]#make install

 

你可能感兴趣的:(Linux系统)