Install LAME MP3 Encoder

I have downloaded the LAME source tar.gz archive and extracted it to my ~/home. Then I right clicked the folder and ‘Open Terminal Here’ then ran ‘./configure’. That’s as far as I’ve gotten need some help.

./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/home/lame-3.99.5':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

Did you install gcc that is the compiler and is not installed by default

On 2015-09-18 01:36, marlboroman wrote:
>
> I have downloaded the LAME source tar.gz archive and extracted it to my
> ~/home. Then I right clicked the folder and ‘Open Terminal Here’ then
> ran ‘./configure’. That’s as far as I’ve gotten need some help.

Why don’t you install it from packman, with YaST?

If you want to build it, you will have to install the base development
metapackage. You are missing the C compiler, for starters.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

installed gcc and it’s 7 dependencies ran ‘./configure’ does this look correct? in the install text file it had 2 more commands it said to run ‘make’ and ‘make install’

./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... none
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for library containing strerror... none required
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) none
checking version of GCC... 4.8.3
checking for function prototypes... yes
checking for string.h... (cached) yes
checking dmalloc.h usability... no
checking dmalloc.h presence... no
checking for dmalloc.h... no
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking xmmintrin.h usability... yes
checking xmmintrin.h presence... yes
checking for xmmintrin.h... yes
checking linux/soundcard.h usability... yes
checking linux/soundcard.h presence... yes
checking for linux/soundcard.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking size of short... 2
checking size of unsigned short... 2
checking size of int... 4
checking size of unsigned int... 4
checking size of long... 8
checking size of unsigned long... 8
checking size of long long... 8
checking size of unsigned long long... 8
checking size of float... 4
checking size of double... 8
checking for long double with more range or precision than double... yes
checking for uint8_t... yes
checking for int8_t... yes
checking for uint16_t... yes
checking for int16_t... yes
checking for uint32_t... yes
checking for int32_t... yes
checking for uint64_t... yes
checking for int64_t... yes
checking for IEEE854 compliant 80 bit floats... yes
checking for ieee854_float80_t... no
checking for ieee754_float64_t... no
checking for ieee754_float32_t... no
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for gettimeofday... yes
checking for strtol... yes
checking for socket... yes
checking termcap.h usability... no
checking termcap.h presence... no
checking for termcap.h... no
checking ncurses/termcap.h usability... no
checking ncurses/termcap.h presence... no
checking for ncurses/termcap.h... no
checking for initscr in -ltermcap... no
checking for initscr in -lcurses... no
checking for initscr in -lncurses... no
checking for ld used by GCC... /usr/x86_64-suse-linux/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration... 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for cos in -lm... yes
checking for cos in -lffm... no
checking for cos in -lcpml... no
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
checking use of ElectricFence malloc debugging... no
checking use of file io... lame
checking use of analyzer hooks... yes
checking use of mpg123 decoder... yes (Layer 1, 2, 3)
checking if the lame frontend should be build... yes
checking if mp3x is requested... no
checking if mp3rtp is requested... no
checking if dynamic linking of the frontends is requested... no
checking for termcap... no
checking if I have to build the internal vector lib... yes
checking for nasm... no
checking for additional optimizations... no
checking for debug options... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libmp3lame/Makefile
config.status: creating libmp3lame/i386/Makefile
config.status: creating libmp3lame/vector/Makefile
config.status: creating frontend/Makefile
config.status: creating mpglib/Makefile
config.status: creating doc/Makefile
config.status: creating doc/html/Makefile
config.status: creating doc/man/Makefile
config.status: creating include/Makefile
config.status: creating Dll/Makefile
config.status: creating misc/Makefile
config.status: creating debian/Makefile
config.status: creating dshow/Makefile
config.status: creating ACM/Makefile
config.status: creating ACM/ADbg/Makefile
config.status: creating ACM/ddk/Makefile
config.status: creating ACM/tinyxml/Makefile
config.status: creating lame.spec
config.status: creating mac/Makefile
config.status: creating macosx/Makefile
config.status: creating macosx/English.lproj/Makefile
config.status: creating macosx/LAME.xcodeproj/Makefile
config.status: creating vc_solution/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

