2012-01-22 188 views
4

你能幫我嗎?ffmpeg安裝失敗OSX 10.7.2

我嘗試使用brew來安裝ffmpeg,但是我不行。

似乎依賴關係已成功安裝。

我正在使用Mac OSX 10.7.2和XCode 4.2.1。

我無法安裝ffmpeg。

我已經試過:

brew install ffmpeg 
brew install --use-clang ffmpeg 
brew install --use-clang --HEAD ffmpeg 

而且他們都失敗了。

這是結果日誌。

$ brew install --use-clang ffmpeg 
==> Downloading http://ffmpeg.org/releases/ffmpeg-0.9.1.tar.bz2 
File already downloaded in /Users/brunogermano/Library/Caches/Homebrew 
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/0.9.1 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bi 
ERROR: libmp3lame >= 3.98.3 not found 

If you think configure made a mistake, make sure you are using the latest 
version from Git. If the latest version fails, report the problem to the 
[email protected] mailing list or IRC#ffmpeg on irc.freenode.net. 
Include the log file "config.log" produced by configure as this will help 
solving the problem. 
==> Exit Status: 1 
http://github.com/mxcl/homebrew/blob/master/Library/Formula/ffmpeg.rb#L61 
==> Environment 
HOMEBREW_VERSION: 0.8.1 
HEAD: 44213dfb4861c1307fdc4ae41e139404f0e1ffb1 
HOMEBREW_PREFIX: /usr/local 
HOMEBREW_CELLAR: /usr/local/Cellar 
Hardware: dual-core 64-bit penryn 
OS X: 10.7.2 
Kernel Architecture: x86_64 
Ruby: 1.8.7-249 
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
Xcode: 4.2.1 
GCC-4.0: N/A 
GCC-4.2: N/A 
LLVM: build 2336 
Clang: 3.0 build 211 
MacPorts or Fink? false 
X11 installed? true 
==> Build Flags 
"--use-clang" was specified 
CC: /usr/bin/clang 
CXX: /usr/bin/clang++ => /usr/bin/clang 
LD: /usr/bin/clang 
CFLAGS: -O3 -w -pipe -march=native 
CXXFLAGS: -O3 -w -pipe -march=native 
CPPFLAGS: -I/usr/X11/include 
LDFLAGS: -L/usr/X11/lib 
MAKEFLAGS: -j2 

Error: Failed executing: ./configure --prefix=/usr/local/Cellar/ffmpeg/0.9.1 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/clang --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --disable-ffplay 
These existing issues may help you: 
    https://github.com/mxcl/homebrew/issues/8456 
    https://github.com/mxcl/homebrew/issues/8815 
    https://github.com/mxcl/homebrew/issues/9399 
Otherwise, please report the bug: 
    https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue 
We saved the configure log, please gist it if you report the issue: 
    ~/Library/Logs/Homebrew/config.log 

這是釀造醫生日誌:

$ brew doctor 
Unbrewed dylibs were found in /usr/local/lib. 

If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected dylibs: 
    /usr/local/lib/libavcodec.52.108.0.dylib 
    /usr/local/lib/libavcore.0.16.1.dylib 
    /usr/local/lib/libavdevice.52.2.3.dylib 
    /usr/local/lib/libavfilter.1.74.0.dylib 
    /usr/local/lib/libavformat.52.93.0.dylib 
    /usr/local/lib/libavutil.50.36.0.dylib 
    /usr/local/lib/libfaad.2.0.0.dylib 
    /usr/local/lib/libguide.dylib 
    /usr/local/lib/libmp3lame.0.0.0.dylib 
    /usr/local/lib/libswscale.0.12.0.dylib 

Unbrewed static libraries were found in /usr/local/lib. 

If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected static libraries: 
    /usr/local/lib/libavcodec.a 
    /usr/local/lib/libavcore.a 
    /usr/local/lib/libavdevice.a 
    /usr/local/lib/libavfilter.a 
    /usr/local/lib/libavformat.a 
    /usr/local/lib/libavutil.a 
    /usr/local/lib/libfaad.a 
    /usr/local/lib/libmp4ff.a 
    /usr/local/lib/libswscale.a 

Unbrewed .pc files were found in /usr/local/lib/pkgconfig. 

If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected .pc files: 
    /usr/local/lib/pkgconfig/libavcodec.pc 
    /usr/local/lib/pkgconfig/libavcore.pc 
    /usr/local/lib/pkgconfig/libavdevice.pc 
    /usr/local/lib/pkgconfig/libavfilter.pc 
    /usr/local/lib/pkgconfig/libavformat.pc 
    /usr/local/lib/pkgconfig/libavutil.pc 
    /usr/local/lib/pkgconfig/libswscale.pc 

Unbrewed .la files were found in /usr/local/lib. 

If you didn't put them there on purpose they could cause problems when 
building Homebrew formulae, and may need to be deleted. 

Unexpected .la files: 
    /usr/local/lib/libfaad.la 
    /usr/local/lib/libmp3lame.la 

We couldn't detect gcc 4.2.x. Some formulae require this compiler. 
NOTE: Versions of XCode newer than 4.2 don't include gcc 4.2.x. 

==> /usr/bin occurs before /usr/local/bin 
This means that system-provided programs will be used instead of those 
provided by Homebrew. This is an issue if you eg. brew installed Python. 

Consider editing your .bashrc to put: 
    /usr/local/bin 
ahead of /usr/bin in your PATH. 
Some brews install binaries to sbin instead of bin, but Homebrew's 
sbin was not found in your path. 

Consider editing your .bashrc to add: 
    /usr/local/sbin 
to the PATH variable. 

Some "config" scripts were found in your path, but not in system or Homebrew folders. 

`./configure` scripts often look for *-config scripts to determine if software packages 
are installed, and what additional flags to use when compiling and linking. 

Having additional scripts in your path can confuse software installed via Homebrew if 
the config script overrides a system or Homebrew provided script of the same name. 

/Library/Frameworks/Python.framework/Versions/Current/bin 
    python-config python2.5-config 

任何人都可以幫我嗎?

回答

2

我安裝時未使用brew

我手動安裝了x264,然後我安裝了ffmpeg

我不得不從這個網站有點幫助:

http://hunterford.me/compiling-ffmpeg-on-mac-os-x/

+1

網頁已不復存在,仍緩存在谷歌雖然。 http://webcache.googleusercontent.com/search?q=cache:hunterford.me/compiling-ffmpeg-on-mac-os-x/ – paulj

8

實際上是能夠解決這個錯誤有:

$brew uninstall lame 
$brew install lame 
$sudo brew link lame 
+0

它不適用於我 – egermano

+1

它爲我工作,thx。 – dirkk0