虽然安装php-gd捆绑扩展,使Imageanti别名()函数在不重新编译php的情况下工作.,./configure脚本引发了以下错误:
sudo ./configure --with-php-config=/usr/bin/php-config --with-gd --with-freetype-dir=shared,/usr --with-vpx-dir=shared,/usr --with-jpeg-dir=shared,/usr --with-xpm-dir=shared,/usr/X11R6
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
...
configure: error: vpx_codec.h not found.在没有configure: error: vpx_codec.h not found.的情况下运行./配置脚本的方法是什么?我的服务器是Ubuntu14.04.3LTS,PHPVersion5.5.9和PHP是在没有从源代码编译的情况下安装的,但是通过apt-get install php php-gd安装。
发布于 2017-11-07 04:54:22
文件vpx_codec.h属于一个名为libvpx-dev的包
若要修复错误,请运行sudo apt-get install libvpx-dev命令安装它。然后使用相同的命令参数运行./configure命令,然后您将看到以下结果:
checking for vpx_codec_destroy in -lvpx... yes
https://askubuntu.com/questions/973729
复制相似问题