Can't install php-devel ):

Comment out the ffmpeg stuff at the end of php.ini and restart. Something is wrong with your ffmpeg.so
Commenting it brought it back, yep. For the record, tailing with grep error (with it uncommented) returns:

Code:
Stopping httpd:                                             [  OK  ]
Starting httpd: [Thu Feb 18 12:49:14 2010] [warn] module php5_module is already loaded, s
kipping
[Thu Feb 18 12:49:14 2010] [warn] NameVirtualHost 66.79.186.85:443 has no VirtualHosts

[Thu Feb 18 12:49:13 2010] [error] [client 202.160.178.87] File does not exist: /var/www/
html/299
[Thu Feb 18 12:49:13 2010] [error] [client 202.160.178.87] File does not exist: /var/www/
html/404.shtml
/usr/sbin/httpd: symbol lookup error: /usr/local/lib/php/extensions/ffmpeg.so: undefined
symbol: register_ffmpeg_frame_class

Commented, sites are running. What could be wrong with the ffmpeg.so?
 
Last edited:
Could it have anything to do with this? Forgive me for my ignorance, but I don't think this looks right?

Code:
[root@hostname /]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin::/root
/bin
 
I do not know what could be wrong. The path is fine though.

Try installing the newest version.
 
I do not know what could be wrong. The path is fine though.

Try installing the newest version.
Yeah I had realized that my installations were not of your suggested repository (as part of a previous installation, same version though).

I reinstalled them with the dag repository, did the entire steps again (including reinstalling ffmpeg-php) and still get the same error:

/usr/sbin/httpd: symbol lookup error: /usr/local/lib/php/extensions/ffmpeg.so: undefined
symbol: register_ffmpeg_frame_class

I'm using a newer version of ffmpeg-php than the one in your tutorial, could that be why?
 
Last edited:
But did you download and try to install ffmpeg-php-0.6.0.tbz2 instead of ffmpeg-php-0.5.3.1.tbz2
 
Well maybe that is the problem. My instructions use the older package.
 
Floyd thank you for helping me.

It now returns no errors, however I do not see where it is on phpinfo to confirm it is installed properly. Any idea?

A ctrl+f for ffmpeg returns nothing.
 
Did you uncomment the ffmpeg in php.in and restart apache?
 
I would start over again from the beginning of install ffmepg.

I just looked at my own notes again and I have started using the newest version. I have installed it on several servers.

You did not install any php rpm's did you?

Think about all the stuff you tried to do prior to posting here. Try to undo it.
 
My current notes:

Code:
# Install FFMPEG CentOS
cd /root
echo "[dag]" > /etc/yum.repos.d/dag.repo
echo "name=Dag RPM Repository for Red Hat Enterprise Linux" >> /etc/yum.repos.d/dag.repo
echo "baseurl=http://apt.sw.be/redhat/el\$releasever/en/\$basearch/dag" >> /etc/yum.repos.d/dag.repo
echo "gpgcheck=0" >> /etc/yum.repos.d/dag.repo
echo "enabled=1" >> /etc/yum.repos.d/dag.repo

yum -y install ffmpeg ffmpeg-devel flvtool2 mencoder
wget http://internap.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2
tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0/
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make install
cp /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so /usr/local/lib/php/extensions/
echo "extension=ffmpeg.so" >> /etc/php.ini
service httpd restart
 
PHP rpms, no.

I did your steps; I'm getting the error again. The old version of ffmpeg-php returned no errors, so perhaps I should be sticking with that one?
 
The new one works with my stuff. I am using CentOS 5.4 32 bit.
 
Perhaps I have more than one php installed?

Code:
[root@ballotorthebullet /]# which php
/usr/bin/which: no php in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/bin:/sbi
n:/usr/bin:/usr/sbin::/root/bin)

[root@ballotorthebullet /]# whereis php
php: /usr/local/bin/php /usr/local/lib/php /usr/local/lib/php.ini

php - or php -r isn't even working

Code:
-bash: php: command not found
 
Last edited:
Back
Top