From owner-freebsd-questions@FreeBSD.ORG Sun Apr 10 10:10:37 2005 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 6D79516A4CE for ; Sun, 10 Apr 2005 10:10:37 +0000 (GMT) Received: from mail.rdsor.ro (mail.rdsor.ro [193.231.238.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B919743D41 for ; Sun, 10 Apr 2005 10:10:35 +0000 (GMT) (envelope-from cristi.tudose@rdsor.ro) Received: from localhost (localhost [127.0.0.1]) by mail.rdsor.ro (Postfix) with ESMTP id 3360811031 for ; Sun, 10 Apr 2005 12:16:33 +0300 (EEST) Received: from mail.rdsor.ro ([127.0.0.1]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18380-01-41 for ; Sun, 10 Apr 2005 12:16:29 +0300 (EEST) Received: from sheriff (unknown [82.77.57.57]) by mail.rdsor.ro (Postfix) with SMTP id AA41E1102F for ; Sun, 10 Apr 2005 12:16:29 +0300 (EEST) Message-ID: <000d01c53db5$8568f3f0$39394d52@sheriff> From: "Cristi Tudose" To: Date: Sun, 10 Apr 2005 13:10:28 +0300 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by antivirus at rdsor.ro Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: perl installation problem 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: Sun, 10 Apr 2005 10:10:37 -0000 Hi all. Please help me to install the perl5. he seems to miss some -lnsl librari. There is the output of my try. [cristi@mail perl5]$ make install clean =3D=3D=3D> Extracting for perl-5.6.2_2 =3D> Checksum OK for perl-5.6.2.tar.gz. =3D> Checksum OK for BSDPAN-5.6.2.tar.gz. mkdir: /usr/ports/lang/perl5/work: Permission denied *** Error code 1 Stop in /usr/ports/lang/perl5. [cristi@mail perl5]$ su Password: su-2.05b# make install clean =3D=3D=3D> Extracting for perl-5.6.2_2 =3D> Checksum OK for perl-5.6.2.tar.gz. =3D> Checksum OK for BSDPAN-5.6.2.tar.gz. =3D=3D=3D> Patching for perl-5.6.2_2 =3D=3D=3D> Applying FreeBSD patches for perl-5.6.2_2 /usr/bin/sed -e 's|%%PREFIX%%|/usr/local|g;' -e = 's|%%PERL_VER%%|5.6.2|g;' -e 's|%%PERL_VERSION%%|5.6.2|g;' -e = 's|%%PERL_ARCH%%|mach|g;' -e 's|%%MAKE_CONF%%|/etc/make.conf|g;' = /usr/ports/lang/perl5/files/use.perl > = /usr/ports/lang/perl5/work/use.perl /bin/cp /usr/ports/lang/perl5/work/use.perl = /usr/ports/lang/perl5/work/pkg-install /bin/cp /usr/ports/lang/perl5/work/use.perl = /usr/ports/lang/perl5/work/pkg-deinstall =3D=3D=3D> Configuring for perl-5.6.2_2 First let's make sure your kit is complete. Checking... Locating common programs... Checking compatibility between /bin/echo and builtin echo (if any)... Symbolic links are supported. Checking how to test for symbolic links... You can test for symbolic links with 'test -h'. Good, your tr supports [:lower:] and [:upper:] to convert case. Using [:upper:] and [:lower:] to convert case. 3b1 dynix isc_2 opus = sunos_4_1 aix dynixptx linux os2 super-ux altos486 epix lynxos os390 svr4 amigaos esix4 machten os400 svr5 apollo fps machten_2 posix-bc ti1500 atheos freebsd mint powerux titanos aux_3 genix mips qnx ultrix_4 beos gnu mpc rhapsody umips bsdos greenhills mpeix sco unicos convexos hpux ncr_tower sco_2_3_0 unicosmk cxux i386 netbsd sco_2_3_1 = unisysdynix cygwin irix_4 newsos4 sco_2_3_2 utekv darwin irix_5 next_3 sco_2_3_3 uts dcosx irix_6 next_3_0 sco_2_3_4 uwin dec_osf irix_6_0 next_4 solaris_2 vmesa dgux irix_6_1 nonstopux stellar vos dos_djgpp isc openbsd sunos_4_0 Which of these apply, if any? [freebsd] Some users have reported that Configure halts when testing for the O_NONBLOCK symbol with a syntax error. This is apparently a sh error. Rerunning Configure with ksh apparently fixes the problem. Try ksh Configure [your options] Operating system name? [freebsd] Operating system version? [5.4-stable] Build a threading Perl? [n] Build Perl for multiplicity? [n] Use which C compiler? [cc] Checking for GNU cc in disguise and/or its version number... Now, how can we feed standard input to your C preprocessor... Directories to use for library searches? [/usr/lib /usr/local/lib] What is the file extension used for shared libraries? [so] Build Perl for SOCKS? [n] Checking for optional libraries... What libraries to use? [-lnsl -lgdbm -lm -lc -lcrypt -lutil] What optimizer/debugger flag should be used? [-O -pipe ] Any additional cc flags? [-DAPPLLIB_EXP=3D"/usr/local/lib/perl5/5.6.2/BSDPAN" -DHAS_FPSETMASK = -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include] Let me guess what the preprocessor flags are... Any additional ld flags (NOT including libraries)? [-Wl,-E -L/usr/local/lib] Checking your choice of C compiler and flags for coherency... I've tried to compile and run the following simple program: #include int main() { printf("Ok\n"); exit(0); } I used the command: cc -o try -O -pipe = -DAPPLLIB_EXP=3D"/usr/local/lib/perl5/5.6.2/BSDPAN" -DHAS_FPSETMASK = -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include -Wl,-E = -L/usr/local/lib try.c -lnsl -lgdbm -lm -lc -lcrypt -lutil ./try and I got the following output: /usr/bin/ld: cannot find -lnsl I can't compile the test program. You have a BIG problem. Shall I abort Configure [y] Ok. Stopping Configure. =3D=3D=3D> Script "Configure" failed unexpectedly. Please report the problem to tobez@FreeBSD.org [maintainer] and attach = the "/usr/ports/lang/perl5/work/perl-5.6.2/config.log" including the output = of the failure of your make command. Also, it might be a good idea to = provide an overview of all packages installed on your system (e.g. an `ls /var/db/pkg`). *** Error code 1 Stop in /usr/ports/lang/perl5. What i need to install to have this -lnsl library ? Thank.