Newsgroup: it.comp.lang.perl
Titolo: aiuto INSTALL

Sto installando il Perl 5.004.
Devo usare la libreria cc -32 e non la cc -n32 di default. (Questo
perche' devo installare DBI e DBD per interfacciarmi ad Oracle che usa
-32)
Ho lanciato:
# sh Configure
Il sistema mi risponde:
...
Would you like to see the instructions? [n]
Locating common programs...
awk is in /usr/bin/awk.
cat is in /sbin/cat.
comm is in /usr/bin/comm.
cp is in /sbin/cp.
echo is in /sbin/echo.
expr is in /sbin/expr.
find is in /sbin/find.
grep is in /sbin/grep.
ls is in /sbin/ls.
mkdir is in /sbin/mkdir.
rm is in /sbin/rm.
sed is in /sbin/sed.
sort is in /usr/bin/sort.
touch is in /sbin/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.
I don't see byacc out there, either.
cpp is in /usr/lib/cpp.
csh is in /sbin/csh.
date is in /sbin/date.
egrep is in /usr/bin/egrep.
gzip is in /usr/sbin/gzip.
I don't see less out there, either.
line is in /usr/bin/line.
ln is in /sbin/ln.
more is in /usr/bsd/more.
I don't see nroff out there, either.
perl is in /usr/sbin/perl.
pg is in /usr/bin/pg.
sendmail is in /usr/lib/sendmail.
test is in /sbin/test.
uname is in /sbin/uname.
I don't see zip out there, either.
Using the test built into your sh.
...
Which of these apply, if any? [irix_6]
Operating system name? [irix]
Operating system version? [6.4]
What is your architecture name [IP27-irix]
...
Installati/usr/local/perl doesn't exist.  Use that name anyway? [n]
 irectory
Installation prefix to use? (~name ok) [/usr/local]
...
Pathname where the private library files will reside? (~name ok)
[/usr/local/lib/perl5]
Getting the current patchlevel...
(You have perl5  5.0  patchlevel 4  subversion 4 .)
...
Where do you want to put the public architecture-dependent libraries?
(~name ok)
[/usr/local/lib/perl5/IP27-irix/5.00404]
...
Binary compatibility with Perl 5.003? [y]
...
Hmm...  Looks kind of like a BSD system, but we'll see...
...
Other username to test security of setuid scripts with? [none]
I'll assume setuid scripts are *not* secure.
Does your kernel have *secure* setuid scripts? [n]
...
Do you want to do setuid/setgid emulation? [n]
...
Pathname for the site-specific library files? (~name ok)
[/usr/local/lib/perl5/site_perl]
...
Pathname for the site-specific architecture-dependent library files?
(~name ok)
[/usr/local/lib/perl5/site_perl/IP27-irix]
...
Directory for your old 5.001 architecture-dependent libraries? (~name
ok)
[none]
Pathname where the public executables will reside? (~name ok)
[/usr/local/bin]
...
Which memory models are supported? [none]
********************************************************
Use which C compiler? [cc -n32] cc -32
********************************************************
Checking for GNU cc in disguise and/or its version number...
You are not using GNU cc.
Hmm...  Looks like a MIPS system...
and you're compiling with the System V compiler and libraries.
Where are the include files you want to use? [/usr/include]
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/lib32 /lib32 /lib
/usr/lib]
On some systems, shared libraries may be available.  Answer 'none' if
you want to suppress searching of shared libraries for the remaining
of this configuration.
What is the file extension used for shared libraries? [so]
Checking for optional libraries...
No -lsfio.
No -lnet.
No -linet.
No -lnm.
No -lndbm.
No -lgdbm.
No -ldbm.
No -ldb.
Found -lmalloc (shared).
No -ldld.
No -lld.
Found -lm (shared).
Found -lc (shared).
No -lcposix.
No -lposix.
No -lndir.
No -ldir.
No -lucb.
No -lBSD.
No -lx.
Some versions of Unix support shared libraries, which make executables
smaller
but make load time slightly longer.
On some systems, mostly System V Release 3's, the shared library is
included
by putting the option "-lc_s" as the last thing on the cc command line
when
linking.  Other systems use shared libraries by default.  There may be
other
libraries needed to compile perl5 on your machine as well.  If your
system
needs the "-lc_s" option, include it here.  Include any other special
libraries
here as well.  Say "none" for none.
Any additional libraries? [-lmalloc -lm -lc]
Now, how can we feed standard input to your C preprocessor...
Maybe "cc -32 -E" will work...
Nope...maybe "cc -32 -E -" will work...
Nope...maybe "cc -32 -P" will work...
Nope...maybe "cc -32 -P -" will work...
No such luck, maybe "/usr/lib/cpp" will work...
It works!
Perhaps can we force cc -32 -E using a wrapper...
Yup, we can.
Some C compilers have problems with their optimizers.  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? [-O3] nome
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,
-DHIDEMYMALLOC or -DCRIPPLED_CC.
To use no flags, specify the word "none".
Any additional cc flags?
[-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT:Olimit=0
-DLANGUAGE_C]
Let me guess what the preprocessor flags are...
They appear to be: -D_BSD_TYPES -D_BSD_TIME -woff -OPT:Olimit=0
-DLANGUAGE_C
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/lib32 /lib32 /lib /usr/lib
To use no flags, specify the word "none".
Any additional ld flags (NOT including libraries)?
[ -L/usr/local/lib -L/usr/lib32 -L/lib32]
Checking your choice of C compiler, libs, and flags for coherency...
I've tried to compile and run a simple program with:
        cc -32 nome -D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184
-OPT:Olimit=0 -DLANGUAGE_C -L/usr/local/lib -L/usr/lib32 -L/lib32 -o try
try.c -lmalloc -lm -lc
        ./try
and I got the following output:
cc: Warning: -OPT options are ignored
ld: FATAL 113: cannot link new 32-bit object without -n32:
/usr/lib32/crt1.o.
I can't compile the test program.
(The supplied flags might be incorrect with this C compiler.)
You have a BIG problem.  Shall I abort Configure (and explain the
problem)
[y]
--------
Ho provato a cambiare diversi input , ma non ho ottenuto buoni
risultati.
Cosa posso fare?
Grazie
daniele

 /usr/lib]
This should be "/usr/lib /lib"
The lib32 directories are for -n32.
Anywhere you see a path, take out the lib32 stuff and just specify
good old /lib and /usr/lib.
Worked for me. :)  (Although I am currently having problems getting
DBD::Oracle to link with Oracle 7.3.3 because of Oracle's new 64bit
libraries)
--
Amos Hayes
aha...@ingenia.com
                          Ingenia Communications Corp.
http://smurf.ingenia.com
 
http://www.ingenia.com
-------------------==== Posted via Deja News ====-----------------------
 
http://www.dejanews.com/
     Search, Read, Post to Usenet