Share It

Saturday, November 21, 2009

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/'

While Installing FFMPEG, when I was installing ffmpeg-php, I got this warning and it didn't work any further.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/' - /usr/lib/php/modules/ undefined symbol: le_ffmpeg_frame in Unknown on line 0

Tried to find the solution but didn't get any help. So I ended up reinstalling with different changes and using different guides. Following changes helped:::

First of all get 0.6.0 version, i.e ffmpeg-php-0.6.0.

Now after download: use vi to edit the ffmpeg_frame.c and search and replace PIX_FMT_RGBA32 with PIX_FMT_RGB32
To do this run the following commands:

cd ../ffmpeg-php-0.6.0
vi ffmpeg_frame.c
Now run this command:

Now run ./configure && make && make install

This should solve the problem. Worked for me.


  1. Dude ! You are awesome. It works in first go..

  2. Hmm ffmpeg_php 0.6 only works with >php5
    and unfortunately this doesn't fix it for ffmpeg_php_0.5.3.1

  3. awesome stuff yarr for this i struggled for 2 days.once again thank u so much for your material


Share It

Developer Instincts