在CentOS / cpanel

时间:2017-06-10 20:14:50

标签: php ffmpeg nasm centos6 ffmpeg-php

我已经查看了有关如何安装的说明。我已经按照指南ffmpeg(点)org / wiki / CompilationGuide / Centos FFMpeg工作正常,因为我已经能够转换mp3和mp4。我的问题是当我尝试设置FFMpeg-PHP时。当我运行 ./ configure --prefix = / usr --enable-shared --with-php-config = / opt / cpanel / ea-php71 / root / usr / bin / php-config ffmpeg-php我收到两个错误。

  • configure:警告:如果要重新生成PHP解析器,则需要re2c 0.13.4或更高版本。
  • 检查ffmpeg标头... configure:error:找不到ffmpeg头文件。确保使用--enable-shared选项
  • 将ffmpeg编译为共享库

FFMpeg信息

ffmpeg版本2.6.8版权所有(c)2000-2016 FFmpeg开发人员   用gcc 4.4.7(GCC)20120313(Red Hat 4.4.7-16)构建

FFMpeg-PHP输出

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /opt/cpanel/ea-php71/root/usr
checking for PHP includes... -I/opt/cpanel/ea-php71/root/usr/include/php -I/opt/cpanel/ea-php71/root/usr/include/php/main -I/opt/cpanel/ea-php71/root/usr/include/php/TSRM -I/opt/cpanel/ea-php71/root/usr/include/php/Zend -I/opt/cpanel/ea-php71/root/usr/include/php/ext -I/opt/cpanel/ea-php71/root/usr/include/php/ext/date/lib
checking for PHP extension directory... /opt/cpanel/ea-php71/root/usr/lib64/php/modules
checking for PHP installed headers prefix... /opt/cpanel/ea-php71/root/usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers...
configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option

我不确定这是否相关,但我也遇到了运行yum update的问题。

root@cvp259 [/]# yum update
Loaded plugins: fastestmirror, tsflags, universal-hooks
Setting up Update Process
Loading mirror speeds from cached hostfile
 * EA4: 67.222.0.10
 * cpanel-addons-production-feed: 67.222.0.10
 * base: centos.unixheads.org
 * epel: pubmirror2.math.uh.edu
 * extras: repos.dfw.quadranet.com
 * nux-dextop: mirror.li.nux.ro
 * updates: mirror.steadfast.net
Resolving Dependencies
--> Running transaction check
---> Package nasm.x86_64 0:2.07-7.el6 will be updated
---> Package nasm.x86_64 0:2.13.01-0.fc24 will be an update
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: nasm-2.13.01-0.fc24.x86_64
--> Finished Dependency Resolution
Error: Package: nasm-2.13.01-0.fc24.x86_64 (nasm)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

任何帮助都将不胜感激。

0 个答案:

没有答案