Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"fatal error: 'librtmp/rtmp.h' file not found", multiple installs failed, Mac OS X 10.9, #12

Open
kendog77 opened this issue Jul 23, 2014 · 24 comments

Comments

@kendog77
Copy link

"fatal error: 'librtmp/rtmp.h' file not found"

Hi, another one having troubles installing python-librtmp to Mac OS X, I tried a few different calls/methods for the install (pip, easy_install, etc) but always get the same error:
librtmp_ffi/__pycache__/_binding.c:186:14: fatal error: 'librtmp/rtmp.h' file not found

I'm using Mac OS X, Mavericks 10.9.4, and am needing to install python-librtmp as requested by 'livestreamer' when trying to access UStream:
[cli][info] Found matching plugin ustreamtv for URL http://www.ustream.tv/channel/11655601 [plugin.ustreamtv][warning] python-librtmp is not installed, but is needed to access the desktop streams [cli][info] Available streams: mobile_240p (worst), mobile_360p, mobile_480p (best)
...then it only offers the 'mobile' streams, which work well enough, I'm just not allowed to access the 'desktop' streams/resolutions..

cffi installed fine, but python-librtmp does not.

I've read somewhere to try to install it to Mac OS X with homebrew, but so far I've not been successful with that method either.. (total n00b to Homebrew), still looking into that method.

Any help would be amazing, I'm only new to all of this, I've only ever done ultra basic terminal etc coding before. Already so damn happy to get livestreamer sending live video streams to VLC, and being able to record live events that are on at like 2am here in Sydney, Australia, so I can sleep and watch later.

PS- Massive props to all of you guys who put so much effort in to these communities for the greater good and to help us all out!!

@Shriukan
Copy link

I am having the same issue. I even tried to do it all on a clean install with cffi, cc, homebrew and just about any method and it is always missing librtmp/rtmp.h

Anybody have some advice, help, trick, fix or just about anything that might get it installed?

@chrippa
Copy link
Owner

chrippa commented Aug 17, 2014

Anybody have some advice, help, trick, fix or just about anything that might get it installed?

Does the workaround described here work?

@Shriukan
Copy link

Actually it didn't. It kept giving me the exact same mistake despite me pointing the correct folders.

jimmys-mbp:python-librtmp jimmy$ python setup.py build_ext -I /Users/jimmy/python-librtmp/rtmpdump/rtmpdump/librtmp -L usr/local/lib install
running build_ext
building '_binding' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/Users/jimmy/python-librtmp/rtmpdump/rtmpdump/librtmp -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c librtmp_ffi/pycache/_binding.c -o build/temp.macosx-10.9-intel-2.7/librtmp_ffi/pycache/_binding.o
librtmp_ffi/pycache/_binding.c:186:14: fatal error: 'librtmp/rtmp.h' file
not found
#include <librtmp/rtmp.h>
^
1 error generated.
error: command 'cc' failed with exit status 1

@chrippa
Copy link
Owner

chrippa commented Aug 18, 2014

Those paths doesn't look correct... According to the homebrew docs it should be installing things in /usr/local, so perhaps this will work:

sudo python setup.py build_ext -I /usr/local/include -L /usr/local/lib install

@Shriukan
Copy link

Nope. Didn't work either. I'm already accepting my fate. I'll just keep going to the site I guess. Everything else works without any problems though so keep up the good work :) Good luck with the Twitch VoD issue.

@danshaw
Copy link

danshaw commented Aug 31, 2014

I just wanted to chime in that I am having this exact same issue. My machine is OSX 10.8.2 and I just can't figure out how to install. Shriukan if you found a solution please do report back. For now I am having to fire up a virtual box of Windows just to get higher resolution and would rather do it through osx.

@vyvey
Copy link

vyvey commented Oct 31, 2014

Any status updates? I'm also experiencing this issue at the moment.

@Shriukan
Copy link

Shriukan commented Nov 8, 2014

Nope. Still nothing.
Wouldn't it be possible to have that file added with the installer right away?

@ggilmore
Copy link

ggilmore commented Mar 2, 2015

Any updates? Sill broken on OSX for me :(

@karasline
Copy link

Tried yesterday on Yosemite 10.10.3 and still broken. I was able to manually find librtmp/rtmp.h in the /usr/local/include path. Not sure why the build script can't find it.

@piejanssens
Copy link

same here

@theo-ptz
Copy link

i've installed rtmpdump via brew
brew install rtmpdump

it works for me

@piejanssens
Copy link

I'll check it out this weekend

@josephmartin09
Copy link

Can confirm brew install rtmp dump works !

@Akagi201
Copy link

pip install --global-option=build_ext --global-option="-I/usr/local/include" --global-option="-L/usr/local/lib" python-librtmp

This works for me!

@larryhu
Copy link

larryhu commented May 10, 2016

@theo-ptz thanks!

@azunymous
Copy link

I was having this problem because I was using the brew python/pip to install python-librtmp. After brew install rtmpdump, I usedeasy_install to install pip and then pip to install python-librtmp.

@dpappas
Copy link

dpappas commented May 8, 2017

I used

sudo apt-get install librtmp-dev
sudo pip install python-librtmp

Worked like a charm

@VajiraPrabuddhaka
Copy link

Thanks @dpappas very cool...

@kamixueti
Copy link

I have the same problem。
It's need install librtmp.
Following this:
git clone git://git.ffmpeg.org/rtmpdump
cd rtmpdump/librtmp/
make && make install
cp librtmp.so.1 /usr/lib64/

@MarvinThiele
Copy link

I used

sudo apt-get install librtmp-dev
sudo pip install python-librtmp

Worked like a charm

Thank you. That actually works. I should be mentioned in the ReadMe.

@Samer78
Copy link

Samer78 commented Apr 27, 2020

from the terminal:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
$ brew install rtmpdump

@fergbrain
Copy link

@Akagi201 trick didn't quite work for me. I suspect it might be I have an M1 MacBook. However, the following did:

pip install --global-option=build_ext --global-option="-I/opt/homebrew/opt/rtmpdump/include/" --global-option="-L/opt/homebrew/opt/rtmpdump/lib" python-librtmp

Note that the location of the library and includes are different.

@wilsonssss
Copy link

resolution: #35 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests