標題: 裝 ffmpeg-php 問題
 ysk
 0010759
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1409

精華: 0

積分: 12256 點

現金: 5244 元

存款: 0 元

閱讀權限: 70

註冊: 2004-10-31

狀態: 離線
 
發表於 2008-3-6 17:30  資料  個人空間  短消息  加為好友  添加 ysk 為MSN好友 通過MSN和 ysk 交談
裝 ffmpeg-php 問題

http://ffmpeg-php.sourceforge.net/

我跟足佢做都咁...

[root@ysk ffmpeg-php-0.5.1]# phpize
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20050606

[root@ysk ffmpeg-php-0.5.1]# ./configure && make
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option

[root@ysk ffmpeg-php-0.5.1]# sudo make install
make: *** No rule to make target `install'.  Stop.




 AL8 Forum © All rights reserved.
頂部
 i553041
 0092967
Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7
點擊查看 i553041 的詳細資料

頭銜: Moderator

暱稱: 電腦新手

帖子: 3642

精華: 0

積分: 38754 點

現金: 425 元

存款: 0 元

閱讀權限: 100

註冊: 2007-12-16

來自: 樂富

狀態: 離線
 
發表於 2008-3-6 22:30  資料  個人空間  短消息  加為好友 
QUOTE:
原帖由 ysk 於 2008-3-6 17:30 發表
http://ffmpeg-php.sourceforge.net/
我跟足佢做都咁...
# phpize
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20050606
# ...

你個指令試下咁打:

phpize
./configure --enable-shared
make
make install

我無裝過呢個套件,不過我見到呢一句:
checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option


所以建議你./configure果度加上呢個--enable-shared參數去做編譯!




 AL8 Forum © All rights reserved.
頂部
 ysk
 0010759
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1409

精華: 0

積分: 12256 點

現金: 5244 元

存款: 0 元

閱讀權限: 70

註冊: 2004-10-31

狀態: 離線
 
發表於 2008-3-7 01:30  資料  個人空間  短消息  加為好友  添加 ysk 為MSN好友 通過MSN和 ysk 交談
QUOTE:
原帖由 i553041 於 2008-3-6 22:30 發表

你個指令試下咁打:
phpize
./configure --enable-shared
make
make install
我無裝過呢個套件,不過我見到呢一句:
checking for ffmpeg headers... configure: error: ffmpeg headers not found.  ...


都係唔得-.-




 AL8 Forum © All rights reserved.
頂部
 i553041
 0092967
Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7
點擊查看 i553041 的詳細資料

頭銜: Moderator

暱稱: 電腦新手

帖子: 3642

精華: 0

積分: 38754 點

現金: 425 元

存款: 0 元

閱讀權限: 100

註冊: 2007-12-16

來自: 樂富

狀態: 離線
 
發表於 2008-3-7 07:01  資料  個人空間  短消息  加為好友 
QUOTE:
原帖由 ysk 於 2008-3-7 01:30 發表

都係唔得-.-

點樣唔得?呢次又出咩錯誤呀?




 AL8 Forum © All rights reserved.
頂部
 ysk
 0010759
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1409

精華: 0

積分: 12256 點

現金: 5244 元

存款: 0 元

閱讀權限: 70

註冊: 2004-10-31

狀態: 離線
 
發表於 2008-3-7 12:21  資料  個人空間  短消息  加為好友  添加 ysk 為MSN好友 通過MSN和 ysk 交談
QUOTE:
原帖由 i553041 於 2008-3-7 07:01 發表

點樣唔得?呢次又出咩錯誤呀?

[root@ysk ffmpeg-php-0.5.0]# ./configure --enable-shared
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option
[root@ysk ffmpeg-php-0.5.0]# make
make: *** No targets specified and no makefile found.  Stop.
[root@ysk ffmpeg-php-0.5.0]# make install
make: *** No rule to make target `install'.  Stop.




 AL8 Forum © All rights reserved.
頂部
 i553041
 0092967
Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7
點擊查看 i553041 的詳細資料

頭銜: Moderator

暱稱: 電腦新手

帖子: 3642

精華: 0

積分: 38754 點

現金: 425 元

存款: 0 元

閱讀權限: 100

註冊: 2007-12-16

來自: 樂富

狀態: 離線
 
發表於 2008-3-7 14:29  資料  個人空間  短消息  加為好友 
QUOTE:
原帖由 ysk 於 2008-3-7 12:21 發表

# ./configure --enable-shared
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for egrep... grep -E
checking for a sed that does not t ...

你用咩Linux發行版架?Ubuntu?
試試咁樣得唔得...將./configure果行指令改做:
./configure --enable-shared --prefix=/usr

[ 本帖最後由 i553041 於 2008-3-7 14:45 編輯 ]




 AL8 Forum © All rights reserved.
頂部
 ysk
 0010759
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1409

精華: 0

積分: 12256 點

現金: 5244 元

存款: 0 元

閱讀權限: 70

註冊: 2004-10-31

狀態: 離線
 
