FedoraCore11でコンパイルできなくて困っています。
ffmpeg-phpをインストールしようと思いwgetにて保存
解凍後、phpizeして./configure→makeをすると
make: *** ターゲットが指定されておらず, makefile も見つかりません. 中止.
というエラーが出てきます。
./configureの
checking for ffmpeg headers... configure: error: ffmpeg headers not found. Make sure you've built ffmpeg as shared libs using the --enable-shared option
このエラーが怪しそうです。
どなたか解決方法をお願いします。
No.1ベストアンサー
- 回答日時:
エラーメッセージの通り前もってffmpeg本体を共有ライブラリとしてコンパイルして準備しておかなければならないのでしょう。
ffmpegの公式サイトからソースをダウンロードして--enable-sharedをつけてコンパイルしてください。
この回答への補足
ffmpegは無事にインストールすることが出来ました。
phpからffmpegを使うためのffmpeg-phpをインストールする際にエラーが出ています。
[root@localhost ffmpeg-php-0.6.0]# ./configure --prefix=/usr
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers... ...found in /usr/local/include/libavcodec
checking for ffmpeg libavcodec.so...
configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option
エラーを含めると、./configureのメッセージは以上です。
No.2
- 回答日時:
#どーでもいいけどFedora7以降はCoreは付きません
> ffmpegは無事にインストールすることが出来ました
ffmpegをインストール、というかconfigureする際に--enable-sharedはつけましたか?
この回答への補足
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
checking for PHP extension directory... /usr/lib/php/modules
checking for PHP installed headers prefix... /usr/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers... ...found in /usr/local/include/libavcodec
checking for ffmpeg libavcodec.so...
configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option
--enable-shared を付けましたがこんな感じになりました。
No.3
- 回答日時:
の↓は試したんでしょうか?
3. If you get an error like shared libraries not found problem and the program halts in the middle, then you must specify the ffmpeg installed path explicitly to the ./configure.
configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option
To Fix:
1. First find out the ffmpeg path with ffmpeg --help command. The prefix default path should be like /usr/local/cpffmpeg
2. Configure the FFmpeg-php with --with-ffmpeg option
./configure --with-ffmpeg=/usr/local/cpffmpeg
That should resolve the problem!
お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!
似たような質問が見つかりました
- PostgreSQL PostgreSQL14.6のSSL対応について 1 2023/01/05 15:42
- フリーソフト .264という動画ファイル 2 2022/07/12 11:30
- 英語 英文の添削をお願いします 4 2023/05/23 11:10
- フリーソフト ffmpegのパラメーター『-i』について 1 2023/03/09 07:19
- 英語 この英語のアナウンス分の添削をお願いします。 5 2023/05/13 14:54
- FX・外国為替取引 MQL5にて謎のエラーが発生!だれか対処を教えてください! 1 2023/03/25 15:59
- その他(コンピューター・テクノロジー) ffmpeg 動画から複数の箇所を指定して、一度の作業で同時に切り出したい 1 2022/07/03 08:35
- 英語 “Are we using supply constraints as a weapon..." 4 2022/10/24 15:03
- その他(ソフトウェア) Makefileが実行できない 2 2022/07/28 23:49
- 英語 英語の質問です。 When I taught in high school, I wanted to 4 2023/08/19 16:10
関連するカテゴリからQ&Aを探す
おすすめ情報
デイリーランキングこのカテゴリの人気デイリーQ&Aランキング
-
makeコマンドができない
-
perlのダウングレード方法
-
readline インストールについて
-
ソースからmakeした場合の削除方法
-
flexコマンドをインストール
-
solarisのmakeについて
-
OpensslのVer.ダウン
-
makeの際、 Killedとなったり...
-
Debianでのmakeコマンドインス...
-
Vine Linuxでgoogle chromeを使...
-
ダウンロードファイルなどは、...
-
`./configure` の次に `make` ...
-
自分は、パソコンにAPEXを入れ...
-
パソコンでゲームをプレイしよ...
-
Windows2000を最新マシンにイン...
-
外部レポジトリとは
-
PUTTYでログインしたコンソール...
-
ZFSファイルシステムのデータの...
-
M.2 NVME SSDがWindowsからはア...
-
rpmファイルがインストールでき...
マンスリーランキングこのカテゴリの人気マンスリーQ&Aランキング
-
gccのインクルードパスの確認
-
makeコマンドができない
-
He had his daughter make some...
-
*** ターゲット `all' を make ...
-
Linuxのgccのインクルードパス?
-
make でエラー
-
macos での /usr/local/lib と...
-
glibcバージョンアップ
-
perlのダウングレード方法
-
Mac上でPythonのtkinterを使っ...
-
ソースからmakeした場合の削除方法
-
ダウンロードファイルなどは、...
-
OpensslのVer.ダウン
-
Apacheのバージョンアップ方法
-
Solaris10でCコンパイラが見...
-
C言語ファイルのコンパイルがで...
-
Debianでのmakeコマンドインス...
-
Apache2.2.4のmod_authnz_ldap
-
linuxの/usr/includeについて
-
configure error
おすすめ情報