CentOSのPHP環境の例外処理をインストール

1.如果linux系统启动后并没有执行/etc/profile里内容加载环境变量,可以在~/.bashrc中加入命令source /etc/profile
2.遇到configure:error:please reinstall the libzip distribution时,使用yum -y install libzip-devel   安装扩展
3.遇到configure:error:system libzip must be upgraded to version>=0.11
	1>yum remove -y libzip     #先删除旧版本
	2>下载编译安装 wget https://nih.at/libzip/libzip-1.2.0.tar.gz
	3>tar -zxvf libzip-1.2.0.tar.gz
	4>cd libzip-1.2.0.tar.gz
	5>./configure
	6>makr && make install
4.遇到configure:error:off_t undefined;check your library configuration
	1>echo '/usr/local/lib64
	/usr/local/lib
	/usr/lib
	/usr/lib64'>>/etc/ld.so.conf      #将64位库文件路径添加到ld.so.conf
	2>ldconfig -v   更新配置
5.fatal error:zipconf.h:No such file or directory   
	解决方法  cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h


参考:http://www.php.cn/php-weizijiaocheng-414091.html

ます。https://my.oschina.net/ives/blog/3058089で再現

おすすめ

転載: blog.csdn.net/weixin_33967071/article/details/91597546