# 準備(必要な準備は環境よって違うでしょう)
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
More than 3 years have passed since last update.
AlmaLinux8.4にbind-9.16.21をインストール
Last updated at Posted at 2021-10-13
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme