From owner-freebsd-questions@FreeBSD.ORG Wed Jun 9 14:14:12 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BB9516A4CE for ; Wed, 9 Jun 2004 14:14:12 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D38B43D2D for ; Wed, 9 Jun 2004 14:14:12 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum1c-102.pit.adelphia.net [24.53.179.102]) by internet.potentialtech.com (Postfix) with ESMTP id B9EFC69A87; Wed, 9 Jun 2004 10:14:01 -0400 (EDT) Date: Wed, 9 Jun 2004 10:14:00 -0400 From: Bill Moran To: Odhiambo Washington Message-Id: <20040609101400.4fd604b2.wmoran@potentialtech.com> In-Reply-To: <20040609140246.GI5778@ns2.wananchi.com> References: <20040609133050.GG5778@ns2.wananchi.com> <40C713D7.8070209@aeternal.net> <20040609140246.GI5778@ns2.wananchi.com> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: corwin@aeternal.net cc: freebsd-questions@FreeBSD.org Subject: Re: Net::LibIDN X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 14:14:12 -0000 Odhiambo Washington wrote: > * Martin Hudec [20040609 16:40]: wrote: > > Hello, > > > > Odhiambo Washington wrote: > > > > > > CPAN.pm: Going to build T/TH/THOR/Net-LibIDN-0.07.tar.gz > > > > > >/usr/bin/ld: cannot find -lidn > > >This module requires GNU Libidn, which could not be found. > > > > > >What am I gonna do? ;-)) > > > > and did you try this one to install as prerequisite for Net-LibIDN? > > > > amber# make search name="libidn" > > Port: libidn-0.4.6 > > Path: /usr/ports/devel/libidn > > Info: Internationalized Domain Names command line tool > > Maint: krion@FreeBSD.org > > Index: devel > > B-deps: expat-1.95.7 gengetopt-2.11 gettext-0.13.1_1 libgnugetopt-1.2 > > libiconv-1.9.1_3 libtool-1.3.5_2 > > R-deps: expat-1.95.7 gettext-0.13.1_1 libgnugetopt-1.2 libiconv-1.9.1_3 > > I mentioned that I had installed devel/libidn. Didn't you see? ;-)) > > > And perhaps then try to install your wanted perl module from ports > > instead of CPAN: > > > > Port: p5-Net-LibIDN-0.07_1 > > Path: /usr/ports/devel/p5-Net-LibIDN > > Info: This module provides access to the libidn library > > Maint: domi@saargate.de > > Index: devel perl5 > > B-deps: expat-1.95.7 gettext-0.13.1_1 libgnugetopt-1.2 libiconv-1.9.1_3 > > libidn-0.4.6 > > R-deps: expat-1.95.7 gettext-0.13.1_1 libgnugetopt-1.2 libiconv-1.9.1_3 > > libidn-0.4.6 > > Now this has worked for me. Thanks so much, although I don't like > installing Perl Modules using the ports, but since it works, I will > use this method in the future when I am btn a rock and a hard place. Probably what happened is that FreeBSD installs libidn in a different location than Linux-centrix CPAN expects, thus installing the module from CPAN, it can't find it. When you install perl modules from ports, the FreeBSD ports magic ensures that the proper (in the FreeBSD world) locations are checked. The upshot being, if you don't install everything from ports, you need to learn how to tell the installation program where to look for dependencies. There's probably some option you can pass to CPAN to tell it where to look. On the flip side, I'm not 100% sure this was the problem, but it's the most common reason I've seen for this kind of failure. -- Bill Moran Potential Technologies http://www.potentialtech.com