Skip to content
This repository has been archived by the owner. It is now read-only.

Error installing ffmpeg 2.2.1 #28474

Closed
troygrosfield opened this issue Apr 17, 2014 · 4 comments

Comments

@troygrosfield
Copy link

commented Apr 17, 2014

The command and output on MacOS Mavrick:

➜  ~  brew install ffmpeg --with-theora --with-libogg --with-libvorbis --with-freetype --with-fdk-aac --with-tools
Error: ffmpeg-2.1.3 already installed
To install this version, first `brew unlink ffmpeg'
➜  ~  brew unlink ffmpeg
Unlinking /usr/local/Cellar/ffmpeg/2.1.3... 81 symlinks removed
➜  ~  brew install ffmpeg --with-theora --with-libogg --with-libvorbis --with-freetype --with-fdk-aac --with-tools
==> Downloading http://ffmpeg.org/releases/ffmpeg-2.2.1.tar.bz2
Already downloaded: /Library/Caches/Homebrew/ffmpeg-2.2.1.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/2.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfr
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
ffmpeg-user@ffmpeg.org 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.

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
ffmpeg: add support for zvbi library (https://github.com/Homebrew/homebrew/pull/26316)

Which references #26316.

➜  ~  brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: 672b559e0c8556372303ab4388d1c83fba9c5e64
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
Clang: 5.1 build 503
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
@adamv

This comment has been minimized.

Copy link
Contributor

commented Apr 17, 2014

We need a gist of the full verbose install output, add -v to install command.

@troygrosfield

This comment has been minimized.

Copy link
Author

commented Apr 17, 2014

I was working on throwing it into a gist as stated in the troubleshooting guide.

@troygrosfield

This comment has been minimized.

Copy link
Author

commented Apr 17, 2014

If I don't include any of the options, ffmpeg installs as expected. So this works fine:

brew install -v ffmpeg

I previously had v2.1.3 install and everything was working fine. Checking the install error logs:

Logs:
     /Users/troy/Library/Logs/Homebrew/ffmpeg/01.configure
     /Users/troy/Library/Logs/Homebrew/ffmpeg/01.configure.cc
     /Users/troy/Library/Logs/Homebrew/ffmpeg/config.log

These open issues may also help:
Error installing ffmpeg 2.2.1 (https://github.com/Homebrew/homebrew/issues/28474)
ffmpeg: add support for zvbi library (https://github.com/Homebrew/homebrew/pull/26316)
➜  ~  tail /Users/troy/Library/Logs/Homebrew/ffmpeg/config.log
BEGIN /var/folders/m9/wzvnf5313yqb1zzp1rn18z_m0000gn/T//ffconf.Lt9k5zH3.c
    1   #include <lame/lame.h>
    2   int x;
END /var/folders/m9/wzvnf5313yqb1zzp1rn18z_m0000gn/T//ffconf.Lt9k5zH3.c
clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -pthread -I/usr/local/Cellar/freetype/2.5.3_1/include/freetype2 -E -o /var/folders/m9/wzvnf5313yqb1zzp1rn18z_m0000gn/T//ffconf.g9UEOFvK.o /var/folders/m9/wzvnf5313yqb1zzp1rn18z_m0000gn/T//ffconf.Lt9k5zH3.c
/var/folders/m9/wzvnf5313yqb1zzp1rn18z_m0000gn/T//ffconf.Lt9k5zH3.c:1:10: fatal error: 'lame/lame.h' file not found
#include <lame/lame.h>
         ^
1 error generated.
ERROR: libmp3lame >= 3.98.3 not found

However,

➜  ~  brew install lame
Warning: lame-3.99.5 already installed
@troygrosfield

This comment has been minimized.

Copy link
Author

commented Apr 17, 2014

Stumbled across #12110 and that resolve the libmp3lame issue.

➜  ~  brew unlink lame
Unlinking /usr/local/Cellar/lame/3.99.5... 0 symlinks removed
➜  ~  brew link lame
Linking /usr/local/Cellar/lame/3.99.5... 7 symlinks created

This got me over the first hump. Then started running into:

➜  ~  tail /Users/troy/Library/Logs/Homebrew/ffmpeg/config.log
BEGIN /var/folders/m9/wzvnf5313yqb1zzp1rn18z_m0000gn/T//ffconf.bzCVnESz.c
    1   #include <theora/theoraenc.h>
    2   int x;
END /var/folders/m9/wzvnf5313yqb1zzp1rn18z_m0000gn/T//ffconf.bzCVnESz.c
clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -pthread -I/usr/local/Cellar/freetype/2.5.3_1/include/freetype2 -E -o /var/folders/m9/wzvnf5313yqb1zzp1rn18z_m0000gn/T//ffconf.tVcBO1pV.o /var/folders/m9/wzvnf5313yqb1zzp1rn18z_m0000gn/T//ffconf.bzCVnESz.c
/var/folders/m9/wzvnf5313yqb1zzp1rn18z_m0000gn/T//ffconf.bzCVnESz.c:1:10: fatal error: 'theora/theoraenc.h' file not found
#include <theora/theoraenc.h>
         ^
1 error generated.
ERROR: libtheora not found

Which led me to #12485. Seems a little deceiving that it says the libs are installed, but for some reason you have to uninstall and reinstall the dep libs.

Either way, this worked for me.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.