Linux(CentOS 7.x)学習ノート(七)ソフトウェアインストール

1553 ワード

オリジナルコードのインストール


 

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