Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

FFMPEG x264 Library Not Found #11785

Closed
dgautsch opened this issue Apr 20, 2012 · 6 comments
Closed

FFMPEG x264 Library Not Found #11785

dgautsch opened this issue Apr 20, 2012 · 6 comments

Comments

@dgautsch
Copy link

Hi, I'm using brew to install FFMPEG to be used with Drupal and the Video module. I've been troubleshooting things for close to a week now and I finally did a var dump of the module I'm trying to use it with and I get the following errors:

Here is my otool dump and the error I was receiving. https://gist.github.com/2431193

My technical knowledge only goes so far and I'm not sure how to get this working. I've tried reinstalling things multiple times and brew doctor doesn't report any issues. I'm on OSX 10.6.8 and I'm using xcode 3.2.6

@mistydemeo
Copy link
Member

Is your version of Homebrew up to date? Can you verify that your x264 is up to date? The current version in Homebrew is r2184, and you might have trouble if you have an older version installed.

(PS - in the future, could you paste large blocks of text at gist.github.com? Thanks!)

@dgautsch
Copy link
Author

Hi misty. Sorry for the large blocks. I've edited the post. My homebrew is up to date and my x264 is at r2184.

@2bits
Copy link
Contributor

2bits commented Apr 21, 2012

Have you ever installed anything into /usr/local using sudo? stat() failed with errno=13 is likely a permissions problem. Please gist the output of

file /usr/local/bin/ffmpeg
file /usr/local/lib/libx264.120.dylib
ls -ld /usr/local
ls -ld /usr/local/lib
ls -l /usr/local/lib/libx264.120.dylib
ls -l /usr/local/Cellar/x264/r2184/lib/libx264.120.dylib
find /usr/local -user root
brew --config
brew doctor
set

@dgautsch
Copy link
Author

Hi 2bits,

I have unfortunately I have sudo installed with brew before but corrected my mistake after reading some stuff on the web. Here is the output you requested. Looking at it there does indeed seem to be some awry permissions.

https://gist.github.com/2431193#file_requested+terminal+output

Set Output: https://gist.github.com/2431193#file_set+output

@2bits
Copy link
Contributor

2bits commented Apr 21, 2012

Let's safely resolve that permissions issue on your directories.

sudo chown dgautsch /usr/local/share/man/whatis
find /usr/local -type d -exec chmod 755 '{}' \;
find /usr/local -group staff -exec chgrp admin '{}' \;

The first command changes whatis to be owned by you. It's no big deal, but let's fix it anyway so the following commands don't get hung up on it.

The 2nd command finds all the directories below /usr/local and changes the permissions on them to be drwxr-xr-x so that they can be read and executed by everyone. This is the standard.

The 3rd command finds all files and directories that are in the staff group and changes them to the admin group. This is the new Homebrew standard that was put in place sometime between November and February, I forget when. You will end up with the same thing I have after a clean install, things like this:

$ ls -ld /usr/local/lib
drwxr-xr-x  331 dgautsch  admin  11254 Apr 21 00:17 /usr/local/lib

Then do the usual

brew rm -f ffmpeg
brew install -vd ffmpeg

or add the options you want, tools or ffplay, to that install command. Let us know how it works.

@dgautsch
Copy link
Author

2bits. It worked out great. I'll have to make sure I'm more up to date on these things down the line as far as homebrew permissions. I'm sure I messed things up somehow in the past. Either way I can't thank you enough.

Everything is installed and working great.

Thanks.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants