Please login or register. August 01, 2014, 09:51:20 AM

Author Topic: Problem with CPAN on AIX 6.1 System  (Read 4701 times)

0 Members and 1 Guest are viewing this topic.

brent.weaver

  • Full Member
  • ***
  • Posts: 17
  • Karma: +0/-0
Problem with CPAN on AIX 6.1 System
« on: May 08, 2012, 06:13:23 PM »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 874
  • Karma: +0/-0
Re: Problem with CPAN on AIX 6.1 System
« Reply #1 on: May 09, 2012, 01:32:36 PM »
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

  • Full Member
  • ***
  • Posts: 17
  • Karma: +0/-0
Re: Problem with CPAN on AIX 6.1 System
« Reply #2 on: May 09, 2012, 03:29:07 PM »
/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

  • Administrator
  • Hero Member
  • *****
  • Posts: 874
  • Karma: +0/-0
Re: Problem with CPAN on AIX 6.1 System
« Reply #3 on: May 15, 2012, 02:58:09 PM »
 ::) 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

  • Administrator
  • Hero Member
  • *****
  • Posts: 874
  • Karma: +0/-0
Re: Problem with CPAN on AIX 6.1 System
« Reply #4 on: May 15, 2012, 03:02:47 PM »
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#


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

brent.weaver

  • Full Member
  • ***
  • Posts: 17
  • Karma: +0/-0
Re: Problem with CPAN on AIX 6.1 System
« Reply #5 on: May 15, 2012, 07:30:10 PM »
Thank you for the responses all! I cannot even get into CPAN via the cpan command/script or perl -MCPAN -e shell. Either way my process cores. I do have a c compiler installed.

I will also post:

/home/idxsys# lslpp -f xlC.rte xlC.aix61.rte
  Fileset               File
  ----------------------------------------------------------------------------
Path: /usr/lib/objrepos
  xlC.aix61.rte 11.1.0.1
                        /usr/lpp/xlC/lib/profiled
                        /usr/lpp/xlC/lib/profiled/aix61/libC128.a
                        /usr/lpp/xlC/lib/aix61/libC.a
                        /usr/lpp/xlC
                        /usr/lpp/xlC/lib/profiled/aix61
                        /usr/lpp/xlC/lib/aix61/libC128.a
                        /usr/lpp/xlC/lib/profiled/aix61/libC128_r.a -> /usr/lpp/xlC/lib/profiled/aix61/libC128.a
                        /usr/lpp/xlC/lib/profiled/aix61/libC.a
                        /usr/lpp/xlC/lib/aix61/libC_r.a -> /usr/lpp/xlC/lib/aix61/libC.a
                        /usr/lpp/xlC/lib/aix61/libC128_r.a -> /usr/lpp/xlC/lib/aix61/libC128.a
                        /usr/lpp/xlC/lib/profiled/aix61/libC_r.a -> /usr/lpp/xlC/lib/profiled/aix61/libC.a
                        /usr/lpp/xlC/lib
                        /usr/lpp/xlC/lib/aix61
  xlC.rte 11.1.0.1      /usr/ccs/lib/libp/libC_r.a -> /usr/lpp/xlC/lib/profiled/libC_r.a
  xlC.rte 11.1.0.1      /usr/lib/libC.a -> /usr/lpp/xlC/lib/libC.a
  xlC.rte 11.1.0.1      /usr/lib/libibmcls.a -> /usr/lpp/xlC/lib/libibmcls.a
  xlC.rte 11.1.0.1      /usr/lpp/xlC/lib/libibmuis.a
                        /usr/ccs/lib/libp/libC128_r.a -> /usr/lpp/xlC/lib/profiled/libC128_r.a
                        /usr/lib/libC128.a -> /usr/lpp/xlC/lib/libC128.a
                        /usr/lib/libC128_r.a -> /usr/lpp/xlC/lib/libC128_r.a
                        /usr/ccs/lib/libp/libC.a -> /usr/lpp/xlC/lib/profiled/libC.a
                        /usr/ccs/lib/libp/libC128.a -> /usr/lpp/xlC/lib/profiled/libC128.a
                        /usr/lib/libC_r.a -> /usr/lpp/xlC/lib/libC_r.a
                        /usr/lpp/xlC/lib/libibmcls.a
                        /usr/lib/libibmuis.a -> /usr/lpp/xlC/lib/libibmuis.a
/home/idxsys#

I had IBM do a analysis on the core and they were seeing it core on ReadTerm. Keep in mind I cannot even get into cpan and I actually think that there is two issues at hand here.

Again thank you all for your help. Perhaps I should look at updating to TL7???

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 874
  • Karma: +0/-0
Re: Problem with CPAN on AIX 6.1 System
« Reply #6 on: May 18, 2012, 12:05:46 PM »
Update to TL7 might fix things. I do not know well enough to know directly where everything is installed.

Basic thoughts: as your base install seems to be broken in some way I would try to uninstall perl, but this is not possible.
I recall you can/could install AIX without perl, but once installed, you cannot really uninstall it - look at output of
# installp -ugp perl.rte perl.libext

Production system:
1) make a backup
2) restore to test system and experiment there

Test System:
1) clone system, reboot on copy
2) perform tests

Basic tests:

Make sure that all your installs have completed correctly

# installp -C  # cleanup

Make sure all installs are committed (or check what can be rejected)

# installp -c all # commit all previous installs

See if problems have gone away... ???

Still not working as desired - for perl...

Use "force" mode to reinstall perl.rte and perl.libext - NOTE !!

Before that, because I am unsure about strange files in my perl environment that are not being reinstalled, move the old installation
to a new name. After running the command
# lslpp -f perl.libext
I noticed that /opt/perl seems to be a key directory.
Examining perl.rte ( # lslpp -f perl.rte ) I see a second key directory - /usr/opt/perl5

So, rather than doing an update_all to TL7 I would do something like:
mv /opt/perl /opt/perl.broken
mv /usr/opt/perl5 /usr/opt/perl5.broken


and then from "installation media"

# installp -d "installDirectory" -apF perl.rte perl.libext

You might need an extra flag (e.g., -Y)

Hope this gives you enough to move forward.
Remember after the Force install to do an update_all to get perl updated to a level consistent with the rest of the system, and as you first command try "cpan"