1.如果linux系统启动后并没有执行/etc/profile里内容加载环境变量,可以在~/.bashrc中加入命令source /etc/profile2.遇到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 install4.遇到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