Installing Lame on Amazon Linux – command not found

SPRBRN asked:

I’m trying to install Lame on Amazon Linux. I’ve downloaded lame-3.99.5.tar.gz, uploaded it to the server, and tried to install it.

I followed this example:

  1. make sure you have the tools necessary to build from source:

    yum update

    yum install gcc gcc-c++ automake autoconf libtool yasm nasm git subversion

  2. Get the tarball for version you want here:

  3. upload the tarball somewhere on your server
  4. cd /path/to/lame-3.99.5 (or whatever version you downloaded)
  5. ./configure
  6. make && make install
  7. ldconfig

Steps 6 results in errors:

test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
 /bin/sh ../libtool   --mode=install /usr/bin/install -c '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/ /usr/local/lib/
/usr/bin/install: cannot create regular file '/usr/local/lib/': Permission denied
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/test/lame/lame-3.99.5/libmp3lame'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/test/lame/lame-3.99.5/libmp3lame'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/test/lame/lame-3.99.5/libmp3lame'
make: *** [install-recursive] Error 1

This is executed using sudo. I’ve tried to repeat this as root, and then no errors returned.

Step 7 returns nothing, but maybe that’s how it should work?

When I try to run lame I get command not found.

How can I get lame running?

My answer:

You encountered the error Permission denied installing lame when running make install.

This happened because the make install tried to create the file /usr/local/lib/ and could not do so, as shown in your error message.

/usr/bin/install: cannot create regular file '/usr/local/lib/': Permission denied

This step in the process needs to be run with sudo, i.e.:

sudo make install

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.