Front page | perl.perl5.porters |
Postings from October 2009
Re: [perl #70125] Perl installation errors
Thread Previous
|
Thread Next
From:
H.Merijn Brand
Date:
October 30, 2009 09:16
Subject:
Re: [perl #70125] Perl installation errors
Message ID:
20091030171648.3b667ccf@pc09.procura.nl
On Fri, 30 Oct 2009 03:23:16 -0700, idctech support (via RT)
<perlbug-followup@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/
Thread Previous
|
Thread Next