[asterisk-users] /usr/bin/ld: cannot find -lpq

ast guy astguy at gmail.com
Mon Aug 17 07:21:45 CDT 2009


Hi,
 I am trying to install asterisk-1.2.34 but facing following issue. I have
gone through it and found that there are files in /usr/lib

libpq.a       libpq.so      libpq.so.4    libpq.so.4.1


make[1]: Entering directory `/usr/src/asterisk-1.2.34/cdr'
gcc -shared -Xlinker -x -o cdr_pgsql.so  cdr_pgsql.o  -lpq -lz
-L/usr/lib/pgsql
/usr/bin/ld: skipping incompatible /usr/lib/libpq.so when searching for -lpq
/usr/bin/ld: skipping incompatible /usr/lib/libpq.a when searching for -lpq
/usr/bin/ld: cannot find -lpq
collect2: ld returned 1 exit status
make[1]: *** [cdr_pgsql.so] Error 1
make[1]: Leaving directory `/usr/src/asterisk-1.2.34/cdr'
make: *** [subdirs] Error 1

Pls comment!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090817/88ee80ad/attachment.htm 


More information about the asterisk-users mailing list