CentOS 8 Build PCRE / BZIP2

(Last Updated On: November 8, 2020)

๐Ÿ‡จ๐Ÿ‡ณ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