CentOS 8 Build PCRE / BZIP2
๐จ๐ณAlibaba ํธ์ nginx์ธ Tengine์ ์ค์นํด๋ณด๋ ค๋ PCRE ์ค๋ฅ๊ฐ ๋ํ๋ฌ๋ค. ๊ทธ๋์ pcre๋ฅผ ์ค์นํด๋ณด๋ ค๋ ์ด๊ฒ ์ ๊ฒ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ๋ ํ์ํ๋๋ค..
1 readline-devel
yum -y install readline-devel
readline์ ๊ทธ๋ฅ repo์์ ์ฃผ๋๊ฑธ๋ก ๊น์์ผ๊ฒ ๋ค.
2 bzip2 ์ค์น
PCRE๋ฅผ ์ค์นํ๋ ค๋ bzip2๊ฐ ํ์ํ๋๋ค…
git clone git://sourceware.org/git/bzip2.git && cd bzip2 && make && make install
bzip2๋ ๋น๊ต์ ์ผ๋ก ๊น๋ํ๊ฒ ์ค์นํ ์ ์์๋ค. ๊ธฐ๋ณธ prefix๋ ์ด์ํ ๊ฒฝ๋ก๋ ์๋๊ณ .
3 PCRE ์ค์น
http://www.linuxfromscratch.org/blfs/view/8.3/general/pcre.html
์ด ์ฌ์ดํธ ํํ ๋ฆฌ์ผ์ ์๋ ๋๋ก ๊ฐ์ ๋ฃ๊ณ ๋น๋.
๋ค์ด์ ์ด๊ณณ : https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.bz2
./configure --prefix=/usr \ --docdir=/usr/share/doc/pcre-8.42 \ --enable-unicode-properties \ --enable-pcre16 \ --enable-pcre32 \ --enable-pcregrep-libz \ --enable-pcregrep-libbz2 \ --enable-pcretest-libreadline \ --disable-static && make -j$(nproc)
make install