configure: error: png.h not found.错误的解决方法
2017-08-31 09:52
393 查看
今天安装PHP的时候提示这个错误 configure: error: png.h not found.,这个是选择安装GD模块才会出现的错误,详细错误信息如下:If configure fails try --with-vpx-dir=<DIR>
If configure fails try --with-jpeg-dir=<DIR>
configure: error: png.h not found.
经查资料说是libpng,devel包没安装,执行下面两条命令即可解决yum install libpngyum install libpng-devel然后重新编译安装就行了
安装php扩展步骤1.找到源码目录 ext;2.源码目录 scripts/phpize, 生成conffigure文件 /home/huoweijie/package/php-7.1.0/scripts/phpize这个时候会报没有权限的错误 Permission denied 别着急 这是没有可执行的权限 修改一下权限就好了 chmod +x /home/huoweijie/package/php-7.1.0/scripts/phpize
3.用./configure --with-php-config=/usr/local/php/bin/php-config4.make && make install5.修改php.ini vim /usr/local/php/etc/php.ini in6.重启php-fpm就ok了 可以用killall php-fpm 杀死php-fpm进程 然后重启 /usr/local/php/bin/php-fpm
第二步的时候有的同志可能会出现这个报错:Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.
If configure fails try --with-jpeg-dir=<DIR>
configure: error: png.h not found.
经查资料说是libpng,devel包没安装,执行下面两条命令即可解决yum install libpngyum install libpng-devel然后重新编译安装就行了
安装php扩展步骤1.找到源码目录 ext;2.源码目录 scripts/phpize, 生成conffigure文件 /home/huoweijie/package/php-7.1.0/scripts/phpize这个时候会报没有权限的错误 Permission denied 别着急 这是没有可执行的权限 修改一下权限就好了 chmod +x /home/huoweijie/package/php-7.1.0/scripts/phpize
3.用./configure --with-php-config=/usr/local/php/bin/php-config4.make && make install5.修改php.ini vim /usr/local/php/etc/php.ini in6.重启php-fpm就ok了 可以用killall php-fpm 杀死php-fpm进程 然后重启 /usr/local/php/bin/php-fpm
第二步的时候有的同志可能会出现这个报错:Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.
相关文章推荐
- configure: error: png.h not found.错误的解决方法
- configure: error: png.h not found.错误的解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- MinGW 编译出现g++: fatal error: -fuse-linker-plugin, but liblto_plugin-0.dll not found错误的解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译php的时候,报configure: error: mcrypt.h not found. Please reinstall libmcrypt.错误的解决办法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 更新:编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法
- [python]"python[error] mysql_config not found"错误解决方法
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 使用 EasyBCD 安装Ubuntu 14.04 Error 15: file not found错误的解决方法
- 安装php过程中的错误和解决方式 configure: error: jpeglib.h not found
- Eclipse 出现Some sites could not be found. See the error log for more detail.错误 解决方法
- Mysql错误configure: error: No curses/termcap library found 的错误解决方法