Compiling Streamripper on CentOS 5 – Problems & Solutions

If you tried compiling the latest version of streamripper (1.64.6), you’ll probably see the following error:


./configure 

< Snip > 

*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: Glib 2.16 or greater required

If so, try using an older version such as 1.62.0:


cd streamripper-1.62.0
./configure
make

< Snip >

Making all in po
make[3]: Entering directory `/home/leo/streamrip/streamripper-1.62.0/tre-0.7.2/po'
test -z "fi.gmo" || make fi.gmo
make[4]: Entering directory `/home/leo/streamrip/streamripper-1.62.0/tre-0.7.2/po'
rm -f fi.gmo && : -c --statistics -o fi.gmo fi.po
mv: cannot stat `t-fi.gmo': No such file or directory
make[4]: *** [fi.gmo] Error 1
make[4]: Leaving directory `/home/leo/streamrip/streamripper-1.62.0/tre-0.7.2/po'
make[3]: *** [stamp-po] Error 2
make[3]: Leaving directory `/home/leo/streamrip/streamripper-1.62.0/tre-0.7.2/po'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/leo/streamrip/streamripper-1.62.0/tre-0.7.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/leo/streamrip/streamripper-1.62.0/tre-0.7.2'
make: *** [all-recursive] Error 1

If you run into the error above while compiling, try to configure with the ' --disable-adplug' flag.


./configure --disable-adplug
make
make install

wget: Recursively Download a Directory

Suppose I have a directory with a set of files (and perhaps other directories) under http://example.com/files/distros/ which has directory indexes enabled.

In order to download all files under the ‘distros’ directory using wget, run:


wget -r -np -nH -R index.html http://example.com/files/distros/

Where:
-r : recurse through all files and directories
-np : no parent / do not recurse up to the parent directory
-nH : no host / disable generation of host directories when saving files
-R : reject any files named ‘index.html’