The follow-on to this article is Compiling ffmpeg on RedHat.
Compiling LAME is fairly straight-forward if your environment is already configured, but that wasn’t as obvious as I’d hoped. I share here the steps I went through to get LAME compiled and installed on a RedHat system.
First you need to run ‘configure’ which builds a makefile specific to your environment:
but annoyingly I had a failure:
checking build system type... mkdir: cannot create directory `./tmp/cg28625-18078': No such file or directory
config.guess: cannot create a temporary directory in ./tmp
The solution was to make a ‘tmp’ directory in my HOME directory:
and export a TMPDIR so that the makefile knew where to find ‘tmp’:
After this I added $HOME as the directory for installing the compiled libraries (I already had a ‘bin’ and ‘lib’ in my $HOME):
Next it was as simple as:
and the LAME libraries were installed in my ‘$HOME/lib’ ready for use by ffmpeg.If you enjoyed this post, make sure you subscribe to my RSS feed!