linux常见报错
1、yum安装报错
2、centos6.6*64安装php-5.6.22报错
3、
4、
5、
6、
yum安装出现如下报错的解决办法 Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again 修改文件“/etc/yum.repos.d/epel.repo”, 将baseurl的注释取消, mirrorlist注释掉 #sed -i '3s/^#//' /etc/yum.repos.d/epel.repo #sed -i '4s/^/#/' /etc/yum.repos.d/epel.repo
centos6.6*64安装php-5.6.22报错
configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no
解决方案
#vi /etc/ld.so.conf.d/local.conf
/usr/local/lib64
#ldconfig
如果无法解决,尝试如下
echo /usr/local/mysql/lib >> /etc/ld.so.conf
ldconfig
centos6.6*64安装php-5.6.22报错 error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory make: *** [ext/phar/phar.php] Error 127 before make:(在make之前做) 解决方法1 #ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64/ #touch ext/phar/phar.phar 解决方法2 #echo "/usr/local/mysql/lib">> /etc/ld.so.conf #/sbin/ldconfig