[Tech] Spamassassin e moduli perl

marcoc1@dada.it marcoc1@dada.it
Mar 27 Gen 2004 15:17:24 CET


Ciedo scusa per la lunghezza della mail

La compilazione mi fallisce, e non sono ancora
 riuscito a capire se e' perche' ho il modulo
 gia' installato.

Segue log delle cose fatte.

THX.   Marco

=====================================================================

[root@alderaan win_d]# cpan

/usr/lib/perl5/5.8.1/CPAN/Config.pm initialized.


CPAN is the world-wide archive of perl resources. It consists of about
100 sites that all replicate the same contents all around the globe.
Many countries have at least one CPAN site already. The resources
found on CPAN are easily accessible with the CPAN.pm module. If you
want to use CPAN.pm, you have to configure it properly.

If you do not want to enter a dialog now, you can answer 'no' to this
question and I'll try to autoconfigure. (Note: you can revisit this
dialog anytime later by typing 'o conf init' at the cpan prompt.)

Are you ready for manual configuration? [yes]


The following questions are intended to help you with the
configuration. The CPAN module needs a directory of its own to cache
important index files and maybe keep a temporary mirror of CPAN files.
This may be a site-wide directory or a personal directory.



First of all, I'd like to create this directory. Where?

CPAN build and cache directory? [/root/.cpan]


If you want, I can keep the source files after a build in the cpan
home directory. If you choose so then future builds will take the
files from there. If you don't want to keep them, answer 0 to the
next question.



How big should the disk cache be for keeping the build directories
with all the intermediate files?

Cache size for build directory (in MB)? [10]


By default, each time the CPAN module is started, cache scanning
is performed to keep the cache size in sync. To prevent from this,
disable the cache scanning with 'never'.

Perform cache scanning (atstart or never)? [atstart]


To considerably speed up the initial CPAN shell startup, it is
possible to use Storable to create a cache of metadata. If Storable
is not available, the normal index mechanism will be used.

Cache metadata (yes/no)? [yes]


The next option deals with the charset your terminal supports. In
general CPAN is English speaking territory, thus the charset does not
matter much, but some of the aliens out there who upload their
software to CPAN bear names that are outside the ASCII range. If your
terminal supports UTF-8, you say no to the next question, if it
supports ISO-8859-1 (also known as LATIN1) then you say yes, and if it
supports neither nor, your answer does not matter, you will not be
able to read the names of some authors anyway. If you answer no, names
will be output in UTF-8.

Your terminal expects ISO-8859-1 (yes/no)? [yes]


If you have one of the readline packages (Term::ReadLine::Perl,
Term::ReadLine::Gnu, possibly others) installed, the interactive CPAN
shell will have history support. The next two questions deal with the
filename of the history file and with its size. If you do not want to
set this variable, please hit SPACE RETURN to the following question.

File to save your history? [/root/.cpan/histfile]
Number of lines to save? [100]


The CPAN module can detect when a module that which you are trying to
build depends on prerequisites. If this happens, it can build the
prerequisites for you automatically ('follow'), ask you for
confirmation ('ask'), or just ignore them ('ignore'). Please set your
policy to one of the three values.

Policy on building prerequisites (follow, ask or ignore)? [ask]


The CPAN module will need a few external programs to work properly.
Please correct me, if I guess the wrong path for a program. Don't
panic if you do not have some of them, just press ENTER for those. To
disable the use of a download program, you can type a space followed
by ENTER.

Where is your gzip program? [/bin/gzip]
Where is your tar program? [/bin/tar]
Where is your unzip program? [/usr/bin/unzip]
Where is your make program? [/usr/bin/make]
Where is your lynx program? [/usr/bin/lynx]
Where is your wget program? [/usr/bin/wget]
Warning: ncftpget not found in PATH
Where is your ncftpget program? []
Warning: ncftp not found in PATH
Where is your ncftp program? []
Where is your ftp program? [/usr/bin/ftp]
Where is your gpg program? [/usr/bin/gpg]
What is your favorite pager program? [/usr/bin/less]
What is your favorite shell? [/bin/bash]


