"cannot find -lnetpbm" (Ubuntu)

356 views
Skip to first unread message

Maik Riechert

unread,
Oct 8, 2013, 11:26:43 AM10/8/13
to astro...@googlegroups.com
Hi,

I installed  libnetpbm10-dev and netpbm and makefile.os-features contains a "HAVE_NETPBM := yes". But as soon as I "make install" I get:

make -C blind install-extra
make[1]: Entering directory `/home/mriecher/apps/_sources/astrometry.net-0.43/blind'
gcc -o plotquad plotquad.o matchfile.o matchobj.o ../util/cairoutils.o ../util/libanfiles.a ../util/libanutils.a ../gsl-an/libgsl-an.a ../qfits-an/lib/libqfits.a  -g -Wall -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fPIC -Winline -fPIC -lcairo   -lpng12   -L. -lnetpbm -ljpeg  -lm
/usr/bin/ld: cannot find -lnetpbm
collect2: ld returned 1 exit status

locate netpbm returns:

/usr/lib/libnetpbm.so.10
/usr/lib/libnetpbm.so.10.0
/usr/share/netpbm
/usr/share/doc/libnetpbm10
...
/usr/share/netpbm/palmcolor8.map
/usr/share/netpbm/palmgray1.map
/usr/share/netpbm/palmgray2.map
/usr/share/netpbm/palmgray4.map
/var/cache/apt/archives/libnetpbm9-dev_2%3a10.0-15_amd64.deb
/var/cache/apt/archives/libnetpbm9_2%3a10.0-15_amd64.deb
/var/lib/dpkg/info/libnetpbm10.list
/var/lib/dpkg/info/libnetpbm10.md5sums
/var/lib/dpkg/info/libnetpbm10.postinst
/var/lib/dpkg/info/libnetpbm10.postrm
/var/lib/dpkg/info/libnetpbm10.shlibs
/var/lib/dpkg/info/libnetpbm9.list
/var/lib/dpkg/info/libnetpbm9.md5sums
/var/lib/dpkg/info/libnetpbm9.postinst
/var/lib/dpkg/info/libnetpbm9.postrm
/var/lib/dpkg/info/libnetpbm9.shlibs
/var/lib/dpkg/info/netpbm.list
/var/lib/dpkg/info/netpbm.md5sums

I tried using -lnetpbm10 but that didn't work either, same error.

Any ideas?

Cheers
Maik

Dustin Lang

unread,
Oct 8, 2013, 11:35:33 AM10/8/13
to astro...@googlegroups.com
-lnetpbm will be looking for a file named "libnetpbm.so"

Normally there is a symbolic link from libnetpbm.so to the version you actually have; for example, on one of my systems I have:

libnetpbm.so -> libnetpbm.so.10
libnetpbm.so.10 -> libnetpbm.so.10.0
libnetpbm.so.10.0

Maybe you need to install a "libnetpbm-dev" package to get the symlinks?

cheers,
--dustin



Reply all
Reply to author
Forward
0 new messages