The Libmp3lame library is already in the Debian Base Library and installed Apt-get install Libmp3lame-dev to
CentOS generally requires source installation, Yum installation cannot find a usable code warehouse
The following is the installation command
$ sudo yum install gcc git $ wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
$ TAR-XZF lame-3.99.5.tar.gz
$ CD lame-3.99.5
$./configure--enable-static--enable-shared
$ make
$ sudo make install
Before you run make, you can customize the compilation options with the appropriate options in configure. You can check the available options with the following command:
$./configure--help
Finally, you need to complete the final step because the lame shared library installed in/usr/local/lib may not be available in other programs.
Add this line in/etc/ld.so.conf:/usr/local/lib
Then run the following command. This adds the shared libraries (including lame) in/usr/local/lib to the dynamic load cache, which other programs can access.
$ sudo ldconfig