Every Makefile.PL is run by perl in a separate process. Likewise we
run 'make' and 'make install' in processes. If you have any
parameters (e.g. PREFIX, LIB, UNINST or the like) you want to pass
to the calls, please specify them here.

If you don't understand this question, just press ENTER.

Parameters for the 'perl Makefile.PL' command?
Typical frequently used settings:

    PREFIX=~/perl       non-root users (please see manual for more
hints)

Your choice:  []
Parameters for the 'make' command?
Typical frequently used setting:

    -j3              dual processor system

Your choice:  []
Parameters for the 'make install' command?
Typical frequently used setting:

    UNINST=1         to always uninstall potentially conflicting files

Your choice:  []


Sometimes you may wish to leave the processes run by CPAN alone
without caring about them. As sometimes the Makefile.PL contains
question you're expected to answer, you can set a timer that will
kill a 'perl Makefile.PL' process after the specified time in seconds.

If you set this value to 0, these processes will wait forever. This is
the default and recommended setting.

Timeout for inactivity during Makefile.PL? [0]


If you're accessing the net via proxies, you can specify them in the
CPAN configuration or via environment variables. The variable in
the $CPAN::Config takes precedence.

Your ftp_proxy?
Your http_proxy?
Your no_proxy?
You have no /root/.cpan/sources/MIRRORED.BY
  I'm trying to fetch one
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
  ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY


Now we need to know where your favorite CPAN sites are located. Push
a few sites onto the array (just in case the first on the array won't
work). If you are mirroring CPAN to your local workstation, specify a
file: URL.

First, pick a nearby continent and country (you can pick several of
each, separated by spaces, or none if you just want to keep your
existing selections). Then, you will be presented with a list of URLs
of CPAN mirrors in the countries you selected, along with previously
selected URLs. Select some of those URLs, or just keep the old list.
Finally, you will be prompted for any extra URLs -- file:, ftp:, or
http: -- that host a CPAN mirror.

(1) Africa
(2) Asia
(3) Central America
(4) Europe
(5) North America
(6) Oceania
(7) South America
Select your continent (or several nearby continents) [] 4
Sorry! since you don't have any existing picks, you must make a
geographic selection.

(1) Austria
(2) Belgium
(3) Bosnia and Herzegovina
(4) Bulgaria
(5) Croatia
(6) Czech Republic
(7) Denmark
(8) Estonia
(9) Finland
(10) France
(11) Germany
(12) Greece
(13) Hungary
(14) Iceland
(15) Ireland
(16) Italy
16 more items, hit SPACE RETURN to show them
Select your country (or several nearby countries) [] 16
Sorry! since you don't have any existing picks, you must make a
geographic selection.

(1) ftp://cis.uniRoma2.it/CPAN/
(2) ftp://ftp.edisontel.it/pub/CPAN_Mirror/
(3) ftp://ftp.flashnet.it/pub/CPAN/
(4) ftp://softcity.iol.it/pub/cpan
(5) http://cpan.nettuno.it/
Select as many URLs as you like (by number),
put them on one line, separated by blanks, e.g. '1 4 5' [] 2 5 4 3 1

Enter another URL or RETURN to quit: []
New set of picks:
  ftp://ftp.edisontel.it/pub/CPAN_Mirror/
  http://cpan.nettuno.it/
  ftp://softcity.iol.it/pub/cpan
  ftp://ftp.flashnet.it/pub/CPAN/
  ftp://cis.uniRoma2.it/CPAN/


commit: wrote /usr/lib/perl5/5.8.1/CPAN/Config.pm

cpan shell -- CPAN exploration and modules installation (v1.76)
ReadLine support enabled

cpan>
cpan> install DB_File
CPAN: Storable loaded ok
Fetching with LWP:
  ftp://ftp.edisontel.it/pub/CPAN_Mirror/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
 
