Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sun Aug 20, 2017 6:15 pm


FreeBSD ports and pkg, Linux rpm yum and apt, AIX lpp discussions

Author Message
debuser
  Post  Post subject: Courier compile fails with "/usr/bin/ld: cannot find -lperl"  |  Posted: Wed Aug 12, 2009 6:37 pm

Joined: Thu Aug 06, 2009 2:48 am
Posts: 105

Offline
 

Courier compile fails with "/usr/bin/ld: cannot find -lperl"

I've tried to compile courier on a Debian system and it fails with lperl error:
Code:
$ make && make check
.............................
/bin/bash ./libtool --tag=CC   --mode=link gcc  -I./.. -I.. -I./../.. -I../.. -I./../../.. -I ../../.. -g -O2  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.10/CORE    -o perlfilter perlfilter.o ../libfilter/libfilter.a ../../../waitlib/libwaitlib.a ../../libs/libcommon.la ../../libs/libcourier.la -Wl,-E  -L/usr/local/lib  -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
libtool: link: gcc -I./.. -I.. -I./../.. -I../.. -I./../../.. -I ../../.. -g -O2 -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -o perlfilter perlfilter.o -Wl,-E  ../libfilter/libfilter.a ../../../waitlib/libwaitlib.a ../../libs/.libs/libcommon.a ../../libs/.libs/libcourier.a -L/usr/local/lib -L/usr/lib/perl/5.10/CORE -lperl -ldl -lm -lpthread -lc -lcrypt
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[6]: *** [perlfilter] Error 1
make[6]: Leaving directory `/tmp/courier-0.62.2/courier/filters/perlfilter'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/tmp/courier-0.62.2/courier/filters/perlfilter'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/tmp/courier-0.62.2/courier/filters'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/courier-0.62.2/courier/filters'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/courier-0.62.2/courier'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/courier-0.62.2/courier'
make: *** [all-recursive] Error 1
makeobj[0]: Leaving directory `/tmp/courier-0.62.2'


The configure script runs successfully, but the compiling fails.
Thanks for any info provided.





Top
debuser
Post  Post subject: Re: Compiling courier on Debian Lenny fails  |  Posted: Thu Aug 13, 2009 10:36 am

Joined: Thu Aug 06, 2009 2:48 am
Posts: 105

Offline
Seems that I needed to install libperl-dev package.

It needed the /usr/lib/libperl.so library which is installed by this package:

Code:
# dpkg -S /usr/lib/libperl.so
libperl-dev: /usr/lib/libperl.so


Top
debuser
Post  Post subject: Re: Compiling courier on Debian Lenny fails  |  Posted: Thu Aug 13, 2009 10:36 am

Joined: Thu Aug 06, 2009 2:48 am
Posts: 105

Offline
Code:
# apt-get install libperl-dev


Top
waleed222
Post  Post subject: Re: Courier compile fails with "/usr/bin/ld: cannot find -lperl"  |  Posted: Wed Mar 04, 2015 5:56 am

Joined: Wed Mar 04, 2015 5:45 am
Posts: 1

Offline
Since Nemesis development stopped a long time ago, it doesn't compile by default on x86_64 architectures. Following error will appear.

_________________
http://www.test-king.com/vendor-ITIL.htm
http://test-king.com/cert-CompTIA-Security-plus.htm
http://www.quincy.edu/


Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Courier compile fails with "/usr/bin/ld: cannot find -lperl""
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Can't compile ssldump on FreeBSD 6 - compile fails

admin

0

606

Thu Mar 17, 2011 11:26 am

admin View the latest post

There are no new unread posts for this topic. vlc-2.1.5 port fails to compile on FreeBSD 9.2

mandrei99

0

723

Sun Dec 28, 2014 5:32 pm

mandrei99 View the latest post

There are no new unread posts for this topic. FFMPEG svn 24953 compile fails videodev.h:56: error: expected specifier-qualifier-list before ‘ulong

debuser

0

449

Fri Aug 27, 2010 7:01 am

debuser View the latest post

There are no new unread posts for this topic. /usr/bin/ld: cannot find -lltdl PHP Compiling fails on Centos/Red Hat

mandrei99

0

1216

Mon Feb 22, 2010 7:08 am

mandrei99 View the latest post

There are no new unread posts for this topic. "checking for libnet_build_ip in -lnet... no"+"ERROR! Libnet library not found"

debuser

1

2340

Tue Dec 06, 2011 10:32 am

admin View the latest post

There are no new unread posts for this topic. How to check which package a specific file belongs to in FreeBSD - "pkg_info -W"

mandrei99

0

1361

Mon Oct 17, 2011 8:39 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD list files installed by a specific software package - "pkg_info -L"

mandrei99

0

3384

Mon Oct 17, 2011 8:26 am

mandrei99 View the latest post

There are no new unread posts for this topic. FreeBSD error when compiling world "archive_hash.h:129:20: error: sha1.h: No such file or directory"

mandrei99

0

403

Tue May 28, 2013 5:41 am

mandrei99 View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO