Perl / perl5

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

Perl installation errors #9939

Closed p5pRT closed 11 years ago

p5pRT commented 15 years ago

Migrated from rt.perl.org#70125 (status was 'rejected')

Searchable as RT70125$

p5pRT commented 15 years ago

From idctech.support@tikona.in

Hi\,

PFA installation errors which we are getting on perl installations while running Configure command.Kindly help me resolve this issue.

uname -a SunOS sitbrmapp 5.10 Generic_127127-11 sun4v sparc SUNW\,Sun-Blade-T6320

Thanks & Regards\, Idctech-Support Phone​: 022-67840000 - EXT 402

________________________________ Please do not print this email unless it is absolutely necessary.

Warning : This message contains business confidential information . This message does not affect or modify any binding agreement nor state official policy of Tikona Digital Networks Pvt. Ltd. ("TDN" ) unless digitally signed by TDN's authorised signatory. TDN does not accept any liability for any errors\, loss\, delayed delivery\, tampering\, corruption or presence of viruses in this message or any attachment.

p5pRT commented 15 years ago

From idctech.support@tikona.in

root@​sitbrmapp # sh Configure -de

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. chmod is in /usr/bin/chmod. 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. 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/ccs/bin/ar. bison is in /usr/sfw/bin/bison. I don't see byacc out there\, either. cpp is in /usr/sfw/bin/cpp. csh is in /usr/bin/csh. date is in /usr/bin/date. egrep is in /usr/bin/egrep. gmake is in /usr/sfw/bin/gmake. gzip is in /usr/bin/gzip. less is in /usr/bin/less. ln is in /usr/bin/ln. make is in /usr/ccs/bin/make. more is in /usr/bin/more. nm is in /usr/ccs/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. zip is in /usr/bin/zip. 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 dos_djgpp irix_6_0 nonstopux sunos_4_0 aix dynix irix_6_1 openbsd sunos_4_1 aix_3 dynixptx isc opus super-ux aix_4 epix isc_2 os2 svr4 altos486 esix4 linux os390 svr5 amigaos fps lynxos os400 ti1500 apollo freebsd machten posix-bc titanos atheos genix machten_2 powerux ultrix_4 aux_3 gnu mint qnx umips beos gnukfreebsd mips rhapsody unicos bsdos gnuknetbsd mpc sco unicosmk convexos greenhills mpeix sco_2_3_0 unisysdynix cxux hpux ncr_tower sco_2_3_1 utekv cygwin i386 netbsd sco_2_3_2 uts darwin interix newsos4 sco_2_3_3 uwin dcosx irix_4 next_3 sco_2_3_4 vmesa dec_osf irix_5 next_3_0 solaris_2 vos dgux irix_6 next_4 stellar

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? [solaris_2]

NOTE​: Some people have reported problems with /usr/ucb/cc. If you have difficulties\, please make sure the directory containing your C compiler is before /usr/ucb in your PATH.

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? [solaris]

Operating system version? [2.10]

Perl can be built to use the SOCKS proxy protocol library. To do so\, Configure must be run with -Dusesocks. If you use SOCKS you also need to use the PerlIO abstraction layer\, this will be implicitly selected.

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

Previous version of perl5 used the standard IO mechanisms as defined in \<stdio.h>. Versions 5.003_02 and later of perl5 allow alternate IO mechanisms via the PerlIO abstraction layer\, but the stdio mechanism is still available if needed. The abstraction layer can use AT&T's sfio (if you already have sfio installed) or regular stdio. Using PerlIO with sfio may cause problems with some extension modules.

If this doesn't make any sense to you\, just accept the default 'y'. Use the PerlIO abstraction layer? [y]

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

Note that Perl built with threading support runs slightly slower and uses more memory than plain Perl. The current implementation is believed to be stable\, but it is fairly new\, and so should be treated with caution.

If this doesn't make any sense to you\, just accept the default 'n'. Build a threading Perl? [n] Your platform has some specific hints regarding threaded builds\, using them...

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 USG system with BSD features\, but we'll see...

Congratulations. You aren't running Eunice.

It's not Xenix...

