1. yum install gcc gcc-c++ glibc glibc-devel gd gd-devel zlib zlib-devel libtool-ltdl-devel flex autoconf automake -y
    1. yum install libxml2 libxml2-devel -y
    1. configure: error: APR not found. Please read the documentation.
    1. configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
    1. [root@riyimei php-7.3.26]# make install
    2. Installing PHP SAPI module: apache2handler
    3. /usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apr/build-1/libtool' libphp7.la /usr/local/apache/modules
    4. /usr/local/apr/build-1/libtool --mode=install install libphp7.la /usr/local/apache/modules/
    5. libtool: install: install .libs/libphp7.lai /usr/local/apache/modules/libphp7.la
    6. libtool: install: install .libs/libphp7.a /usr/local/apache/modules/libphp7.a
    7. libtool: install: chmod 644 /usr/local/apache/modules/libphp7.a
    8. libtool: install: ranlib /usr/local/apache/modules/libphp7.a
    9. libtool: warning: remember to run 'libtool --finish /usr/local/src/php-7.3.26/libs'
    10. Warning! dlname not found in /usr/local/apache/modules/libphp7.la.
    11. Assuming installing a .so rather than a libtool archive.
    12. chmod 755 /usr/local/apache/modules/libphp7.so
    13. chmod: cannot access ‘/usr/local/apache/modules/libphp7.so’: No such file or directory
    14. apxs:Error: Command failed with rc=65536
    15. .
    16. make: *** [install-sapi] Error 1
    17. [root@riyimei php-7.3.26]#
    1. [root@riyimei php-7.3.26]# libtool --finish /usr/local/src/php-7.3.26/libs
    2. libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/sersync/bin:/root/bin:/sbin" ldconfig -n /usr/local/src/php-7.3.26/libs
    3. ----------------------------------------------------------------------
    4. Libraries have been installed in:
    5. /usr/local/src/php-7.3.26/libs
    6. If you ever happen to want to link against installed libraries
    7. in a given directory, LIBDIR, you must either use libtool, and
    8. specify the full pathname of the library, or use the `-LLIBDIR'
    9. flag during linking and do at least one of the following:
    10. - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    11. during execution
    12. - add LIBDIR to the `LD_RUN_PATH' environment variable
    13. during linking
    14. - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
    15. - have your system administrator add LIBDIR to `/etc/ld.so.conf'
    16. See any operating system documentation about shared libraries for
    17. more information, such as the ld(1) and ld.so(8) manual pages.
    18. ----------------------------------------------------------------------
    19. [root@riyimei php-7.3.26]#