ftp://ftp.edisontel.it/pub/CPAN_Mirror/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Tue, 27 Jan 2004 00:51:11 GMT
Fetching with LWP:
  ftp://ftp.edisontel.it/pub/CPAN_Mirror/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module DB_File
Running make for P/PM/PMQS/DB_File-1.808.tar.gz
Fetching with LWP:
 
ftp://ftp.edisontel.it/pub/CPAN_Mirror/authors/id/P/PM/PMQS/DB_File-1.808.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
  ftp://ftp.edisontel.it/pub/CPAN_Mirror/authors/id/P/PM/PMQS/CHECKSUMS
Checksum for
/root/.cpan/sources/authors/id/P/PM/PMQS/DB_File-1.808.tar.gz ok
Scanning cache /root/.cpan/build for sizes
DB_File-1.808/
DB_File-1.808/dbinfo
DB_File-1.808/patches/
DB_File-1.808/patches/5.6.0
DB_File-1.808/patches/5.005_02
DB_File-1.808/patches/5.005_03
DB_File-1.808/patches/5.004_03
DB_File-1.808/patches/5.004_05
DB_File-1.808/patches/5.004_02
DB_File-1.808/patches/5.005_01
DB_File-1.808/patches/5.004_04
DB_File-1.808/patches/5.004_01
DB_File-1.808/patches/5.005
DB_File-1.808/patches/5.004
DB_File-1.808/hints/
DB_File-1.808/hints/sco.pl
DB_File-1.808/hints/dynixptx.pl
DB_File-1.808/t/
DB_File-1.808/t/db-btree.t
DB_File-1.808/t/db-recno.t
DB_File-1.808/t/db-hash.t
DB_File-1.808/Changes
DB_File-1.808/DB_File_BS
DB_File-1.808/fallback.h
DB_File-1.808/MANIFEST
DB_File-1.808/typemap
DB_File-1.808/ppport.h
DB_File-1.808/DB_File.xs
DB_File-1.808/META.yml
DB_File-1.808/config.in
DB_File-1.808/DB_File.pm
DB_File-1.808/version.c
DB_File-1.808/fallback.xs
DB_File-1.808/README
DB_File-1.808/Makefile.PL

  CPAN.pm: Going to build P/PM/PMQS/DB_File-1.808.tar.gz

Parsing config.in...
Looks Good.
Checking if your kit is complete...
Looks good
Writing Makefile for DB_File
cp DB_File.pm blib/lib/DB_File.pm
AutoSplitting blib/lib/DB_File.pm (blib/lib/auto/DB_File)
gcc -c  -I/usr/local/BerkeleyDB/include -D_REENTRANT -D_GNU_SOURCE
-DTHREADS_HAVE_PIDS -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2
-fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro  
-DVERSION=\"1.808\" -DXS_VERSION=\"1.808\" -fPIC
"-I/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE"  -D_NOT_CORE 
-DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t  version.c
version.c:30:16: db.h: No such file or directory
make: *** [version.o] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

cpan> exit
Lockfile removed.


On Tue, 2004-01-27 at 12:12, marcoc1@dada.it wrote: 
> Girando sa-learn in modalita' debug ottengo
> 
> bayes: DB_File module not installed, cannot use Bayes
> 
> Penso di dover installare un modulo perl; mi sembra pero'
>  strano che non ci sia gia' nel perl 5.8.1
> 
> Sono analfabeta nel settore perl..
> 
> Come posso verificarlo, ed eventualmente installarlo ?
> 
> Ciao e grazie.   Marco
-------------- parte successiva --------------
Un allegato non testuale è stato rimosso....
Nome:        non disponibile
Tipo:        application/pgp-signature
Dimensione:  307 bytes
Descrizione: This is a digitally signed message part
URL:         <http://lists.linux.it/pipermail/flug-tech/attachments/20040127/71a0ad85/attachment.pgp>


Maggiori informazioni sulla lista flug-tech