Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Problems when making and installing Perl

  1. #1
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    9

    Angry Problems when making and installing Perl

    Hi, guys,

    When I make perl and swatch, I met many problems:
    my step is:
    #cd Perl
    #mkdir -p ~/.cpan/CPAN
    #cp MyConfig.pm ~/.cpan/CPAN/MyConfig.pm
    #vi ~/.cpan/CPAN/MyConfig.pm
    (when I edit BUILD_ROOT, I replace BUILD_ROOT using /mnt/scsi/tmp/zimbra/ThirdParty/Perl, I think this is ok?
    and I modified tar (/bin/tar)
    )

    then I download swatch-3.1.1.tar.gz
    and
    #make clean
    #make

    In my make log, there are many strange problem, for example:
    "
    Bit-Vector-6.4/README.txt

    CPAN.pm: Going to build S/ST/STBEY/Bit-Vector-6.4.tar.gz

    Warning: prerequisite Carp::Clan 5.3 not found.
    "
    And then make log displays:
    "
    Carp-Clan-5.3/Clan.pod

    CPAN.pm: Going to build S/ST/STBEY/Carp-Clan-5.3.tar.gz

    Checking if your kit is complete...
    Looks good
    "
    and
    "
    Appending installation info to /mnt/scsi/tmp/zimbra/ThirdParty/Perl/zimbramon/lib/i386-linux-thread-multi/perllocal.pod
    make[1]: Leaving directory `/mnt/scsi/tmp/zimbra/ThirdParty/Perl/.cpan/build/Carp-Clan-5.3'
    /usr/bin/make install -- OK
    "
    and I don't know why again there is another problem
    "

    Removing previously used /mnt/scsi/tmp/zimbra/ThirdParty/Perl/.cpan/build/Bit-Vector-6.4

    CPAN.pm: Going to build S/ST/STBEY/Bit-Vector-6.4.tar.gz

    Warning: prerequisite Carp::Clan 5.3 not found.
    Checking if your kit is complete...
    Looks good
    "
    same with pre-problem. and many problems involve in Bit-Vector-6.4.

    and there are many times error about "
    BEGIN failed--compilation aborted at /mnt/scsi/tmp/zimbra/ThirdParty/Perl/.cpan/build/Bit-Vector-6.4/blib/lib/Bit/Vector/Overload.pm line 31.
    Compilation failed in require at t/00____version.t line 72.
    dubious
    Test returned status 2 (wstat 512, 0x200)
    DIED. FAILED tests 13-15
    Failed 3/15 tests, 80.00% okay
    "

    I don't know the reason.

    Please help me.
    Last edited by wildhuman; 08-25-2006 at 08:43 PM.

  2. #2
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    9

    Default

    Finally, the make log show:

    NOTE: settings for "make test" are now controlled using "t/config.dist".
    See that file if you wish to customise what tests are run, and how.

    checking module dependencies and their versions...

    ************************************************** *************************
    ERROR: the required Digest::SHA1 module is not installed.

    The Digest::SHA1 module is used as a cryptographic hash for some
    tests and the Bayes subsystem. It is also used by Razor2.


    ************************************************** *************************
    NOTE: the optional Net:NS (version 0.34) module is not installed.

    Used for all DNS-based tests (SBL, XBL, SpamCop, DSBL, etc.),
    perform MX checks, and is also used when manually reporting spam to
    SpamCop. Recommended.

    If this is installed and you are using network tests of any variety
    (which is the default), then you need to make sure the Net:NS
    version is sufficiently up-to-date:

    - version 0.34 or higher on Unix systems
    - version 0.46 or higher on Windows systems


    ************************************************** *************************
    NOTE: the optional Mail::SPF::Query module is not installed.

    Used to check DNS Sender Policy Framework (SPF) records to fight email
    address forgery and make it easier to identify spams.


    ************************************************** *************************
    NOTE: the optional IP::Country module is not installed.

    Used by the RelayCountry plugin (not enabled by default) to determine
    the domain country codes of each relay in the path of an email.


    ************************************************** *************************
    NOTE: the optional Razor2 (version 2.61) module is not installed.

    Used to check message signatures against Vipul's Razor collaborative
    filtering network. Razor has a large number of dependencies on CPAN
    modules. Feel free to skip installing it, if this makes you nervous;
    SpamAssassin will still work well without it.

    More info on installing and using Razor can be found
    at http://wiki.apache.org/spamassassin/InstallingRazor .


    ************************************************** *************************
    NOTE: the optional Net::Ident module is not installed.

    If you plan to use the --auth-ident option to spamd, you will need
    to install this module.


    ************************************************** *************************
    NOTE: the optional IO::Socket::INET6 module is not installed.

    This is required if the first nameserver listed in your IP
    configuration or /etc/resolv.conf file is available only via
    an IPv6 address.


    ************************************************** *************************
    NOTE: the optional IO::Socket::SSL module is not installed.

    If you wish to use SSL encryption to communicate between spamc and
    spamd (the --ssl option to spamd), you need to install this
    module. (You will need the OpenSSL libraries and use the
    ENABLE_SSL="yes" argument to Makefile.PL to build and run an SSL
    compatibile spamc.)


    ************************************************** *************************
    NOTE: the optional Time::HiRes module is not installed.

    If this module is installed, the processing times are logged/reported
    more precisely in spamd.


    ************************************************** *************************
    NOTE: the optional DBI module is not installed.

    If you intend to use SpamAssassin with an SQL database backend for
    user configuration data, Bayes storage, or other storage, you will need
    to have these installed; both the basic DBI module and the driver for
    your database.


    ************************************************** *************************
    NOTE: the optional Archive::Tar (version 1.23) module is not installed.

    The "sa-update" script requires this module to access tar update
    archive files.


    ************************************************** *************************
    NOTE: the optional IO::Zlib (version 1.04) module is not installed.

    The "sa-update" script requires this module to access compressed
    update archive files.

    REQUIRED module missing: Digest::SHA1
    optional module missing: Net:NS
    optional module missing: Mail::SPF::Query
    optional module missing: IP::Country
    optional module missing: Razor2
    optional module missing: Net::Ident
    optional module missing: IO::Socket::INET6
    optional module missing: IO::Socket::SSL
    optional module missing: Time::HiRes
    optional module missing: DBI
    optional module missing: Archive::Tar
    optional module missing: IO::Zlib

    warning: some functionality may not be available,
    please read the above report before continuing!

    Running make test
    Make had some problems, maybe interrupted? Won't test
    Running make install
    Make had some problems, maybe interrupted? Won't install
    Compiling perl lib swatch-3.1.1
    Warning: prerequisite Date::Calc 0 not found.
    Warning: prerequisite Time::HiRes 1.12 not found.
    Writing Makefile for swatch
    make[1]: Entering directory `/mnt/scsi/tmp/zimbra/ThirdParty/Perl/tmp/swatch-3.1.1'
    cp swatch blib/script/swatch
    /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/swatch
    Manifying blib/man1/swatch.1
    Manifying blib/man3/Swatch::Throttle.3pm
    Manifying blib/man3/Swatch::Actions.3pm
    make[1]: Leaving directory `/mnt/scsi/tmp/zimbra/ThirdParty/Perl/tmp/swatch-3.1.1'
    make[1]: Entering directory `/mnt/scsi/tmp/zimbra/ThirdParty/Perl/tmp/swatch-3.1.1'
    Manifying blib/man1/swatch.1
    Manifying blib/man3/Swatch::Throttle.3pm
    Manifying blib/man3/Swatch::Actions.3pm
    Writing /mnt/scsi/tmp/zimbra/ThirdParty/Perl/zimbramon/lib/i386-linux-thread-multi/auto/swatch/.packlist
    Appending installation info to /mnt/scsi/tmp/zimbra/ThirdParty/Perl/zimbramon/lib/i386-linux-thread-multi/perllocal.pod
    make[1]: Leaving directory `/mnt/scsi/tmp/zimbra/ThirdParty/Perl/tmp/swatch-3.1.1'
    (cd /mnt/scsi/tmp/zimbra/ThirdParty/Perl/zimbramon/lib; tar czf /mnt/scsi/tmp/zimbra/ThirdParty/Perl/builds/FC4/perllib.tgz .)
    chmod -R a+w /mnt/scsi/tmp/zimbra/ThirdParty/Perl/builds/FC4
    :q

    [root@hd-t3948cl Perl]# vi make.log
    If you intend to use SpamAssassin with an SQL database backend for
    user configuration data, Bayes storage, or other storage, you will need
    to have these installed; both the basic DBI module and the driver for
    your database.


    ************************************************** *************************
    NOTE: the optional Archive::Tar (version 1.23) module is not installed.

    The "sa-update" script requires this module to access tar update
    archive files.


    ************************************************** *************************
    NOTE: the optional IO::Zlib (version 1.04) module is not installed.

    The "sa-update" script requires this module to access compressed
    update archive files.
    Last edited by wildhuman; 08-25-2006 at 08:42 PM.

  3. #3
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    9

    Default

    I had to say, when I install LWP, it is ok and no fault.

    about urllist, I set 'urllist' => [] because " (possibly) blanking our urllist param" in the build_cvs_howto.txt, I don't whether it is true.




    $CPAN::Config = {
    'build_cache' => q[10],
    'build_dir' => q[/mnt/scsi/tmp/zimbra/ThirdParty/Perl/.cpan/build],
    'cache_metadata' => q[1],
    'cpan_home' => q[/mnt/scsi/tmp/zimbra/ThirdParty/Perl/.cpan],
    'dontload_hash' => { },
    'ftp' => q[/usr/bin/ftp],
    'ftp_proxy' => q[],
    'getcwd' => q[cwd],
    'gpg' => q[],
    'gzip' => q[/usr/bin/gzip],
    'histfile' => q[/mnt/scsi/tmp/zimbra/ThirdParty/Perl/.cpan/histfile],
    'histsize' => q[100],
    'http_proxy' => q[],
    'inactivity_timeout' => q[0],
    'index_expire' => q[1],
    'inhibit_startup_message' => q[0],
    'keep_source_where' => q[/mnt/scsi/tmp/zimbra/ThirdParty/Perl/.cpan/sources],
    'lynx' => q[],
    'make' => q[/usr/bin/make],
    'make_arg' => q[],
    'make_install_arg' => q[],
    'makepl_arg' => q[PREFIX=/mnt/scsi/tmp/zimbra/ThirdParty/Perl/zimbramon LIB=/mnt/scsi/tmp/zimbra/ThirdParty/Perl/zimbramon/lib EXPATLIBPATH=/opt/local/lib EXPATINCPATH=/opt/local/include],
    'ncftp' => q[],
    'ncftpget' => q[],
    'no_proxy' => q[],
    'pager' => q[/usr/bin/less],
    'prerequisites_policy' => q[ask],
    'scan_cache' => q[atstart],
    'shell' => q[/bin/sh],
    'tar' => q[/bin/tar],
    'term_is_latin' => q[1],
    'unzip' => q[/usr/bin/unzip],
    'urllist' => []
    'wget' => q[],
    };
    1;

  4. #4
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,322
    Rep Power
    13

    Default

    You're not making/installing perl here but swatch.

    The missing perl modules can be installed through CPAN.
    Here's a quick howto on setting up swatch (and additional modules) on : http://www.trustix.org/wiki/index.php/Swatch
    Last edited by Klug; 08-26-2006 at 12:54 AM.

  5. #5
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    9

    Default

    Quote Originally Posted by Klug
    You're not making/installing perl here but swatch.

    The missing perl modules can be installed through CPAN.
    Here's a quick howto on setting up swatch (and additional modules) on : http://www.trustix.org/wiki/index.php/Swatch
    Thank you very much, but I don't understand what you mean.
    I thought perl should be installed if I followed the step of build_cvs_howto.txt. perhaps I was wrong. Could yo give me a comment how to install perl? THis command just installed lwp of perl? sorry I asked this question because I was not familiar with Perl.

    BTW, about swatch should I configure it after according to the build_cvs_howto.txt (make swatch)?

    #cd Perl
    #mkdir -p ~/.cpan/CPAN
    #cp MyConfig.pm ~/.cpan/CPAN/MyConfig.pm
    #vi ~/.cpan/CPAN/MyConfig.pm
    (when I edit BUILD_ROOT, I replace BUILD_ROOT using /mnt/scsi/tmp/zimbra/ThirdParty/Perl, I think this is ok?
    and I modified tar (/bin/tar)
    )
    #perl -MCAPN -e ' install "LPW"'

    then download swatch
    #make clean
    #make

  6. #6
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,322
    Rep Power
    13

    Default

    I re-read the log your posted, it's about making spamassassin (sa) not swatch...

    What OS are you on, with which packages allready installed ?

  7. #7
    dijichi2 is offline OpenSource Builder & Moderator
    Join Date
    Oct 2005
    Posts
    1,176
    Rep Power
    12

    Default

    the log is pretty self explanatory, you:re missing dependencies, eg.
    ERROR: the required Digest::SHA1 module is not installed.

    try this:
    perl -MCPAN -e 'install "Digest::SHA1"'

  8. #8
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    9

    Default

    Thanks every one.

    My os is fedora 4

    In fact, I did not know how to install perl before you explained to me, so I just installed LPW(using perl -MCPAN -e 'install "LWP"', not other components.
    and now I knew I should install all these missing perl components, and including crap clan-5.3, I thought.

    BTW, do you think my MyConfig.pm is right or not?

  9. #9
    Join Date
    Aug 2006
    Posts
    64
    Rep Power
    9

    Default

    Hi, two guys, I think I have installed the perl components.

    For "I think" is I found there are some errors about ".DBI connect('test','',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at t/20createdrop.t line 45
    ", but I checked the DBI had been installed.

    And now, I am making and creating RPM packets.

    This is error when I make package:
    # make allclean all

    the error information:

    /mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `ORIGINAL'
    /mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `ORIGINAL'
    /mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `VERSION'
    /mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `VERSION'
    /mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `trunk/ZimbraBuild/RE/BUILD'
    /mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `trunk/ZimbraBuild/RE/BUILD'
    /mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:11: warning: overriding commands for target `11545412209502-src.tgz'
    /mnt/scsi/tmp/zimbra/ZimbraBuild/defs/sourcetargets.def:8: warning: ignoring old commands for target `11545412209502-src.tgz'
    (cd /mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer; /zimbra/apache-ant-1.6.5/bin/ant \
    -Dplat.tag=FC4 \
    -Dis-production=1 \
    -Dzimbra.buildinfo.version=4.0.0_GA_246==== ORIGINAL VERSION trunk/ZimbraBuild/RE/BUILD 11545412209502.FC4 \
    -Dzimbra.buildinfo.release=20060827204928 -Dzimbra.buildinfo.date=20060827204928 \
    -Dzimbra.buildinfo.host=hd-t3948cl.privatedns.com dev-dist ; )
    Buildfile: build.xml

    BUILD FAILED
    Target `ORIGINAL' does not exist in this project.

    Total time: 1 second
    make: *** [/mnt/scsi/tmp/zimbra/ZimbraBuild/../ZimbraServer/build/dist/tomcat/webapps/service.war] Error 1

    But when I executed "ant" at /ZimbraServer, it is success. I don't know how should I do.

  10. #10
    Join Date
    Oct 2005
    Posts
    6
    Rep Power
    10

    Default

    I'm trying to install razor and got the following error running make:

    [root@mail razor-agents-sdk-2.07]# make
    make[1]: Entering directory `/var/tmp/razor-agents-sdk-2.07/Digest-1.10'
    make[1]: Leaving directory `/var/tmp/razor-agents-sdk-2.07/Digest-1.10'
    make[1]: Entering directory `/var/tmp/razor-agents-sdk-2.07/Digest-SHA1-2.10'gcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DVERSION=\"2.10\" -DXS_VERSION=\"2.10\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE" SHA1.c/bin/sh: gcc: command not found
    make[1]: *** [SHA1.o] Error 127
    make[1]: Leaving directory `/var/tmp/razor-agents-sdk-2.07/Digest-SHA1-2.10'make: *** [subdirs] Error 2
    ==

    I found this thread and did what dijichi2 advised:

    perl -MCPAN -e 'install "Digest::SHA1"'

    ==
    it ended with this error though:


    ......Checking if your kit is complete...
    Looks good
    Writing Makefile for Digest::SHA1
    cp SHA1.pm blib/lib/Digest/SHA1.pm
    /usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap SHA1.xs > SHA1.xsc && mv SHA1.xsc SHA1.cgcc -c -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DVERSION=\"2.11\" -DXS_VERSION=\"2.11\" -fPIC "-I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE" SHA1.c/bin/sh: gcc: command not found
    make: *** [SHA1.o] Error 127
    /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
    ===

    I'm stuck. Does anyone have any suggstions on how to proceed from here?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •