Linux HOWTOs

About | Home | Search


HOWTO: twolame
Description: MPEG Audio Layer 2 encoder based on tooLAME
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# TwoLAME 0.3.8
# =============
# Prerequisites:
# pkg-config
# sndfile

cd
test -f installed/twolame-0.3.8.tar.gz &&
 mv installed/twolame-0.3.8.tar.gz .
test ! -f twolame-0.3.8.tar.gz &&
 wget http://www.ecs.soton.ac.uk/~njh/twolame/twolame-0.3.8.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "toolame-*" -exec rm -r {} \;
tar xzvf ~/twolame-0.3.8.tar.gz
cd twolame-0.3.8
test $UID = 0 && chown -R root:root .
./configure
make

# Become root to install it
su

rm -f /usr/local/lib/libtwolame.*
make install
ldconfig

# Become yourself again
exit

cd
mkdir -p -m 0700 installed
rm -f installed/twolame-*.tar.*
mv twolame-0.3.8.tar.gz installed/


# If you ever want to uninstall TwoLAME, this should do it:
# ('make uninstall' should do it if you have the configure'd source)
cd
su
test -d src/twolame-* && ( cd src/twolame-* ; make uninstall )
test -d /usr/local/share/doc/twolame && rm -r /usr/local/share/doc/twolame
rm -f \
 /usr/local/bin/twolame \
 /usr/local/include/twolame.h \
 /usr/local/lib/libtwolame.* \
 /usr/local/man/man1/twolame.1 \
 /usr/local/lib/pkgconfig/twolame.pc
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "twolame-*" -exec rm -r {} \;
rm -f ~/installed/twolame-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>