A couple of years back I used an application called StreamRipperX which had a pretty bad rep as it was said to contain some form of spyware, this was an open source GUI on top of the open source StreamRipper application for Unix / Windows / Linux etc…. StreamRipperX (The GUI with the spyware) no longer works so I had a look around and the same guy now offers a new application that does the same thing but it’s now for pay (git).
Me just wanting to rip a stream I had a look around and couldn’t find any other apps so I headed over to http://streamripper.sourceforge.net/ and downloaded the latest source code for the main application (1.62.1) and tried to compile it, well no cigar seems there are some problems that I will get around to reporting. Next I tried the previous release 1.62.0 and again I couldn’t get it to compile. I then downloaded the old source code for 1.0.5 which is well old (November 2004) and that built ok and worked fine.
Not wanting to give up I looked around and found that MacPorts / DarwinPorts has 1.62.0 listed as a package, this meant that it would compile on Mac OS X. MacPorts is a ports system that has a catalog of unix apps, it downloads all the source and dependencies and builds the apps for you. On my main system I do not have the Apple Developer tools installed and also I like to keep the system nice and clean, so no big dependency libs for a small command line applications. I did some digging around and found the information needed to build a full install of StreamRipper, to do a full install you would need libogg libvorbis and libiconv. Since I don’t want to rip ogg streams libogg and libvorbis weren’t needed, OS 10 has iconv so that was no problem. At this point I could get the application to build but not install. This was a simple fix I just changed the permissions on the install script and all was well at last.
I noticed that StreamRipper 1.62.0 built quite a few extra bits for the TRE library and some other bits, this was fine I installed it and tried using it. For some reason it would start getting the stream but not the track info so every stream would overwrite the previous as they had the same name. I was getting really pissed off by this point so went to the last stable build on the last branch which was version 1.61.27. This built fine in the same way with the changes and works great, no TRE dependencies just two nice files :). Anyway here is the instructions I pieced together and got it going with.
- First grab the Apple Developer Tools from developer.apple.com and install them.
- Download the unix source code from http://streamripper.sourceforge.net/ and unpack it to your desktop.
- You should now have a folder named streamripper-1.61.27 on your desktop or where ever you put it. Open up the Terminal and navigate to the folder. cd ~/desktop/streamripper-1.61.27 Next we need to change the permissions on the install-sh file, so just type chmod 755 install-sh
- Now comes the all important configure command, for what ever reason the standard ./configure doesn’t work too well, my example doesn’t use ogg so if you want it you have to sort it. Ok well type the following.
env CFLAGS=”-O3 -g -isysroot /Developer/SDKs/MacOSX10.5.sdk -fno-omit-frame-pointer” CXXFLAGS=”${CFLAGS}-felide-constructors \
-fno-exceptions -fno-rtti”./configure –without-ogg –without-vorbis –with-included-tre –disable-dependency-tracking
Next you will see the configure stuff going by. - Once the prompt is back just type sudo make installThis will build and then install StreamRipper into /usr/local/bin
- You should be done. Type streamripper -h and you should see the help options. Your now done, Enjoy!
If you can’t get it to run best to check it’s installed correctly. Still in the Terminal go to cd /usr/local/bin and then type ls -a if you see streamripper then it’s installed ok. You can test it here by typing ./streamripper -h. Once you have verified that it is working you might as well add /usr/local/ to your path so that you can just type streamripper in any Terminal window.
To add this path and the man path to your system go in to your home folder using cd ~/. Next we need to create a Terminal profile, this is pretty simple type nano .profile once inside the nano editor copy and paste the code bellow in.
export PATH=”/usr/local/bin:$PATH”
export MANPATH=”/usr/local/man:$MANPATH”
Now just press control and X to exit, answer Y to save the file. Close the current Terminal window and open a new one and test your new streamripper install! Once you have set this path you won’t need to do it again, it will work for all apps you install.
Streamripper 1.62.3 Universal (Download) Package Removed as it needs some patches There are other packages in the Downloads section of the site.