Nor is it Venix... Use which C compiler? [cc] /usr/ucb/cc​: language optional software package not installed Uh-oh\, the C compiler 'cc' doesn't seem to be working.

You seem to have a working gcc\, though. Would you like to use it? [y]

*** However\, any setting of the C compiler flags (e.g. for thread support) *** has been lost. It may be necessary to pass -Dcc=gcc to Configure *** (together with e.g. -Dusethreads).

Checking for GNU cc in disguise and/or its version number... You are using GNU cc 3.4.3 (csl-sol210-3_4-branch+sol_rpath).

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

Now\, how can we feed standard input to your C preprocessor... Maybe "gcc -E" will work... Nope...maybe "gcc -E -" will work... Yup\, it does.

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? [/usr/local/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? [so]

Perl can be built to take advantage of long doubles which (if available) may give more accuracy and range for floating point numbers.

If this doesn't make any sense to you\, just accept the default 'n'. Try to use long doubles if available? [n] Your platform has some specific hints regarding long doubles\, using them...

Checking for optional libraries... No -lsfio. Found -lsocket (shared). No -lbind. No -linet. Found -lnsl (shared). No -lnm. No -lndbm. No -lgdbm. No -ldbm. Found -ldb (shared). Found -ldl (shared). No -ldld. No -lsun. Found -lm (shared). No -lutil. Found -lc (shared). No -lcposix. No -lposix. No -lbsd. No -lBSD.

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? [-lsocket -lnsl -ldb -ldl -lm -lc]

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]

Checking if your compiler accepts -fno-strict-aliasing Yes\, it does.

Checking if your compiler accepts -pipe Yes\, it does. Checking if your compiler accepts -Wdeclaration-after-statement Yes\, it does.

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? [-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include]

Let me guess what the preprocessor flags are... They appear to be​: -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include

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   /usr/local/lib /usr/lib /usr/ccs/lib To use no flags\, specify the word "none".