發表於 2008-3-7 17:16  資料  個人空間  短消息  加為好友  添加 ysk 為MSN好友 通過MSN和 ysk 交談
QUOTE:
原帖由 i553041 於 2008-3-7 14:29 發表

你用咩Linux發行版架?Ubuntu?
試試咁樣得唔得...將./configure果行指令改做:
./configure --enable-shared --prefix=/usr

[root@ysk ~]# cd /usr/local/src/ffmpeg-php-0.5.0/
[root@ysk ffmpeg-php-0.5.0]# ./configure --enable-shared --prefix=/usr
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
checking for re2c... exit 0;
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option
[root@ysk ffmpeg-php-0.5.0]# make
make: *** No targets specified and no makefile found.  Stop.
[root@ysk ffmpeg-php-0.5.0]# make install
make: *** No rule to make target `install'.  Stop.

我都想知自己咩版=.=
我係網存幫我裝...




 AL8 Forum © All rights reserved.
頂部
 i553041
 0092967
Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7
點擊查看 i553041 的詳細資料

頭銜: Moderator

暱稱: 電腦新手

帖子: 3642

精華: 0

積分: 38754 點

現金: 425 元

存款: 0 元

閱讀權限: 100

註冊: 2007-12-16

來自: 樂富

狀態: 離線
 
發表於 2008-3-8 11:18  資料  個人空間  短消息  加為好友 
QUOTE:
原帖由 ysk 於 2008-3-7 17:16 發表

# cd /usr/local/src/ffmpeg-php-0.5.0/
# ./configure --enable-shared --prefix=/usr
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ...

使用uname -a應該可以睇到你係用乜野Linux發行版!

睇返ffmpeg-php,佢有個requirement,系統需要裝呢三樣野:
ffmpeg-0.4.9_pre1 or higher.
php-4.3.0 or higher
gd-2.0 or higher (the version of GD bundled with PHP works too)

你確定台Linux裝左未架?




 AL8 Forum © All rights reserved.
頂部
 ysk
 0010759
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1409

精華: 0

積分: 12256 點

現金: 5244 元

存款: 0 元

閱讀權限: 70

註冊: 2004-10-31

狀態: 離線
 
發表於 2008-3-8 14:06  資料  個人空間  短消息  加為好友  添加 ysk 為MSN好友 通過MSN和 ysk 交談
QUOTE:
原帖由 i553041 於 2008-3-8 11:18 發表

使用uname -a應該可以睇到你係用乜野Linux發行版!
睇返ffmpeg-php,佢有個requirement,系統需要裝呢三樣野:
ffmpeg-0.4.9_pre1 or higher.
php-4.3.0 or higher
gd-2.0 or higher (the version of GD  ...

[root@ysk ~]# uname -a
Linux ysk.hk 2.6.9-42.EL #1 Sat Aug 12 09:17:58 CDT 2006 i686 i686 i386 GNU/Linu                                             x

ffmpeg-0.4.9_pre1 or higher.  呢個裝左
php-4.3.0 or higher  我不嬲用緊php,所以都有裝
gd-2.0 or higher  呢個係未用倒水印就代表裝左?如果係我都裝左




 AL8 Forum © All rights reserved.
頂部
 i553041
 0092967
Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7
點擊查看 i553041 的詳細資料

頭銜: Moderator

暱稱: 電腦新手

帖子: 3642

精華: 0

積分: 38754 點

現金: 425 元

存款: 0 元

閱讀權限: 100

註冊: 2007-12-16

來自: 樂富

狀態: 離線
 
發表於 2008-3-9 09:36  資料  個人空間  短消息  加為好友 
QUOTE:
原帖由 ysk 於 2008-3-8 14:06 發表

# uname -a
Linux ysk.hk 2.6.9-42.EL #1 Sat Aug 12 09:17:58 CDT 2006 i686 i686 i386 GNU/Linu                                             x
ffmpeg-0.4.9_pre1 or higher.  呢個裝左
php-4.3.0 o ...

我尋晚用Fedora 8試裝,一樣遇到同一個問題,整左好耐都唔得...我都唔知點解,我放棄了!
你或者試下用yum去裝睇下得唔得吧?
yum install ffmpeg-devel




 AL8 Forum © All rights reserved.
頂部
 ysk
 0010759
Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6Rank: 6

頭銜: Forum Legend

帖子: 1409

精華: 0

積分: 12256 點

現金: 5244 元

存款: 0 元

閱讀權限: 70

註冊: 2004-10-31

狀態: 離線
 
發表於 2008-3-9 10:33  資料  個人空間  短消息  加為好友  添加 ysk 為MSN好友 通過MSN和 ysk 交談
QUOTE:
原帖由 i553041 於 2008-3-9 09:36 發表

我尋晚用Fedora 8試裝,一樣遇到同一個問題,整左好耐都唔得...我都唔知點解,我放棄了!
你或者試下用yum去裝睇下得唔得吧?
yum install ffmpeg-devel

我諗係個程式有問題

上網睇過好多人都裝唔倒




 AL8 Forum © All rights reserved.
頂部


網頁空間由 I-SERVICES 提供
當前時區 GMT+8, 現在時間是 2008-12-5 11:08