I got this error while installing mpc-1.0.2 under ubuntu 16.04
First, I ran the following command():
sudo ./configure --prefix=/usr --docdir=/usr/share/doc/mpc-1.0.2
It didn't give any error.
Then, I ran the make
command, which gave the following error:
make all-recursive
make[1]: Entering directory '/usr/mpc-1.0.2'
Making all in src
make[2]: Entering directory '/usr/mpc-1.0.2/src'
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. > -g -O2 -MT abs.lo -MD -MP -MF .deps/abs.Tpo -c -o abs.lo abs.c
libtool: compile: Failed to create `.libs'
Makefile:448: recipe for target 'abs.lo' failed
make[2]: * [abs.lo] Error 1
make[2]: Leaving directory '/usr/mpc-1.0.2/src'
Makefile:388: recipe for target 'all-recursive' failed
make[1]: * [all-recursive] Error 1
make[1]: Leaving directory '/usr/mpc-1.0.2'
Makefile:298: recipe for target 'all' failed
make: *** [all] Error 2
sudo apt install libmpc-dev
→ Provides version 1.0.3 in Ubuntu 16.04 packages.ubuntu.com/search?keywords=libmpc&searchon=names – Knud Larsen/usr
? (That's kind of a strange place for a source tree if it's not just something you pasted to hide your homedir/username) – lockcmpxchg8b/usr
– saint_shark