Ik wil de volgende module binnen PHP beschikbaar hebben:
ffmpeg-php-0.4.6
Nu staat in de INSTALL file van ffmpeg-php dat de volgende dingen noodzakelijk zijn:
Ik draai Red Hat Enterprise server met Plesk 7.5 Reloaded. GD 2 was al geïnstalleerd, en php-4.3 ook. Om ffmpeg te installeren heb ik de instructies uit de install file gevolgd:
Wat dan ook zonder problemen is gelukt. Nu ben ik aangekomen bij het gedeelte waar ik het ffmpeg-php gedeelte moet integreren in PHP. Hierbij staan in de install file 2 mogelijkheden beschreven:
Bij deze eerste methode gaat het al bij stap 3 mis:
Daarom probeerde ik de tweede methode:
Waarbij het bij stap 2 misgaat:
Heeft iemand ervaring met het installeren van deze extensie of weet iemand met welk probleem ik zit?
ffmpeg-php-0.4.6
Nu staat in de INSTALL file van ffmpeg-php dat de volgende dingen noodzakelijk zijn:
code:
1
2
3
| ffmpeg-0.4.9pre1 or higher built with the --enable-shared option (ffmpeg cvs recommended) php-4.3.x or higher gd-2.0.x or higher or the version of GD bundled with PHP |
Ik draai Red Hat Enterprise server met Plesk 7.5 Reloaded. GD 2 was al geïnstalleerd, en php-4.3 ook. Om ffmpeg te installeren heb ik de instructies uit de install file gevolgd:
code:
1
2
3
4
| ./configure --enable-shared --prefix=/usr make clean && make [become root] make install |
Wat dan ook zonder problemen is gelukt. Nu ben ik aangekomen bij het gedeelte waar ik het ffmpeg-php gedeelte moet integreren in PHP. Hierbij staan in de install file 2 mogelijkheden beschreven:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| BUILDING FFMPEG-PHP AS A SHARED EXTENSION
-----------------------------------------
1. Build php if not already built (See the file INSTALL in your php source directory)
2. Unpack the archive and copy the ffmpeg extension directory into your the
php sources extensions directory
tar -xjf ffmpeg-php.X.XX.tar.gz
cp ffmpeg /path/to/php_sources/ext
3. cd into the ffmpeg extension directory
cd /path/to/php_sources/ext/ffmpeg
4. Run phpize (included in the php installation) to build configuration files
phpize
5. Configure and build
./configure && make
6. Install the shared extension
make install (you may need to become root depending on your installation) |
Bij deze eerste methode gaat het al bij stap 3 mis:
code:
1
| -bash: phpize: command not found |
Daarom probeerde ik de tweede methode:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| BUILDING FFMPEG-PHP AS PART OF THE PHP BINARY
---------------------------------------------
1. Unpack the archive and copy the ffmpeg extension directory into your the php
sources extensions directory
tar -xjf ffmpeg-php.X.XX.tar.gz
cp ffmpeg /path/to/php_sources/ext
2. Run autoconf to rebuild the php configure script and add the --with-ffmpeg
option
cd /path/to/php_sources
autoconf
3. configure php using...
./configure --with-ffmpeg=yes
...and build and install php. |
Waarbij het bij stap 2 misgaat:
code:
1
| -bash: ./autoconf: No such file or directory |
Heeft iemand ervaring met het installeren van deze extensie of weet iemand met welk probleem ik zit?