Makefile:252: recipe for target 'install' failed
Asked Answered
A

4

5

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
Amalberga answered 3/1, 2017 at 15:2 Comment(1)
What's wrong with the ptlib from the Ubuntu package manager?Jonme
P
9

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

Pinite answered 29/5, 2020 at 18:40 Comment(0)
B
1

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
Basseterre answered 4/9, 2019 at 9:36 Comment(0)
V
1

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

Virtuosic answered 9/1, 2022 at 22:47 Comment(0)
W
0

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*
Wallasey answered 6/7, 2024 at 9:43 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.