在 cPanel 服务器上安装 ffmpeg(即 fdk-aac)会导致 perl 线程出现问题

在 cPanel 服务器上安装 ffmpeg(即 fdk-aac)会导致 perl 线程出现问题

基本上,我正尝试在 cPanel 服务器上安装 FFMPEG。ffmpeg -v除了 libfdk-aac 之外,我能够安装并运行所有程序(使用 进行测试)。我可以git clone很好地完成 和所有操作,但是当我尝试在 fdk-aac 目录中运行时,autoreconf -fiv我得到:

root@matrix [~/ffmpeg-source/fdk-aac]# autoreconf -fiv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4 --output=aclocal.m4t
/usr/share/automake-1.11/Automake/ChannelDefs.pm line 23:

This Perl hasn't been configured and built properly for the threads
module to work.  (The 'useithreads' configuration option hasn't been used.)

Having threads support requires all of Perl and all of the XS modules in
the Perl installation to be rebuilt, it is not just a question of adding
the threads module.  (In other words, threaded and non-threaded Perls
are binary incompatible.)

If you want to the use the threads module, please contact the people
who built your Perl.

Cannot continue, aborting.

我试过使用佩尔布鲁-Dusethreads使用和选项安装单独版本的 perl -Duseithreads,但没有任何变化,同样的错误。

我使用 Perlbrew 安装使用的命令是:perlbrew --force install --as perl-5.16.3-t -Dusethreads -Duseithreads perl-5.16.3

似乎没什么帮助。这可能吗?请不要告诉我不要使用 cPanel,它是为客户准备的,他需要它。:P

编辑:我正在使用的指南可以在这里找到:Centos编译指南

答案1

非常糟糕的解决方案,但我刚刚按照本节在专门为此任务创建的新的、干净的 centos 6 虚拟机上构建 libfdk-aac 解决了这个问题:

cd ~/ffmpeg_sources git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git cd fdk-aac autoreconf -fiv ./configure --prefix="$HOME/ffmpeg_build" --disable-shared make

然后将构建文件夹打包,复制到我的 cPanel 机器上并解压,然后从其中运行“make install”。这会将库复制到我的 ffmpeg 构建前缀(因为我在虚拟机上构建时保留了相同的前缀),因此我能够使用 fdk aac 编码器正确配置和构建 ffmpeg。

如果有任何用处,这里是我的 libfdk-aac 构建的 tar 存档,如上所述,前缀从 root 帐户设置为 ~/ffmpeg-build,因此当执行“make install”时,它会将 fdk aac 库复制到 /root/ffmpeg-build。

如果您从 root 帐户遵循整个 Centos 编译指南,它应该可以正常工作。让我知道进展如何!

http://andrewbeveridge.co.uk/old/fdk-aac.tar.gz

更新:

实际上,我刚刚找到了适用于 fdk-aac 的 centos rpm,因此安装这些 rpm 可能是让 ffmpeg 在 cPanel 系统上进行编译的更简单、更好的方法,假设它是 64 位。

rpm -Uvh http://andrewbeveridge.co.uk/old/fdk-aac-0.1.1-1.el6.x86_64.rpm http://andrewbeveridge.co.uk/old/fdk-aac-devel-0.1.1-1.el6.x86_64.rpm

相关内容