Alessio C.
Alessio C.

Reputation: 83

Makefile:252: recipe for target 'install' failed

I'm trying to install pwlib on my asterisk/ubuntu 16.04 server, but when I try to run make install I get the following error message:

( for dir in /usr/local/lib \
             /usr/local/bin \
             /usr/local/include/ptlib \
                     /usr/local/include/ptlib/unix/ptlib \
                     /usr/local/include/ptclib \
                     /usr/local/share/pwlib/make ; \
        do mkdir -p $dir ; chmod 755 $dir ; \
done )
/usr/bin/install -c -m 444 lib/libpt_linux_x86_64_r.so.1.12.0 /usr/local/lib
/usr/bin/install: cannot stat 'lib/libpt_linux_x86_64_r.so.1.12.0': No such file or directory
Makefile:252: recipe for target 'install' failed
make: *** [install] Error 1

Upvotes: 5

Views: 34275

Answers (4)

Lerie
Lerie

Reputation: 36

I had the same issue when installing dracut (https://github.com/dracutdevs/dracut). I was able to solve the issue by installing zlibc.

sudo apt -f -y install zlibc

you can also install all the zlib packages using a wildcard, if you're unsure about which package you need.

sudo apt -f -y install zlib*

Upvotes: 0

Luis Severino
Luis Severino

Reputation: 11

I had a similar issue.

Makefile:1264: recipe for target 'install' failed make: *** [install] Error 1

I scrolled through the installation locating the error message and found this:

ModuleNotFoundError: No module named 'zlib'

I googled how to download zlib and after installing zlib I was able to complete the installation

using : sudo make install

Upvotes: 1

Steve
Steve

Reputation: 347

Aware this is an old post but for anyone with a similar issue:

Sometimes running

make install

will throw this error while

sudo make install

will work

Upvotes: 9

nonthevisor
nonthevisor

Reputation: 143

Problem
This does not seem to be a makefile error, like your tags suggest.
Instead, the error lies in install. I'm not sure what the -c option does, since the man page only says (ignored), but with -m you are trying to set permissions to a file. lib/libpt_linux_x86_64_r.so.1.12.0 located in /usr/local/lib. However, this file does not exist in this location, as indicated by the error message No such file or directory.

I guess that you forgot to install some dependencies.

Solutions

  • If you have a configure script in your downloaded files, use it, maybe this will solve your dependency issues.
  • If this does not work, try installing your dependencies manually
  • You could also try alternatives, like the ptlib library, which is also available as package. For ubuntu, it should be libpth20, but I don't use ubuntu so you might have a look around if this is the correct package for you

Upvotes: 1

Related Questions