Download PCRE source and perform configure and make install
Install PCRE
[root@centos04 pcre2-10.22]# ./configure --prefix=/opt/pcre checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for ar... ar checking the archiver (ar) interface... ar checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for int64_t... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether ln -s works... yes checking whether the -Werror option is usable... yes checking for simple visibility declarations... yes checking for ANSI C header files... (cached) yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking for bcopy... yes checking for memmove... yes checking for strerror... yes checking zlib.h usability... no checking zlib.h presence... no checking for zlib.h... no checking for gzopen in -lz... no checking bzlib.h usability... no checking bzlib.h presence... no checking for bzlib.h... no checking for libbz2... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libpcre2-8.pc config.status: creating libpcre2-16.pc config.status: creating libpcre2-32.pc config.status: creating libpcre2-posix.pc config.status: creating pcre2-config config.status: creating src/pcre2.h config.status: creating src/config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing script-chmod commands config.status: executing delete-old-chartables commands pcre2-10.22 configuration summary: Install prefix .................. : /opt/pcre C preprocessor .................. : gcc -E C compiler ...................... : gcc Linker .......................... : /usr/bin/ld -m elf_x86_64 C preprocessor flags ............ : C compiler flags ................ : -g -O2 -fvisibility=hidden Linker flags .................... : Extra libraries ................. : Build 8-bit pcre2 library ....... : yes Build 16-bit pcre2 library ...... : no Build 32-bit pcre2 library ...... : no Include debugging code .......... : no Enable JIT compiling support .... : no Enable Unicode support .......... : yes Newline char/sequence ........... : lf \R matches only ANYCRLF ......... : no \C is disabled .................. : no EBCDIC coding ................... : no EBCDIC code for NL .............. : n/a Rebuild char tables ............. : no Use stack recursion ............. : yes Internal link size .............. : 2 Nested parentheses limit ........ : 250 Match limit ..................... : 10000000 Match limit recursion ........... : MATCH_LIMIT Build shared libs ............... : yes Build static libs ............... : yes Use JIT in pcre2grep ............ : no Enable callouts in pcre2grep .... : yes Buffer size for pcre2grep ....... : 20480 Link pcre2grep with libz ........ : no Link pcre2grep with libbz2 ...... : no Link pcre2test with libedit ..... : no Link pcre2test with libreadline . : no Valgrind support ................ : no Code coverage ................... : no [root@centos04 pcre2-10.22]# make rm -f src/pcre2_chartables.c ln -s /root/pcre2-10.22/src/pcre2_chartables.c.dist /root/pcre2-10.22/src/pcre2_chartables.c make all-am make[1]: Entering directory `/root/pcre2-10.22' CC src/libpcre2_8_la-pcre2_auto_possess.lo CC src/libpcre2_8_la-pcre2_compile.lo CC src/libpcre2_8_la-pcre2_config.lo CC src/libpcre2_8_la-pcre2_context.lo CC src/libpcre2_8_la-pcre2_dfa_match.lo CC src/libpcre2_8_la-pcre2_error.lo CC src/libpcre2_8_la-pcre2_find_bracket.lo CC src/libpcre2_8_la-pcre2_jit_compile.lo CC src/libpcre2_8_la-pcre2_maketables.lo CC src/libpcre2_8_la-pcre2_match.lo CC src/libpcre2_8_la-pcre2_match_data.lo CC src/libpcre2_8_la-pcre2_newline.lo CC src/libpcre2_8_la-pcre2_ord2utf.lo CC src/libpcre2_8_la-pcre2_pattern_info.lo CC src/libpcre2_8_la-pcre2_serialize.lo CC src/libpcre2_8_la-pcre2_string_utils.lo CC src/libpcre2_8_la-pcre2_study.lo CC src/libpcre2_8_la-pcre2_substitute.lo CC src/libpcre2_8_la-pcre2_substring.lo CC src/libpcre2_8_la-pcre2_tables.lo CC src/libpcre2_8_la-pcre2_ucd.lo CC src/libpcre2_8_la-pcre2_valid_utf.lo CC src/libpcre2_8_la-pcre2_xclass.lo CC src/libpcre2_8_la-pcre2_chartables.lo CCLD libpcre2-8.la CC src/libpcre2_posix_la-pcre2posix.lo CCLD libpcre2-posix.la CC src/pcre2grep-pcre2grep.o CCLD pcre2grep CC src/pcre2test-pcre2test.o CCLD pcre2test make[1]: Leaving directory `/root/pcre2-10.22' [root@centos04 pcre2-10.22]# make install make install-am make[1]: Entering directory `/root/pcre2-10.22' make[2]: Entering directory `/root/pcre2-10.22' /usr/bin/mkdir -p '/opt/pcre/lib' /bin/sh ./libtool --mode=install /usr/bin/install -c libpcre2-8.la libpcre2-posix.la '/opt/pcre/lib' libtool: install: /usr/bin/install -c .libs/libpcre2-8.so.0.4.0 /opt/pcre/lib/libpcre2-8.so.0.4.0 libtool: install: (cd /opt/pcre/lib && { ln -s -f libpcre2-8.so.0.4.0 libpcre2-8.so.0 || { rm -f libpcre2-8.so.0 && ln -s libpcre2-8.so.0.4.0 libpcre2-8.so.0; }; }) libtool: install: (cd /opt/pcre/lib && { ln -s -f libpcre2-8.so.0.4.0 libpcre2-8.so || { rm -f libpcre2-8.so && ln -s libpcre2-8.so.0.4.0 libpcre2-8.so; }; }) libtool: install: /usr/bin/install -c .libs/libpcre2-8.lai /opt/pcre/lib/libpcre2-8.la libtool: warning: relinking 'libpcre2-posix.la' libtool: install: (cd /root/pcre2-10.22; /bin/sh "/root/pcre2-10.22/libtool" --silent --tag CC --mode=relink gcc -DPCRE2_CODE_UNIT_WIDTH=8 -fvisibility=hidden -g -O2 -version-info 1:0:0 -o libpcre2-posix.la -rpath /opt/pcre/lib src/libpcre2_posix_la-pcre2posix.lo libpcre2-8.la ) libtool: install: /usr/bin/install -c .libs/libpcre2-posix.so.1.0.0T /opt/pcre/lib/libpcre2-posix.so.1.0.0 libtool: install: (cd /opt/pcre/lib && { ln -s -f libpcre2-posix.so.1.0.0 libpcre2-posix.so.1 || { rm -f libpcre2-posix.so.1 && ln -s libpcre2-posix.so.1.0.0 libpcre2-posix.so.1; }; }) libtool: install: (cd /opt/pcre/lib && { ln -s -f libpcre2-posix.so.1.0.0 libpcre2-posix.so || { rm -f libpcre2-posix.so && ln -s libpcre2-posix.so.1.0.0 libpcre2-posix.so; }; }) libtool: install: /usr/bin/install -c .libs/libpcre2-posix.lai /opt/pcre/lib/libpcre2-posix.la libtool: install: /usr/bin/install -c .libs/libpcre2-8.a /opt/pcre/lib/libpcre2-8.a libtool: install: chmod 644 /opt/pcre/lib/libpcre2-8.a libtool: install: ranlib /opt/pcre/lib/libpcre2-8.a libtool: install: /usr/bin/install -c .libs/libpcre2-posix.a /opt/pcre/lib/libpcre2-posix.a libtool: install: chmod 644 /opt/pcre/lib/libpcre2-posix.a libtool: install: ranlib /opt/pcre/lib/libpcre2-posix.a libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /opt/pcre/lib ---------------------------------------------------------------------- Libraries have been installed in: /opt/pcre/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /usr/bin/mkdir -p '/opt/pcre/bin' /bin/sh ./libtool --mode=install /usr/bin/install -c pcre2grep pcre2test '/opt/pcre/bin' libtool: install: /usr/bin/install -c .libs/pcre2grep /opt/pcre/bin/pcre2grep libtool: install: /usr/bin/install -c .libs/pcre2test /opt/pcre/bin/pcre2test /usr/bin/mkdir -p '/opt/pcre/bin' /usr/bin/install -c pcre2-config '/opt/pcre/bin' /usr/bin/mkdir -p '/opt/pcre/share/doc/pcre2' /usr/bin/install -c -m 644 AUTHORS COPYING ChangeLog LICENCE NEWS README doc/pcre2.txt doc/pcre2-config.txt doc/pcre2grep.txt doc/pcre2test.txt '/opt/pcre/share/doc/pcre2' /usr/bin/mkdir -p '/opt/pcre/share/doc/pcre2/html' /usr/bin/install -c -m 644 doc/html/NON-AUTOTOOLS-BUILD.txt doc/html/README.txt doc/html/index.html doc/html/pcre2-config.html doc/html/pcre2.html doc/html/pcre2_callout_enumerate.html doc/html/pcre2_code_copy.html doc/html/pcre2_code_free.html doc/html/pcre2_compile.html doc/html/pcre2_compile_context_copy.html doc/html/pcre2_compile_context_create.html doc/html/pcre2_compile_context_free.html doc/html/pcre2_config.html doc/html/pcre2_dfa_match.html doc/html/pcre2_general_context_copy.html doc/html/pcre2_general_context_create.html doc/html/pcre2_general_context_free.html doc/html/pcre2_get_error_message.html doc/html/pcre2_get_mark.html doc/html/pcre2_get_ovector_count.html doc/html/pcre2_get_ovector_pointer.html doc/html/pcre2_get_startchar.html doc/html/pcre2_jit_compile.html doc/html/pcre2_jit_free_unused_memory.html doc/html/pcre2_jit_match.html doc/html/pcre2_jit_stack_assign.html doc/html/pcre2_jit_stack_create.html doc/html/pcre2_jit_stack_free.html doc/html/pcre2_maketables.html doc/html/pcre2_match.html doc/html/pcre2_match_context_copy.html doc/html/pcre2_match_context_create.html doc/html/pcre2_match_context_free.html doc/html/pcre2_match_data_create.html doc/html/pcre2_match_data_create_from_pattern.html doc/html/pcre2_match_data_free.html doc/html/pcre2_pattern_info.html doc/html/pcre2_serialize_decode.html doc/html/pcre2_serialize_encode.html doc/html/pcre2_serialize_free.html '/opt/pcre/share/doc/pcre2/html' /usr/bin/install -c -m 644 doc/html/pcre2_serialize_get_number_of_codes.html doc/html/pcre2_set_bsr.html doc/html/pcre2_set_callout.html doc/html/pcre2_set_character_tables.html doc/html/pcre2_set_compile_recursion_guard.html doc/html/pcre2_set_match_limit.html doc/html/pcre2_set_offset_limit.html doc/html/pcre2_set_newline.html doc/html/pcre2_set_parens_nest_limit.html doc/html/pcre2_set_recursion_limit.html doc/html/pcre2_set_recursion_memory_management.html doc/html/pcre2_substitute.html doc/html/pcre2_substring_copy_byname.html doc/html/pcre2_substring_copy_bynumber.html doc/html/pcre2_substring_free.html doc/html/pcre2_substring_get_byname.html doc/html/pcre2_substring_get_bynumber.html doc/html/pcre2_substring_length_byname.html doc/html/pcre2_substring_length_bynumber.html doc/html/pcre2_substring_list_free.html doc/html/pcre2_substring_list_get.html doc/html/pcre2_substring_nametable_scan.html doc/html/pcre2_substring_number_from_name.html doc/html/pcre2api.html doc/html/pcre2build.html doc/html/pcre2callout.html doc/html/pcre2compat.html doc/html/pcre2demo.html doc/html/pcre2grep.html doc/html/pcre2jit.html doc/html/pcre2limits.html doc/html/pcre2matching.html doc/html/pcre2partial.html doc/html/pcre2pattern.html doc/html/pcre2perform.html doc/html/pcre2posix.html doc/html/pcre2sample.html doc/html/pcre2serialize.html doc/html/pcre2stack.html doc/html/pcre2syntax.html '/opt/pcre/share/doc/pcre2/html' /usr/bin/install -c -m 644 doc/html/pcre2test.html doc/html/pcre2unicode.html '/opt/pcre/share/doc/pcre2/html' /usr/bin/mkdir -p '/opt/pcre/include' /usr/bin/install -c -m 644 src/pcre2posix.h '/opt/pcre/include' /usr/bin/mkdir -p '/opt/pcre/share/man/man1' /usr/bin/install -c -m 644 doc/pcre2-config.1 doc/pcre2grep.1 doc/pcre2test.1 '/opt/pcre/share/man/man1' /usr/bin/mkdir -p '/opt/pcre/share/man/man3' /usr/bin/install -c -m 644 doc/pcre2.3 doc/pcre2_callout_enumerate.3 doc/pcre2_code_copy.3 doc/pcre2_code_free.3 doc/pcre2_compile.3 doc/pcre2_compile_context_copy.3 doc/pcre2_compile_context_create.3 doc/pcre2_compile_context_free.3 doc/pcre2_config.3 doc/pcre2_dfa_match.3 doc/pcre2_general_context_copy.3 doc/pcre2_general_context_create.3 doc/pcre2_general_context_free.3 doc/pcre2_get_error_message.3 doc/pcre2_get_mark.3 doc/pcre2_get_ovector_count.3 doc/pcre2_get_ovector_pointer.3 doc/pcre2_get_startchar.3 doc/pcre2_jit_compile.3 doc/pcre2_jit_free_unused_memory.3 doc/pcre2_jit_match.3 doc/pcre2_jit_stack_assign.3 doc/pcre2_jit_stack_create.3 doc/pcre2_jit_stack_free.3 doc/pcre2_maketables.3 doc/pcre2_match.3 doc/pcre2_match_context_copy.3 doc/pcre2_match_context_create.3 doc/pcre2_match_context_free.3 doc/pcre2_match_data_create.3 doc/pcre2_match_data_create_from_pattern.3 doc/pcre2_match_data_free.3 doc/pcre2_pattern_info.3 doc/pcre2_serialize_decode.3 doc/pcre2_serialize_encode.3 doc/pcre2_serialize_free.3 doc/pcre2_serialize_get_number_of_codes.3 doc/pcre2_set_bsr.3 doc/pcre2_set_callout.3 doc/pcre2_set_character_tables.3 '/opt/pcre/share/man/man3' /usr/bin/install -c -m 644 doc/pcre2_set_compile_recursion_guard.3 doc/pcre2_set_match_limit.3 doc/pcre2_set_offset_limit.3 doc/pcre2_set_newline.3 doc/pcre2_set_parens_nest_limit.3 doc/pcre2_set_recursion_limit.3 doc/pcre2_set_recursion_memory_management.3 doc/pcre2_substitute.3 doc/pcre2_substring_copy_byname.3 doc/pcre2_substring_copy_bynumber.3 doc/pcre2_substring_free.3 doc/pcre2_substring_get_byname.3 doc/pcre2_substring_get_bynumber.3 doc/pcre2_substring_length_byname.3 doc/pcre2_substring_length_bynumber.3 doc/pcre2_substring_list_free.3 doc/pcre2_substring_list_get.3 doc/pcre2_substring_nametable_scan.3 doc/pcre2_substring_number_from_name.3 doc/pcre2api.3 doc/pcre2build.3 doc/pcre2callout.3 doc/pcre2compat.3 doc/pcre2demo.3 doc/pcre2jit.3 doc/pcre2limits.3 doc/pcre2matching.3 doc/pcre2partial.3 doc/pcre2pattern.3 doc/pcre2perform.3 doc/pcre2posix.3 doc/pcre2sample.3 doc/pcre2serialize.3 doc/pcre2stack.3 doc/pcre2syntax.3 doc/pcre2unicode.3 '/opt/pcre/share/man/man3' /usr/bin/mkdir -p '/opt/pcre/include' /usr/bin/install -c -m 644 src/pcre2.h '/opt/pcre/include' /usr/bin/mkdir -p '/opt/pcre/lib/pkgconfig' /usr/bin/install -c -m 644 libpcre2-8.pc libpcre2-posix.pc '/opt/pcre/lib/pkgconfig' make[2]: Leaving directory `/root/pcre2-10.22' make[1]: Leaving directory `/root/pcre2-10.22'
Leave a Reply
You must be logged in to post a comment.