0

I have been trying to install ffmpeg and ffmpeg-php for weeks without success. The latest error I got on my new server is:

[root]# make
make: *** No targets specified and no makefile found.  Stop.
[root]#

After searching the web and stackoverflow, it seems that I need to fix my makefile?

I am running CentOS 5 32-bit.

Any help on this problem will be appreciated.

Thanks in advance!

tundoopani
  • 255
  • 9
  • 21
  • 3
    The error means you don't actually _have_ a makefile, so it can't really be fixed. The default makefile `make` looks for is `Makefile`. If you don't have such a file, nothing happens unless you tell make to build a specific target and it has built-in rules for it, or you specify an alternate makefile name wiht `-f`. – Mat Mar 25 '12 at 10:42
  • 2
    Your error message says **there is no makefile**. Are you even in the right directory? – Jonas Heidelberg Mar 25 '12 at 10:43
  • @Mat Thanks Mat and Jonas. Yes, the file was hidden under a bad filename. It was Makefile.global – tundoopani Mar 26 '12 at 04:34
  • Then your option is `make -f Makefile.global`. – dma_k Mar 27 '12 at 06:54

1 Answers1

1

You are going about installing ffmpeg the wrong way .. make would not work because you are not in the right directory

Easy way for installation add new repo at /etc/yum.repos.d

nano -w /etc/yum.repos.d/dag.repo

Inset

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

Then Install

yum install ffmpeg ffmpeg-devel

its as easy as that ... to install ffmpeg-php

wget /path/to/this/file/ffmpeg-php-0.5.2.1.tbz2

tar -xjf ffmpeg-0.5.2.1.tbz2

phpize

./configure
make
make install  

Can you see where you use make ??? After extracting the compressed file

Lastly PHP.INI

nano /etc/php.ini

[ffmpeg]
extension=ffmpeg.so

Sometimes you need to create new ffmpeg.ini file and php reads it automatically .. this depends on your confifuration

I hope this helps

Thanks

:)

Baba
  • 94,024
  • 28
  • 166
  • 217