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
1 2 3 4 5 6 7
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
1 2 3 4 5 6 7 8
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 \
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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
1 2 3 4 5
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
1 2 3 4
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
1 2 3 4 5
If configure fails try --with-vpx-dir=<DIR> checking for jpeg_read_header in -ljpeg... yes configure: error: png.h not found.
libpng-devel
1 2 3 4 5 6
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
1 2 3
configure: error: freetype-config not found.
freetype-devel
1 2 3
configure: error: Your t1lib distribution is not installed correctly. Please reinstall it.
t1lib-devel
1 2 3 4
configure: error: Unable to locate gmp.h
gmp-devel
1 2 3 4
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 不生效
1 2 3
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
libmcrypt-devel
1 2 3 4
checking for libedit readline replacement... yes configure: error: Please reinstall libedit - I cannot find readline.h
libedit-devel
nginx
1 2 3 4
./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
1 2 3 4 5 6 7 8 9
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
1 2 3 4 5 6 7 8 9
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
1 2 3 4 5 6 7 8 9 10
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14
[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