Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.85k stars 527 forks source link

Perl installation errors on AIX 4.2 #5369

Closed p5pRT closed 20 years ago

p5pRT commented 22 years ago

Migrated from rt.perl.org#9025 (status was 'resolved')

Searchable as RT9025$

p5pRT commented 22 years ago

From anh-thu.tran@lmco.com

Hi

I got the errors when running sh Configure -de to install Perl 5.6.1 on aix machine.
ld​: 0706-006 Cannot find or open library file​: -l bind ld​:open()​: No such file or directory I can't compile the test program. (The supplied flags or libraries might be incorrect.)

You have a BIG problem. Shall I abort Configure [y]
Ok. Stopping Configure. Please see the attachment for more details.

\<\<configureperl.txt>>

p5pRT commented 22 years ago

From anh-thu.tran@lmco.com

(Feeding myself to /usr/bin/bsh to avoid AIX 4's /bin/sh.)

Beginning of configuration questions for perl5.

Checking echo to see how to suppress newlines... ....using \c The star should be here-->*

First let's make sure your kit is complete. Checking... Looks good...

Would you like to see the instructions? [n]

Locating common programs... awk is in /usr/bin/awk. cat is in /usr/bin/cat. comm is in /usr/bin/comm. cp is in /usr/bin/cp. echo is in /usr/bin/echo. expr is in /usr/bin/expr. grep is in /usr/bin/grep. ls is in /usr/bin/ls. make is in /usr/bin/make. mkdir is in /usr/bin/mkdir. rm is in /usr/bin/rm. sed is in /usr/bin/sed. sort is in /usr/bin/sort. touch is in /usr/bin/touch. tr is in /usr/bin/tr. uniq is in /usr/bin/uniq.

Don't worry if any of the following aren't found... I don't see Mcc out there\, offhand. ar is in /usr/bin/ar. I don't see bison out there\, either. I don't see byacc out there\, either. cpp is in /usr/lib/cpp. csh is in /usr/bin/csh. date is in /usr/bin/date. egrep is in /usr/bin/egrep. I don't see gzip out there\, either. I don't see less out there\, either. ln is in /usr/bin/ln. more is in /usr/bin/more. nm is in /usr/bin/nm. nroff is in /usr/bin/nroff. pg is in /usr/bin/pg. test is in /usr/bin/test. uname is in /usr/bin/uname. I don't see zip out there\, either. Using the test built into your sh. Using the test built into your sh.

Checking compatibility between /usr/bin/echo and builtin echo (if any)... They are compatible. In fact\, they may be identical.

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.

First time through\, eh? I have some defaults handy for some systems that need some extra help getting the Configure answers right​:

3b1 dynix isc nonstopux stellar
aix dynixptx isc_2 openbsd sunos_4_0
altos486 epix linux opus sunos_4_1
amigaos esix4 lynxos os2 svr4
apollo fps machten os390 svr5
aux_3 freebsd machten_2 posix-bc ti1500
beos genix mint powerux titanos
bsdos gnu mips qnx ultrix_4
convexos greenhills mpc rhapsody umips
cxux hpux mpeix sco unicos
cygwin i386 ncr_tower sco_2_3_0 unicosmk
darwin irix_4 netbsd sco_2_3_1 unisysdynix
dcosx irix_5 newsos4 sco_2_3_2 utekv
dec_osf irix_6 next_3 sco_2_3_3 uts
dgux irix_6_0 next_3_0 sco_2_3_4 uwin
dos_djgpp irix_6_1 next_4 solaris_2 vmesa

You may give one or more space-separated answers\, or "none" if appropriate. A well-behaved OS will have no hints\, so answering "none" or just "Policy" is a good thing. DO NOT give a wrong version or a wrong OS.

Which of these apply\, if any? [aix]

Configure uses the operating system name and version to set some defaults. The default value is probably right if the name rings a bell. Otherwise\, since spelling matters for me\, either accept the default or answer "none" to leave it blank.

Operating system name? [aix]

Operating system version? [4.2.1.0]

Perl can be built to take advantage of threads on some systems. To do so\, Configure can be run with -Dusethreads.

Note that threading is a highly experimental feature\, and some known race conditions still remain. If you choose to try it\, be very sure to not actually deploy it for production purposes. README.threads has more details\, and is required reading if you enable threads.

If this doesn't make any sense to you\, just accept the default 'n'. Build a threading Perl? [n]

Perl can be built so that multiple Perl interpreters can coexist within the same Perl executable.

If this doesn't make any sense to you\, just accept the default 'n'. Build Perl for multiplicity? [n]

Hmm... Looks kind of like a BSD system\, but we'll see...

Congratulations. You aren't running Eunice.

It's not Xenix...

Nor is it Venix... Use which C compiler? [cc]

Checking for GNU cc in disguise and/or its version number... You are not using GNU cc.

Now\, how can we feed standard input to your C preprocessor... Keeping your recommended cppstdin wrapper. Maybe "cc -E" will work... Nope...maybe "cc -E -" will work... Nope...maybe "cc -P" will work... Nope...maybe "cc -P -" will work... No such luck\, maybe "/usr/lib/cpp" will work... It works! Perhaps can we force cc -E using a wrapper... Yup\, we can.

Hmm... Doesn't look like a MIPS system.

Some systems have incompatible or broken versions of libraries. Among the directories listed in the question below\, please remove any you know not to be holding relevant libraries\, and add any that are needed. Say "none" for none.

Directories to use for library searches? [/lib /usr/lib /usr/ccs/lib]

On some systems\, shared libraries may be available. Answer 'none' if you want to suppress searching of shared libraries for the remainder of this configuration.

What is the file extension used for shared libraries? [a]

Perl can be built to use the SOCKS proxy protocol library. To do so\, Configure must be run with -Dusesocks.

If this doesn't make any sense to you\, just accept the default 'n'. Build Perl for SOCKS? [n]

Checking for optional libraries... No -lsfio. No -lsocket. No -linet. Found -lnsl (shared). No -lnm. No -lndbm. No -lgdbm. Found -ldbm (shared). No -ldb. No -lmalloc. Found -ldl (shared). No -ldld. Found -lld (shared). No -lsun. Found -lm (shared). Found -lC (shared). Found -lc (shared). Found -lbind (shared). No -lcposix. No -lposix. No -lndir. No -ldir. No -lcrypt. No -lsec. No -lucb. Found -lbsd (shared). No -lBSD. Found -lPW (shared). No -lx. Found -liconv (shared). No -lutil.

In order to compile perl5 on your machine\, a number of libraries are usually needed. Include any other special libraries here as well. Say "none" for none. The default list is almost always right.

What libraries to use? [-lnsl -ldbm -ldl -lld -lm -lC -lc -lbind -lbsd -lPW -liconv]

By default\, perl5 compiles with the -O flag to use the optimizer. Alternately\, you might want to use the symbolic debugger\, which uses the -g flag (on traditional Unix systems). Either flag can be specified here. To use neither flag\, specify the word "none".

What optimizer/debugger flag should be used? [-O]

Your C compiler may want other flags. For this question you should include -I/whatever and -DWHATEVER flags and any other flags used by the C compiler\, but you should NOT include libraries or ld flags like -lwhatever. If you want perl5 to honor its debug switch\, you should include -DDEBUGGING here. Your C compiler might also need additional flags\, such as -D_POSIX_SOURCE.

To use no flags\, specify the word "none".

Any additional cc flags? [-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384]

Let me guess what the preprocessor flags are... They appear to be​: -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384

Your C linker may need flags. For this question you should include -L/whatever and any other flags used by the C linker\, but you should NOT include libraries like -lwhatever.

Make sure you include the appropriate -L/path flags if your C linker does not normally search all of the directories you specified above\, namely   /lib /usr/lib /usr/ccs/lib To use no flags\, specify the word "none".

Any additional ld flags (NOT including libraries)? [none]

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 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 try.c -lnsl -ldbm -ldl -lld -lm -lC -lc -lbind -lbsd -lPW -liconv   ./try

and I got the following output​:

ld​: 0706-006 Cannot find or open library file​: -l bind   ld​:open()​: No such file or directory I can't compile the test program. (The supplied flags or libraries might be incorrect.)

You have a BIG problem. Shall I abort Configure [y]
Ok. Stopping Configure.

p5pRT commented 22 years ago

From [Unknown Contact. See original ticket]

ld​: 0706-006 Cannot find or open library file​: -l bind ld​:open()​: No such file or directory I can't compile the test program. (The supplied flags or libraries might be incorrect.)

You have a BIG problem. Shall I abort Configure [y] Ok. Stopping Configure.

Hi\,

I had this error\, because of a missing symbolic link

the solution was :

The symbolic link for 'libbind.a' was missing\, so I ran the following command

ln \-s /usr/ccs/lib/libbind\.a /usr/lib/libbind\.a

as mentionned in the following message

http​://www.rosat.mpe-garching.mpg.de/mailing-lists/perl5-porters/2002-01/msg00134.html

If you are using VAC C Compiler\, you should try the patch attached in this message

http​://www.rosat.mpe-garching.mpg.de/mailing-lists/perl5-porters/2002-01/msg00528.html

José