AIX > Applications

Problem with CPAN on AIX 6.1 System

(1/2) > >>

brent.weaver:
Hello all... I am hoping that someone has an answer out there for me on this issue. I have a new AIX 6.1 system and am trying to use CPAN (Perl Module installer) and it exits with a 4. This is #define EINTR   4       /* interrupted system call              */ assuming there is not any custom signal handler by perl...

/# cpan
Illegal instruction(coredump)
/# echo $?
132

I get the following with any CPAN module I try to install:

Running make test
        PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
make: 1254-059 The signal code from the last command is 4.

I even get this when I manually install a perl module. I am helpless w/o my perl modules so any help would be MUCH appreciated!

Michael:
First some basic questions:
what installed OSlevel do you have

# oslevel -s

Also, curious about the version of perl installed: As an example I have the following
michael@x054:[/data/home/michael]lslpp -L | grep perl
  perl.libext                2.2.7.0    C     F    Perl Library Extensions
  perl.rte                 5.8.8.122    C     F    Perl Version 5 Runtime
michael@x054:[/data/home/michael]perl -v

This is perl, v5.8.8 built for aix-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.



Do you have a C compiler installed? If yes, which one.

And, I would recommend starting a WPAR with it own /usr and /opt so you can experiment without fear of destroying anything in your main system.

If you need help with making a wpar, I have some articles here that should help, otherwise ask.

brent.weaver:
/testbackup# oslevel -r
6100-06

/testbackup# lslpp -L |grep perl
  perl.libext                2.2.6.0    C     F    Perl Library Extensions
  perl.man.en_US             6.1.0.0    C     F    Perl Documentation - U.S.
  perl.rte                 5.8.8.120    C     F    Perl Version 5 Runtime
/testbackup# lslpp -L |grep -i xlc
  xlC.adt.include           11.1.0.0    C     F    C Set ++ Application
  xlC.aix61.rte             11.1.0.1    C     F    XL C/C++ Runtime for AIX 6.1
  xlC.cpp                    9.0.0.0    C     F    C for AIX Preprocessor
  xlC.msg.en_US.cpp          9.0.0.0    C     F    C for AIX Preprocessor
  xlC.msg.en_US.rte         11.1.0.1    C     F    XL C/C++ Runtime
  xlC.rte                   11.1.0.1    C     F    XL C/C++ Runtime
  xlC.sup.aix50.rte          9.0.0.1    C     F    XL C/C++ Runtime for AIX 5.2
/testbackup# perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=aix, osvers=5.3.0.0, archname=aix-thread-multi
    uname='aix akash79 3 5 00011a85d600 '
    config_args='-desr -Dinstallprefix=/usr/opt/perl5 -Dprefix=/usr/opt/perl5 -Dcc=xlc_r -Duseshrplib -Dusethreads'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong',
    optimize='-O',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT'
    ccversion='9.0.0.2', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -brtl -bdynamic -b32'
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -lgdbm -ldbm -ldb -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd
    perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd
    libc=, so=a, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -bE:/usr/opt/perl5/lib/5.8.8/aix-thread-multi/CORE/perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bexpall -G -bnoentry -lpthreads -lc'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_REENTRANT_API
  Built under aix
  Compiled at Jun  2 2009 16:11:40
  @INC:
    /usr/opt/perl5/lib/5.8.8/aix-thread-multi
    /usr/opt/perl5/lib/5.8.8
    /usr/opt/perl5/lib/site_perl/5.8.8/aix-thread-multi
    /usr/opt/perl5/lib/site_perl/5.8.8
    /usr/opt/perl5/lib/site_perl
    .
/testbackup#

Thank you VERY much for the response to this issue, it is driving me crazy!  :-\

Michael:
 ::) late again  :(

I was having many headaches when working with perl on AIX 5.3. Too much of CPAN just would not build. I was trying to build a test environment for Apache. Turns out I needed to be more minimal.

I am focusing on AIX 6.1 TL7 and better these days - because this version includes software for a tap0 and tapent() interface. Still have a lot to learn in that area, but one of the reasons the most current CPAN would not build was for lack of a tapX() device.

Currently I am looking at:
# oslevel -s
6100-07-03-1207
# lslpp -L perl.\*   
  Fileset                      Level  State  Type  Description (Uninstaller)
  ----------------------------------------------------------------------------
  perl.libext                2.2.7.0    C     F    Perl Library Extensions
  perl.rte                 5.8.8.122    C     F    Perl Version 5 Runtime
                                                   Environment

# lslpp -L xlC.\*
  Fileset                      Level  State  Type  Description (Uninstaller)
  ----------------------------------------------------------------------------
  xlC.aix61.rte             11.1.0.2    C     F    XL C/C++ Runtime for AIX 6.1
  xlC.cpp                    9.0.0.0    C     F    C for AIX Preprocessor
  xlC.msg.en_US.cpp          9.0.0.0    C     F    C for AIX Preprocessor
                                                   Messages--U.S. English
  xlC.rte                   11.1.0.2    C     F    XL C/C++ Runtime
  xlC.sup.aix50.rte          9.0.0.1    C     F    XL C/C++ Runtime for AIX 5.2
(i.e. no compiler installed)

# perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=aix, osvers=5.3.0.0, archname=aix-thread-multi
    uname='aix akash79 3 5 00011a85d600 '
    config_args='-desr -Dinstallprefix=/usr/opt/perl5 -Dprefix=/usr/opt/perl5 -Dcc=xlc_r -Duseshrplib -Dusethreads'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc_r', ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32 -D_LARGE_FILES -qlonglong',
    optimize='-O',
    cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=-1 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT'
    ccversion='9.0.0.2', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='ld', ldflags =' -brtl -bdynamic -b32'
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -lgdbm -ldbm -ldb -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd
    perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc -lbsd
    libc=, so=a, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -bE:/usr/opt/perl5/lib/5.8.8/aix-thread-multi/CORE/perl.exp'
    cccdlflags=' ', lddlflags='-bhalt:4 -bexpall -G -bnoentry -lpthreads -lc'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
                        PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_REENTRANT_API
  Built under aix
  Compiled at Jun  2 2009 16:11:40
  @INC:
    /usr/opt/perl5/lib/5.8.8/aix-thread-multi
    /usr/opt/perl5/lib/5.8.8
    /usr/opt/perl5/lib/site_perl/5.8.8/aix-thread-multi
    /usr/opt/perl5/lib/site_perl/5.8.8
    /usr/opt/perl5/lib/site_perl
    .


So basically, if I compare our two systems - I have slightly newer versioned filesets with regard to perl - and neither of us have a C compiler installed. the *.rte are runtime environments.

try entering:
# lslpp -f xlC.rte xlC.aix61.rte
and hopefully you will understand.

If you beat me to it - try adding a list of (.rpm) files to be downloaded to install a gcc compiler - if you cannot purchase an IBM compiler.

Michael:
The other stuff:
As I got messed up every now and then I ran the following commands:

--- Quote ---# cpan

/usr/opt/perl5/lib/5.8.8/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] ^C#
--- End quote ---


recall in cpan you can:

You can re-run configuration any time with 'o conf init' in the CPAN shell

or

# vi /usr/opt/perl5/lib/5.8.2/CPAN/Config.pm ## AIX 5.3

# vi /usr/opt/perl5/lib/5.8.8/CPAN/Config.pm ## AIX 6.X

Navigation

[0] Message Index

[#] Next page

Go to full version