0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AlmaLinux8.4にbind-9.16.21をインストール

Last updated at Posted at 2021-10-13
# 準備(必要な準備は環境よって違うでしょう)
sudo yum install automake
sudo yum install libtool
sudo yum install openssl-devel
# libuv
# bind-9.16からlibuvが必要らしい...
#
cd /usr/local/arch/
curl -O https://dist.libuv.org/dist/v1.42.0/libuv-v1.42.0.tar.gz
cd /usr/local/src/
tar zxvf ../arch/libuv-v1.42.0.tar.gz
cd libuv-v1.42.0/
./autogen.sh 2>&1 | tee autogen.sh.log
./configure 2>&1 | tee configure.log
make 2>&1 | tee make.log
sudo make install 2>&1 | tee make-install.log
# library pathに追加
# 環境汚したくない場合はやらなくてもOK
sudo vi /etc/ld.so.conf.d/usr_local.conf
---
/usr/local/lib
---
sudo ldconfig
# 確認
ldconfig -p | grep local
#
# bind
#
cd /usr/local/arch/
curl -O https://downloads.isc.org/isc/bind9/9.16.21/bind-9.16.21.tar.xz
cd /usr/local/src/
tar Jxvf ../arch/bind-9.16.21.tar.xz
cd bind-9.16.21/
# configureでLIBS='-luv'をわざわざつけないとmakeが失敗します...
./configure --disable-linux-caps LIBUV_CFLAGS='-I/usr/local/include' LIBUV_LIBS='-L/usr/local/lib' LIBS='-luv\
' 2>&1 | tee configure.log
# library pathに/usr/local/libを加えなかった場合はこちらで
# あるいはLD_LIBRARY_PATHやLD_RUN_PATHの環境変数を設定するのもありでしょう
./configure --disable-linux-caps LIBUV_CFLAGS='-I/usr/local/include' LIBUV_LIBS='-L/usr/local/lib' LDFLAGS='\
-L/usr/local/lib -Wl,-rpath,/usr/local/lib' LIBS='-luv' 2>&1 | tee configure.log
make 2>&1 | tee make.log
sudo make install 2>&1 | tee make-install.log
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?