Introduction to LAME

The LAME package contains an MP3 encoder and optionally, an MP3 frame analyzer. This is useful for creating and analyzing compressed audio files.



Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

Package Information

LAME Dependencies


Dmalloc, Electric Fence, libsndfile-1.2.2 and NASM-2.16.03

Editor Notes:

Installation of LAME

Prevent the source code directory from mistakenly hardcoded as a shared library search path in the installed programs:

sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure

Install LAME by running the following commands:

./configure --prefix=/usr --enable-mp3rtp --disable-static &&

To test the results, issue: LD_LIBRARY_PATH=libmp3lame/.libs make test.

Now, as the root user:

make pkghtmldir=/usr/share/doc/lame-3.100 install

Command Explanations

--enable-mp3rtp: This switch enables building the encode-to-RTP program.

--disable-static: This switch prevents installation of static versions of the libraries.

--enable-nasm: Enable the use of NASM-2.16.03 to compile optimized assembly routines for 32-bit x86. This option has no effect on x86_64.


Installed Programs: lame and mp3rtp
Installed Library:
Installed Directories: /usr/include/lame and /usr/share/doc/lame-3.100

Short Descriptions


creates MP3 audio files from raw PCM or .wav data


is used to encode MP3 with RTP streaming of the output

libraries provide the functions necessary to convert raw PCM and WAV files to MP3 files