1

我已经到处寻找有关如何安装的说明。我遵循了 ffmpeg(dot)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 我得到两个错误。

  • 配置:警告:如果要重新生成 PHP 解析器,则需要 re2c 0.13.4 或更高版本。
  • 检查 ffmpeg 标头...配置:错误:找不到 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

任何帮助,将不胜感激。

4

0 回答 0