yum install gcc gcc-c++ glibc glibc-devel gd gd-devel zlib zlib-devel libtool-ltdl-devel flex autoconf automake -y
yum install libxml2 libxml2-devel -y
configure: error: APR not found. Please read the documentation.
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
[root@riyimei php-7.3.26]# make installInstalling PHP SAPI module: apache2handler/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apr/build-1/libtool' libphp7.la /usr/local/apache/modules/usr/local/apr/build-1/libtool --mode=install install libphp7.la /usr/local/apache/modules/libtool: install: install .libs/libphp7.lai /usr/local/apache/modules/libphp7.lalibtool: install: install .libs/libphp7.a /usr/local/apache/modules/libphp7.alibtool: install: chmod 644 /usr/local/apache/modules/libphp7.alibtool: install: ranlib /usr/local/apache/modules/libphp7.alibtool: warning: remember to run 'libtool --finish /usr/local/src/php-7.3.26/libs'Warning! dlname not found in /usr/local/apache/modules/libphp7.la.Assuming installing a .so rather than a libtool archive.chmod 755 /usr/local/apache/modules/libphp7.sochmod: cannot access ‘/usr/local/apache/modules/libphp7.so’: No such file or directoryapxs:Error: Command failed with rc=65536.make: *** [install-sapi] Error 1[root@riyimei php-7.3.26]#
[root@riyimei php-7.3.26]# libtool --finish /usr/local/src/php-7.3.26/libslibtool: 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----------------------------------------------------------------------Libraries have been installed in: /usr/local/src/php-7.3.26/libsIf you ever happen to want to link against installed librariesin a given directory, LIBDIR, you must either use libtool, andspecify 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 formore information, such as the ld(1) and ld.so(8) manual pages.----------------------------------------------------------------------[root@riyimei php-7.3.26]#