mysql报错
报错1:
./mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory
解决办法:
1.如果已经安装了libnuma.so.1,先yum remove libnuma.so.1 2.yum -y install numactl.x86_64
报错2:
Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
解决办法:
#yum install libaio* -y
报错3
FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db:
Data::Dumper
解决办法:
#yum install -y perl-Data-Dumper
错误4
./bin/mysqld: unknown option '--skip-locking'
解决办法
删除/etc/my.cnf重新编译
错误5
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
解决办法
卸载系统自带的mysql,这个错误的原因很多,如果不是这个原因就试其他办法
php安装报错
错误2:
checking for BZip2 in default path... not found
configure: error: Please reinstall the BZip2 distribution
解决办法:
yum install -y bzip2-devel
错误3:
configure: error: jpeglib.h not found.
解决办法:
yum install -y libjpeg-turbo-devel
错误4:
configure: error: png.h not found.
解决办法:
yum install -y libpng libpng-devel
错误5:
configure: error: freetype-config not found.
解决办法:
yum install -y freetype freetype-devel
错误6:
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
解决办法:
yum install -y epel-release
yum install -y libmcrypt libmcrypt-devel
错误7
configure: error: xml2-config not found. Please check your libxml2 installation.
解决办法
yum install -y libxml2 libxml2-devel
错误8
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
解决办法
yum install curl curl-devel
nginx相关问题
错误1
Restarting nginx (via systemctl): Warning: nginx.service changed on disk. Run 'systemctl daemon-reload' to reload units.
解决办法:
我们可以先用systemctl daemon-reload
再systemctl restart nginx
即可。其他服务出现类似的情况,也可以使用systemctl daemon-reload来解决。
错误2
checking for C compiler ... not found
./configure: error: C compiler cc is not found
解决办法:
yum -y install gcc gcc-c++
错误3
./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl= options.
解决办法:
yum -y install openssl openssl-devel
错误4
./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib= option.
解决办法:
yum install -y zlib-devel
apache
错误1
configure: error: Bundled APR requested but not found at ./srclib/. Download and unpack the corresponding apr and apr-util packages to ./srclib/.
解决办法:
下载这两个包到/usr/local/src/httpd-2.4.29/srclib目录下
apr: http://mirrors.cnnic.cn/apache/apr/apr-1.6.3.tar.gz
apr-util: http://mirrors.cnnic.cn/apache/apr/apr-util-1.6.1.tar.bz2
解压这两个包并重命名
tar -zxvf apr-1.6.3.tar.gz
tar -jxvf apr-util-1.6.1.tar.bz2
mv apr-1.6.3 apr
mv apr-util-1.6.1 apr-util
然后再重新./configure
错误2
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
解决办法
$ unzip pcre-8.38.zip
$ cd pcre-8.38
$ ./configure --prefix=/usr/local/pcre
$ make
$ make install