本帖最后由 philipfan 于 2015-3-4 00:43 编辑
本人是新人,之前没用过LINUX系统,最近开始结识ubuntu kylin操作系统,由于工作需要想研究一下NTP服务器架设和使用。安装好操作系统以后,发现没有NTP服务,需自己安装,于是从网上找到资料开始安装。
安装方式采用源代码编译安装。具体如下:
3、源码编译安装
# wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.6p4.tar.gz
# tar zxvf ntp-4.2.6.tar.gz
# cd ntp-4.2.6
# ./configure –prefix=/usr/local/ntp –enable-all-clocks –enable-parse-clocks
# make && make install
make install之后就出错了,显示如下:
philip@philip-ThinkPad-X61:~/ntp-4.2.8p1$ make install
cd ./html && \
../scripts/build/checkHtmlFileDates
cd . && \
./scripts/build/checkChangeLog
make install-recursive
make[1]: Entering directory ‘/home/philip/ntp-4.2.8p1’
Making install in sntp
make[2]: Entering directory ‘/home/philip/ntp-4.2.8p1/sntp’
[ ! -r ./../COPYRIGHT ] \
|| [ check-COPYRIGHT-submake -nt ./../COPYRIGHT ] \
|| make check-COPYRIGHT-submake
make install-recursive
make[3]: Entering directory ‘/home/philip/ntp-4.2.8p1/sntp’
Making install in include
make[4]: Entering directory ‘/home/philip/ntp-4.2.8p1/sntp/include’
make[5]: Entering directory ‘/home/philip/ntp-4.2.8p1/sntp/include’
make[5]: Nothing to be done for ‘install-exec-am’.
make[5]: Nothing to be done for ‘install-data-am’.
make[5]: Leaving directory ‘/home/philip/ntp-4.2.8p1/sntp/include’
make[4]: Leaving directory ‘/home/philip/ntp-4.2.8p1/sntp/include’
Making install in scripts
make[4]: Entering directory ‘/home/philip/ntp-4.2.8p1/sntp/scripts’
make[5]: Entering directory ‘/home/philip/ntp-4.2.8p1/sntp/scripts’
make[5]: Nothing to be done for ‘install-exec-am’.
make[5]: Nothing to be done for ‘install-data-am’.
make[5]: Leaving directory ‘/home/philip/ntp-4.2.8p1/sntp/scripts’
make[4]: Leaving directory ‘/home/philip/ntp-4.2.8p1/sntp/scripts’
Making install in libevent
make[4]: Entering directory ‘/home/philip/ntp-4.2.8p1/sntp/libevent’
make install-am
make[5]: Entering directory ‘/home/philip/ntp-4.2.8p1/sntp/libevent’
make[6]: Entering directory ‘/home/philip/ntp-4.2.8p1/sntp/libevent’
test -z “/usr/local/ntp/bin” || /bin/mkdir -p “/usr/local/ntp/bin”
/bin/mkdir: 无法创建目录”/usr/local/ntp”: 权限不够
Makefile:1235: recipe for target ‘install-dist_binSCRIPTS’ failed
make[6]: *** [install-dist_binSCRIPTS] Error 1
make[6]: Leaving directory ‘/home/philip/ntp-4.2.8p1/sntp/libevent’
Makefile:2132: recipe for target ‘install-am’ failed
make[5]: *** [install-am] Error 2
make[5]: Leaving directory ‘/home/philip/ntp-4.2.8p1/sntp/libevent’
Makefile:2126: recipe for target ‘install’ failed
make[4]: *** [install] Error 2
make[4]: Leaving directory ‘/home/philip/ntp-4.2.8p1/sntp/libevent’
Makefile:905: recipe for target ‘install-recursive’ failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory ‘/home/philip/ntp-4.2.8p1/sntp’
Makefile:1235: recipe for target ‘install’ failed
make[2]: *** [install] Error 2
make[2]: Leaving directory ‘/home/philip/ntp-4.2.8p1/sntp’
Makefile:553: recipe for target ‘install-recursive’ failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory ‘/home/philip/ntp-4.2.8p1’
Makefile:866: recipe for target ‘install’ failed
make: *** [install] Error 2
如何才能正确安装呢???