If you do it through packman doesn’t it make you install other codecs too? I just want ‘lame’ installed. Is building it a better way to do it?

Hi
Nope, only the lame library and ncurses…
https://pmbs.links2linux.de/package/binary/Essentials/lame?arch=x86_64&filename=lame-3.99.5-1015.1.x86_64.rpm&repository=openSUSE_13.2

Just download the files you want and install…
http://packman.links2linux.org/package/Lame

Lame is not a codec. It is a program the encodes MP3 files. Ie AFAIK lame is not dependent on any codecs except a MP3 codec

On 2015-09-18 02:46, marlboroman wrote:

> If you do it through packman doesn’t it make you install other codecs
> too?

That’s up to you.

> I just want ‘lame’ installed.

Then do.

> Is building it a better way to do it?

Define ‘better’ :slight_smile:


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

On 2015-09-18 02:46, marlboroman wrote:

> installed gcc and it’s 7 dependencies ran ‘./configure’ does this look
> correct?

Yes, unless you want gtk support.

> in the install text file it had 2 more commands it said to run
> ‘make’ and ‘make install’

Yes.

But do you know what you are doing?


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

Not sure what I’m supposed to do with these links. The first link I tried to add it to my repos but didn’t work. Second link I downloaded the correct lame and tried to install but am missing 2 libmp3 dependencies.

I mean better in the way that I don’t have to add unofficial repos.

Well when I ran this code it didn’t work.

for file in ./*.flac; do  -e "$file" ] && flac -cd "$file" | lame -V0 --vbr-new - "${file/.flac/.mp3}"; done
If 'lame' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf lame

flac 1.3.0, Copyright (C) 2000-2009, 2011-2013  Josh Coalson & Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

And no I don’t know what I’m doing. I’m learning though.

Hi
You also need libmp3lame0 and libncurses5, what does the exact error say?
http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.2/Essentials/x86_64/libmp3lame0-3.99.5-1015.1.x86_64.rpm

Did you do the install step?? BTW you do that one as root. The other steps as a regular user

Cannot access installation media
https://pmbs.links2linux.de/package/binary/Essentials/lame?arch=x86_64&filename=lame-3.99.5-1015.1.x86_64.rpm&repository=openSUSE_13.2
(Medium 1).
Check whether the server is accessible.

sudo make install. command not found

Hi
You won’t get anything from that link you need to use a mirror (the one for the library)
http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.2/Essentials/x86_64/

Unable to create repository
from URL ‘http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.2/Essentials/x86_64/’.

On Fri 18 Sep 2015 02:26:02 AM CDT, marlboroman wrote:

malcolmlewis;2728732 Wrote:
> Hi
> You won’t get anything from that link you need to use a mirror (the
> one for the library)
> http://tinyurl.com/ogfzdh2

Unable to create repository
from URL
http://mirror.karneval.cz/pub/linux/packman/suse/openSUSE_13.2/Essentials/x86_64/’.

Hi
No, just browse to the link, download the required rpms and manually
install as root user with zypper.

For example (you need to cd to the download location);


zypper in lame-3.99.5-1015.1.x86_64.rpm
zypper in libmp3lame0-3.99.5-1015.1.x86_64.rpm


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel
3.12.44-52.10-default If you find this post helpful and are logged into
the web interface, please show your appreciation and click on the star
below… Thanks!

Ok I got it to work now after running these 2 rpm’s

sudo rpm -i libmp3lame0-3.99.5-1015.1.x86_64.rpm
sudo rpm -i lame-3.99.5-1015.1.x86_64.rpm

Thanks for pointing me in the right direction everybody.