if [ -z "$(egrep mysql /etc/passwd)" ] ;then useradd -s /sbin/nologin mysql fi
if [ ! -d "${datadir}" ] ;then mkdir -p ${datadir} fi
if [ ! -f '/usr/local/src/mysql-5.6.50-linux-glibc2.12-x86_64.tar.gz' -a ! -d '/usr/local/mysql' ]; then wget -O /usr/local/src/mysql-5.6.50-linux-glibc2.12-x86_64.tar.gz https://cdn.mysql.com/archives/mysql-5.6/mysql-5.6.50-linux-glibc2.12-x86_64.tar.gz
tar -zxf /usr/local/src/mysql-5.6.50-linux-glibc2.12-x86_64.tar.gz -C /usr/local/src/
mv /usr/local/src/mysql-5.6.50-linux-glibc2.12-x86_64 /usr/local/mysql elif [ -f '/usr/local/src/mysql-5.6.50-linux-glibc2.12-x86_64.tar.gz' -a ! -d '/usr/local/mysql' ]; then
tar -zxf /usr/local/src/mysql-5.6.50-linux-glibc2.12-x86_64.tar.gz -C /usr/local/src/
mv /usr/local/src/mysql-5.6.50-linux-glibc2.12-x86_64 /usr/local/mysql else echo'MySQL 5.6.50 is already installed' fi
checking for pkg-config... /usr/bin/pkg-config checking for sd_notify in -lsystemd-daemon... no checking systemd/sd-daemon.h usability... no checking systemd/sd-daemon.h presence... no checking for systemd/sd-daemon.h... no configure: error: Your system does not support systemd.
yum install -y systemd-devel
checking for crypt_r... no
General settings checking whether to include gcov symbols... yes checking for lcov... no checking for genhtml... no configure: error: To enable code coverage reporting you must have LTP installed
General settings checking whether to include gcov symbols... yes checking for lcov... no checking for genhtml... no configure: error: To enable code coverage reporting you must have LTP installed
去掉了 --enable-gcov \
General settings checking whether to include gcov symbols... no checking whether to include debugging symbols... no checking layout of installed files... PHP checking path to configuration file... /usr/local/php/etc checking where to scan for configuration files... checking whether to enable PHP's own SIGCHLD handler... no checking whether to explicitly link against libgcc... no checking whether to enable short tags by default... yes checking whether to enable dmalloc... yes checking for dmalloc_error in -ldmalloc... no configure: error: Problem with enabling dmalloc. Please check config.log for details. 去掉 --enable-dmalloc \
General settings checking whether to include gcov symbols... no checking whether to include debugging symbols... no checking layout of installed files... PHP checking path to configuration file... /usr/local/php/etc checking where to scan for configuration files... checking whether to enable PHP's own SIGCHLD handler... no checking whether to explicitly link against libgcc... no checking whether to enable short tags by default... yes checking whether to enable dmalloc... no checking whether to enable IPv6 support... no checking whether to enable DTrace support... yes checking sys/sdt.h usability... no checking sys/sdt.h presence... no checking for sys/sdt.h... no configure: error: Cannot find sys/sdt.h which is required for DTrace support systemtap-sdt-devel
checking for xml2-config path... configure: error: xml2-config not found. Please check your libxml2 installation.
checking for Kerberos support... no checking whether to use system default cipher list instead of hardcoded value... no checking for DSA_get_default_method in -lssl... no checking for X509_free in -lcrypto... no checking for RAND_egd... no configure: error: Cannot find OpenSSL's <evp.h> [root@localhost php-5.6.40]# yum install -y openssl-devel
checking for BZip2 in default path... not found configure: error: Please reinstall the BZip2 distribution
checking for cURL in default path... not found configure: error: Please reinstall the libcurl distribution - easy.h should be in <curl-dir>/include/curl/
If configure fails try --with-vpx-dir=<DIR> configure: error: jpeglib.h not found.
libjpeg-devel
If configure fails try --with-vpx-dir=<DIR> checking for jpeg_read_header in -ljpeg... yes configure: error: png.h not found.
libpng-devel
If configure fails try --with-vpx-dir=<DIR> checking for jpeg_read_header in -ljpeg... yes checking for png_write_image in -lpng... yes configure: error: xpm.h not found.
libXpm-devel
configure: error: freetype-config not found.
freetype-devel
configure: error: Your t1lib distribution is not installed correctly. Please reinstall it.
t1lib-devel
configure: error: Unable to locate gmp.h
gmp-devel
checking for location of ICU headers and libraries... not found configure: error: Unable to detect ICU prefix or yes/bin/icu-config failed. Please verify ICU install prefix and make sure icu-config works.
libicu-devel 不生效
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
libmcrypt-devel
checking for libedit readline replacement... yes configure: error: Please reinstall libedit - I cannot find readline.h
libedit-devel
nginx
./configure: error: the HTTP XSLT module requires the libxml2/libxslt libraries. You can either do not enable the module or install the libraries.
libxslt-devel
hecking for GD library ... not found checking for GD library in /usr/local/ ... not found checking for GD library in /usr/pkg/ ... not found checking for GD library in /opt/local/ ... not found
./configure: error: the HTTP image filter module requires the GD library. You can either do not enable the module or install the libraries.
gd-devel
checking for GeoIP library in /usr/local/ ... not found checking for GeoIP library in /usr/pkg/ ... not found checking for GeoIP library in /opt/local/ ... not found
./configure: error: the GeoIP module requires the GeoIP library. You can either do not enable the module or install the library.
checking for Google perftools ... not found checking for Google perftools in /usr/local/ ... not found checking for Google perftools in /opt/local/ ... not found
./configure: error: the Google perftools module requires the Google perftools library. You can either do not enable the module or install the library.
gperftools-devel
checking for GD WebP support ... not found checking for GeoIP library ... found checking for GeoIP IPv6 support ... found checking for Google perftools ... found checking for atomic_ops library ... not found
./configure: error: libatomic_ops library was not found.
libatomic_ops-devel
make
[root@localhost nginx-1.18.0]# make make -f objs/Makefile make[1]: Entering directory `/usr/local/src/nginx-1.18.0' cd /usr/local/ssl \ && if [ -f Makefile ]; then make clean; fi \ && ./config --prefix=/usr/local/ssl/.openssl no-shared no-threads \ && make \ && make install_sw LIBDIR=lib /bin/sh: line 2: ./config: No such file or directory make[1]: *** [/usr/local/ssl/.openssl/include/openssl/ssl.h] Error 127 make[1]: Leaving directory `/usr/local/src/nginx-1.18.0' make: *** [build] Error 2