我一直在尝试在 RHEL (Redhat Enterprise Linux) 5.6 (Tikanga) 环境中安装 ffmpeg-php v0.6.0。我正在运行 PHP 版本 5.2.17 并安装了以下 ffmpeg 包:
- ffmpeg-0.6.5-1.el5.rf
- ffmpeg-devel-0.6.5-1.el5.rf
- ffmpeg-libpostproc-0.6.5-1.el5.rf
我已按照这些安装说明进行操作。我被困在我运行的步骤上make
,我收到以下错误:
In file included from /usr/include/sys/stat.h:105,
from /usr/include/php/main/php_streams.h:28,
from /usr/include/php/main/php.h:400,
from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/bits/stat.h:88: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:89: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:90: error: field 'st_ctim' has incomplete type
/usr/include/bits/stat.h:149: error: field 'st_atim' has incomplete type
/usr/include/bits/stat.h:150: error: field 'st_mtim' has incomplete type
/usr/include/bits/stat.h:151: error: field 'st_ctim' has incomplete type
In file included from /usr/include/php/main/php.h:406,
from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
/usr/include/php/TSRM/tsrm_virtual_cwd.h:209: error: expected specifier-qualifier-list before 'time_t'
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c: In function 'zm_startup_ffmpeg':
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function 'avcodec_init'
一直在爬网寻找其他人是否遇到过类似的问题,到目前为止,我发现这个建议安装旧版本的 ffmpeg-php。
我对使用旧版本的东西不满意,并且想知道是否有其他人遇到上述错误并已成功解决它们,或者他们是否可以为我指出正确的方向来开始解决它们。