perl installation problem

Cristi Tudose cristi.tudose at rdsor.ro
Sun Apr 10 03:10:37 PDT 2005


Hi all.
Please help me to install the perl5.
he seems to miss some -lnsl librari.

There is the output of my try.

[cristi at mail perl5]$ make install clean
===>  Extracting for perl-5.6.2_2
=> Checksum OK for perl-5.6.2.tar.gz.
=> 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 at mail perl5]$ su
Password:
su-2.05b# make install clean
===>  Extracting for perl-5.6.2_2
=> Checksum OK for perl-5.6.2.tar.gz.
=> Checksum OK for BSDPAN-5.6.2.tar.gz.
===>  Patching for perl-5.6.2_2
===>  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
===>  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="/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 <stdio.h>
int main() { printf("Ok\n"); exit(0); }

I used the command:

        cc -o try -O -pipe -DAPPLLIB_EXP="/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.
===>  Script "Configure" failed unexpectedly.
Please report the problem to tobez at 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.


More information about the freebsd-questions mailing list