Any additional ld flags (NOT including libraries)? [ -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"); return(0); }

I used the command​:

  gcc -o try -O -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -L/usr/local/lib try.c -lsocket -lnsl -ldb -ldl -lm -lc   ./try

and I got the following output​:

ld​: fatal​: library -ldb​: not found ld​: fatal​: File processing errors. No output written to try collect2​: ld returned 1 exit status 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. root@​sitbrmapp #

p5pRT commented 15 years ago

From @tux

On Fri\, 30 Oct 2009 03​:23​:16 -0700\, idctech support (via RT) \perlbug\-followup@&#8203;perl\.org wrote​:

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

Perl can be built to take advantage of long doubles which (if available) may give more accuracy and range for floating point numbers.

If this doesn't make any sense to you\, just accept the default 'n'. Try to use long doubles if available? [n] Your platform has some specific hints regarding long doubles\, using them...

Checking for optional libraries... No -lsfio. Found -lsocket (shared). No -lbind. No -linet. Found -lnsl (shared). No -lnm. No -lndbm. No -lgdbm. No -ldbm. Found -ldb (shared).

  Here it found -ldb

Found -ldl (shared). No -ldld. No -lsun. Found -lm (shared). No -lutil. Found -lc (shared). No -lcposix. No -lposix. No -lbsd. No -lBSD.

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? [-lsocket -lnsl -ldb -ldl -lm -lc]

  As Configure found it\, it wants to use it

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 /usr/local/lib /usr/lib /usr/ccs/lib

Is libdb.so in any of these three?

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

Any additional ld flags (NOT including libraries)? [ -L/usr/local/lib]

or in /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"); return(0); }

I used the command​:

    gcc \-o try \-O \-fno\-strict\-aliasing \-pipe \-Wdeclaration\-after\-statement \-I/usr/local/include \-L/usr/local/lib try\.c \-lsocket \-lnsl \-ldb \-ldl \-lm \-lc
     \./try

and I got the following output​:

ld​: fatal​: library -ldb​: not found

So maybe there is a file (or a (sym)link)\, but the lib is not usable as such.

$ ls -al /usr/local/lib/libdb.so /usr/lib/libdb.so /usr/ccs/lib/libdb.so

$ file /usr/local/lib/libdb.so /usr/lib/libdb.so /usr/ccs/lib/libdb.so

could give you more information. If there is a valid archive/lib\, you can use

$ nm /usr/local/lib/libdb.so

to see if it can be queried for symbols

ld​: fatal​: File processing errors. No output written to try collect2​: ld returned 1 exit status 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. root@​sitbrmapp #

-- H.Merijn Brand http​://tux.nl Perl Monger http​://amsterdam.pm.org/ using & porting perl 5.6.2\, 5.8.x\, 5.10.x\, 5.11.x on HP-UX 10.20\, 11.00\, 11.11\, 11.23\, and 11.31\, OpenSuSE 10.3\, 11.0\, and 11.1\, AIX 5.2 and 5.3. http​://mirrors.develooper.com/hpux/ http​://www.test-smoke.org/ http​://qa.perl.org http​://www.goldmark.org/jeff/stupid-disclaimers/

p5pRT commented 15 years ago

The RT System itself - Status changed from 'new' to 'open'

p5pRT commented 15 years ago

From @bingos

On Fri\, Oct 30\, 2009 at 05​:16​:48PM +0100\, H.Merijn Brand wrote​:

On Fri\, 30 Oct 2009 03​:23​:16 -0700\, idctech support (via RT) \perlbug\-followup@&#8203;perl\.org wrote​:

Found -ldb (shared).

Here it found -ldb

Found -ldl (shared). No -ldld. No -lsun. Found -lm (shared). No -lutil. Found -lc (shared). No -lcposix. No -lposix. No -lbsd. No -lBSD.

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? [-lsocket -lnsl -ldb -ldl -lm -lc]

As Configure found it\, it wants to use it

As I recall it older perls would do this\, detect the shared -ldb and add it to the libraries list then the compile check later on would fail.

I just amend the libraries list to remove the -ldb on these.

Newer perls don't have this issue.

Didn't see a indicator of which perl was being built.

Cheers\,

-- Chris Williams aka BinGOs PGP ID 0x4658671F http​://www.gumbynet.org.uk

p5pRT commented 11 years ago

From @jkeenan

On Fri Oct 30 09​:35​:53 2009\, chris@​bingosnet.co.uk wrote​:

On Fri\, Oct 30\, 2009 at 05​:16​:48PM +0100\, H.Merijn Brand wrote​:

On Fri\, 30 Oct 2009 03​:23​:16 -0700\, idctech support (via RT) \perlbug\-followup@&#8203;perl\.org wrote​:

Found -ldb (shared).

Here it found -ldb

Found -ldl (shared). No -ldld. No -lsun. Found -lm (shared). No -lutil. Found -lc (shared). No -lcposix. No -lposix. No -lbsd. No -lBSD.

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? [-lsocket -lnsl -ldb -ldl -lm -lc]

As Configure found it\, it wants to use it

As I recall it older perls would do this\, detect the shared -ldb and add it to the libraries list then the compile check later on would fail.

I just amend the libraries list to remove the -ldb on these.

Newer perls don't have this issue.

Didn't see a indicator of which perl was being built.

Cheers\,

It appears that the original poster (2009) never responded to Merijn's questions. Chris indicated that the OP's problems should not occur in more recent perls\, and no one has since provided evidence to the contrary.

I am taking this ticket for the purpose of closing it in 7 days unless someone else wants to take it over.

Thank you very much. Jim Keenan

p5pRT commented 11 years ago

From @jkeenan

On Sat Aug 03 10​:10​:55 2013\, jkeenan wrote​:

On Fri Oct 30 09​:35​:53 2009\, chris@​bingosnet.co.uk wrote​:

On Fri\, Oct 30\, 2009 at 05​:16​:48PM +0100\, H.Merijn Brand wrote​:

On Fri\, 30 Oct 2009 03​:23​:16 -0700\, idctech support (via RT)

It appears that the original poster (2009) never responded to Merijn's questions. Chris indicated that the OP's problems should not occur in more recent perls\, and no one has since provided evidence to the contrary.

I am taking this ticket for the purpose of closing it in 7 days unless someone else wants to take it over.

Closing ticket.

p5pRT commented 11 years ago

@jkeenan - Status changed from 'open' to 'rejected'