Hi, we have a custom perl 5.8.9 and want to run on RHEL 8.x but as of v8 libnsl needs to be installed separately. Not an issue for us but some clients have difficulty changing their systems with yum install or what-not. So on our CentOS7 build system, renamed libnsl.so* so they wouldn't be found. The Configure script for perl leaves libnsl out since it's not found, but at the end of the make I see,
LD_LIBRARY_PATH=/home/lint/build/perl/perl-5.8.9 /home/lint/build/perl +/perl-5.8.9/preload /home/lint/build/perl/perl-5.8.9/libperl.so gcc - +L/usr/local/lib -o miniperl \ `echo gv.o toke.o perly.o op.o pad.o regcomp.o dump.o util.o mg.o + reentr.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o +pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsu +tils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_p +ack.o pp_sort.o | sed 's/ op.o / /'` \ miniperlmain.o opmini.o -ldl -lm -lcrypt -lutil -lc gcc: error while loading shared libraries: libnsl.so.1: cannot open sh +ared object file: No such file or directory make: *** [miniperl] Error 127
I can't figure out where the shared library request for libnsl.so.1 is coming from! Any suggestions? For instance, would I be better off trying to rebuild perl on a RHEL 8.x system instead? Or perhaps libnsl really is necessary for perl up to and through version x.xx? Thanks!

In reply to Rebuild older perl without libnsl? by cniggeler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.