Jquery中文網 www.twdanq.live
Jquery中文網 >  服務器技術  >  DNS服務器  >  正文 centos6.2中編譯安裝bind-9.9.0

centos6.2中編譯安裝bind-9.9.0

發布時間:2014-08-15   編輯:www.twdanq.live
centos6.2中編譯安裝bind-9.9.0

操作系統:CentOS-6.2-i386-minimal.iso

[[email protected] ~]# uname -a
Linux bind9.9 2.6.32-220.el6.i686 #1 SMP Tue Dec 6 16:15:40 GMT 2011 i686 i686 i386
GNU/Linux

一、將bind-9.9.0的源代碼包,放到root目錄下:
 

復制代碼 代碼如下:

[[email protected] ~]# tar xvf bind-9.9.0.tar.gz
解壓并歸檔后有個目錄:bind-9.9.0
[[email protected] ~]# cd bind-9.9.0
[[email protected] bind-9.9.0]# ./configure --prefix=/usr/local/named
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/bind-9.9.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[[email protected] bind-9.9.0]#
提示沒有安裝gcc

[[email protected] bind-9.9.0]# yum install gcc
[[email protected] bind-9.9.0]# ./configure --prefix=/usr/local/named
checking for OpenSSL library... configure: error: OpenSSL was not found in any of /usr

/usr/local /usr/local/ssl /usr/pkg /usr/sfw; use --with-openssl=/path
If you don't want OpenSSL, use --without-openssl
[[email protected] bind-9.9.0]#
提示沒有OpenSSL

[[email protected] bind-9.9.0]# yum install openssl
[[email protected] bind-9.9.0]# ./configure --prefix=/usr/local/named
checking for OpenSSL library... configure: error: OpenSSL was not found in any of /usr

/usr/local /usr/local/ssl /usr/pkg /usr/sfw; use --with-openssl=/path
If you don't want OpenSSL, use --without-openssl
[[email protected] bind-9.9.0]#
安裝完還是提示Openssl,還的安裝如下包

[[email protected] bind-9.9.0]# yum install openssl-devel
[[email protected] bind-9.9.0]# ./configure --prefix=/usr/local/named
checking whether to use purify... no
configure: error: Internal symbol table requires perl but no perl is found.
Install perl or explicitly disable the feature by --disable-symtable.
[[email protected] bind-9.9.0]#
又提示perl沒裝,沒辦法 ,繼續安裝吧

[[email protected] bind-9.9.0]# yum install perl
[[email protected] bind-9.9.0]# ./configure --prefix=/usr/local/named
config.status: creating lib/tests/include/Makefile
config.status: creating lib/tests/include/tests/Makefile
config.status: creating unit/Makefile
config.status: creating unit/unittest.sh
config.status: creating config.h
config.status: executing chmod commands
./configure: line 29289: make: command not found
[[email protected] bind-9.9.0]#
沒成功,接著往下看。

[[email protected] bind-9.9.0]# yum groupinstall "Development Tools"

[[email protected] bind-9.9.0]# yum groupinstall "Development Libraries"

[[email protected] bind-9.9.0]# ./configure --prefix=/usr/local/named
這下沒有錯誤提示了。正在安裝配置才正式開始

[[email protected] bind-9.9.0]# make
making all in /root/bind-9.9.0/doc/xsl
make[2]: Entering directory `/root/bind-9.9.0/doc/xsl'
make[2]: Leaving directory `/root/bind-9.9.0/doc/xsl'
making all in /root/bind-9.9.0/doc/doxygen
make[2]: Entering directory `/root/bind-9.9.0/doc/doxygen'
make[2]: Leaving directory `/root/bind-9.9.0/doc/doxygen'
make[1]: Leaving directory `/root/bind-9.9.0/doc'

[[email protected] bind-9.9.0]# make install
make[1]: Leaving directory `/root/bind-9.9.0/doc'
/bin/sh ./mkinstalldirs /usr/local/named/bin \
        /usr/local/named/var/run /usr/local/named/etc
mkdir /usr/local/named/var
mkdir /usr/local/named/var/run
mkdir /usr/local/named/etc
/bin/sh ./mkinstalldirs /usr/local/named/share/man/man1
/usr/bin/install -c isc-config.sh /usr/local/named/bin
/usr/bin/install -c -m 644 ./isc-config.sh.1 /usr/local/named/share/man/man1
/usr/bin/install -c -m 644 ./bind.keys /usr/local/named/etc
[[email protected] bind-9.9.0]#

ok,終于完成了。

您可能感興趣的文章:
centos6.2中編譯安裝bind-9.9.0
bind9.9源碼安裝與配置(chroot配置)
bind 壓力測試軟件 queryperf
fedora上編譯安裝開源軟件須注意的問題
把 bind 數據保存進mysql
bind(dns)壓力測試軟件queryperf的使用
Linux(centos)下安裝卸載命令rpm make install
FreeBSD 4.10 下 bind-9.3.2 + mysql-4.1.9 配置詳解
給大家推薦一個bind下載地址
讓centos6.2支持NTFS分區的方法

[關閉]
广西快乐10分怎样开奖号码