!Help: can't get into perl -MCPAN -e shell

!Help: can't get into perl -MCPAN -e shell

Post by mmccaws » Fri, 02 Nov 2007 00:47:55


I try to login in at command line. It gives me the output below. It
then kicks me out of the perl shell. What do I need to do to be able
to use it?

Mike

Here is the error message:

Can't load '/opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/auto/IO/
IO.so' for module IO: Exec format error at /opt/perl/lib/5.8.3/
IA64.ARCHREV_0-thread-multi/XSLoader.pm line 68.
at /opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/IO.pm line 11
Compilation failed in require at /opt/perl/lib/5.8.3/IA64.ARCHREV_0-
thread-multi/IO/Handle.pm line 260.
BEGIN failed--compilation aborted at /opt/perl/lib/5.8.3/
IA64.ARCHREV_0-thread-multi/IO/Handle.pm line 260.
Compilation failed in require at /opt/perl/lib/5.8.3/IA64.ARCHREV_0-
thread-multi/IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at /opt/perl/lib/5.8.3/
IA64.ARCHREV_0-thread-multi/IO/Seekable.pm line 101.
Compilation failed in require at /opt/perl/lib/5.8.3/IA64.ARCHREV_0-
thread-multi/IO/File.pm line 117.
BEGIN failed--compilation aborted at /opt/perl/lib/5.8.3/
IA64.ARCHREV_0-thread-multi/IO/File.pm line 117.
Compilation failed in require at /opt/perl/lib/5.8.3/FileHandle.pm
line 9.
Compilation failed in require at /opt/perl/lib/5.8.3/CPAN.pm line 26.
BEGIN failed--compilation aborted at /opt/perl/lib/5.8.3/CPAN.pm line
26.
Compilation failed in require.
BEGIN failed--compilation aborted.
 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by smallpon » Fri, 02 Nov 2007 05:34:40


Exec format error means the file will not run on your machine.
Either
it is corrupted or (more likely) built for the wrong architecture.
Are you on an Itanium system? Try the command:

file /opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/auto/IO/IO.so

 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by mmccaws » Fri, 02 Nov 2007 05:52:04


here is the output

$ file /opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/auto/IO/IO.so
/opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/auto/IO/IO.so: ELF-32
shared object file - IA64

what does this do?
 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by all mail r » Fri, 02 Nov 2007 07:29:23


It describes the file to you.

What do you get from these commands? (Intended to describe
an executable we know you can run, together with some details
of your machine.)
file `which file`
arch
uname -a

--
Elvis Notargiacomo master AT barefaced DOT cheek
http://www.yqcomputer.com/
 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by mmccaws » Fri, 02 Nov 2007 08:20:57

On Oct 31, 3:29 pm, all mail refused < XXXX@XXXXX.COM >




Which arch are you referring to? Would it be an arch file only within
perl directories.

the rest is below

BTW I really appreciate your help too.

Mike
$ file /usr/contrib/bin/traceroute
/usr/contrib/bin/traceroute: ELF-32 executable object file - IA64
$ arch /usr/contrib/bin/traceroute
ksh: arch: not found
$ which arch
no arch in /usr/bin /usr/ccs/bin /usr/contrib/bin /usr/contrib/Q4/bin /
opt/perl/bin /opt/ipf/bin /opt/hparray/bin /opt/nettladm/bin /opt/fcms/
bin /usr/bin/X11 /opt/sec_mgmt/bastille/bin /opt/dsau/bin /opt/dsau/
sbin /opt/resmon/bin /opt/gnome/bin /usr/contrib/kwdb/bin /opt/wbem/
bin /opt/wbem/sbin /opt/mozilla /opt/graphics/common/bin /opt/sec_mgmt/
spc/bin /opt/ssh/bin /opt/hpsmh/bin /opt/upgrade/bin /opt/gwlm/bin /
usr/contrib/bin/X11 /opt/networker/bin .
$ uname /usr/contrib/bin/traceroute
HP-UX
$ file /opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/auto/IO/IO.so
/opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/auto/IO/IO.so: ELF-32
shared object file - IA64
$ uname -a /opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/auto/IO/
IO.so
HP-UX snoopy B.11.23 U ia64 0605108897 unlimited-user license
 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by all mail r » Fri, 02 Nov 2007 08:56:36


You don't seem to have "arch" on HP-UX; what does "model" say?




Use "uname" or "uname -a" - no point calling "uname" on "traceroute"
(or even "traceroute" on "uname").



That looks like useful info anyway.

Have you got "tusc" installed?

--
Elvis Notargiacomo master AT barefaced DOT cheek
http://www.yqcomputer.com/
 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by mmccaws » Fri, 02 Nov 2007 09:27:55

On Oct 31, 4:56 pm, all mail refused < XXXX@XXXXX.COM >



There is no 'tusc', here's model output

ia64 hp server rx1620
 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by mmccaws » Fri, 02 Nov 2007 10:19:48

n Oct 31, 5:27 pm, mmccaws2 < XXXX@XXXXX.COM > wrote:

here is the perl -V output

Summary of my perl5 (revision 5.0 version 8 subversion 3)
configuration:
Platform:
osname=hpux, osvers=11.22, archname=IA64.ARCHREV_0-thread-multi
uname='hp-ux bigsur03 b.11.22 u ia64 1800516905 unlimited-user
license '
config_args='-ders -Dcc=cc -Accflags=-DNO_HASH_SEED -Dusethreads -
Duseithreads -Ud_sigsetjmp -Uinstallusrbinperl -Ulocincpth= -
Uloclibpth= -Dd_attribut=undef -Dd_u32align=define -Doptimize=-fast
+DSitanium2 +Ofltacc=strict -Duselargefiles -
Dinc_version_list=5.8.2/$archname 5.8.2 5.8.1/$archname 5.8.1
5.8.0/$archname 5.8.0 -Duseshrplib -Dprefix=/opt/perl -
Dcf_by=ActiveState -Dcf_email= XXXX@XXXXX.COM '
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', ccflags =' -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -
D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED -
D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ',
optimize='-fast +DSitanium2 +Ofltacc=strict',
cppflags='-D__STDC_EXT__ -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -
D_REENTRANT -D_HPUX_SOURCE -Wl,+vnocompatwarnings -DNO_HASH_SEED'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='/usr/bin/ld', ldflags =' -L/usr/lib/hpux32'
libpth=/usr/lib/hpux32 /lib /usr/lib /usr/ccs/lib /usr/local/lib
libs=-lnsl -lnm -lndbm -ldl -ldld -lm -lsec -lpthread -lc
perllibs=-lnsl -lnm -ldl -ldld -lm -lsec -lpthread -lc
libc=/usr/lib/hpux32/libc.so, so=so, useshrplib=true,
libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_hpux.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -
Wl,-B,deferred '
cccdlflags='+Z', lddlflags='-b +vnocompatwarnings -L/usr/lib/
hpux32'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Locally applied patches:
ActivePerl Build 809
22218 Remove the caveat about detached threads crashing on
Windows
22201 Avoid threads+win32 crash by freeing Perl interpreter
slightly later
22169 Display 'out of memeory' errors using low-level I/O
22159 Upgrade to Time::Hires 1.55
22120 Make 'Configure -Dcf_by=...' work
22051 Upgrade to Time::HiRes 1.54
21540 Fix backward-compatibility issues in if.pm
Built under hpux
Compiled at Jan 18 2005 15:43:34
@INC:
/opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi
/opt/perl/lib/5.8.3
/opt/perl/lib/site_perl/5.8.3/IA64.ARCHREV_0-thread-multi
/opt/perl/lib/site_perl/5.8.3
/opt/perl/lib/site_perl
.

 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by brian d fo » Sat, 03 Nov 2007 05:55:17

[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]

In article < XXXX@XXXXX.COM >,




I'm not sure what this means. Are you talking about logging into your
user account and getting this error before you type any commands?

A complete transcript of your session would be helpful. :)



Can you run anything else with perl or is it just this module giving
you problems?

What happens when you try:

$ perl -MIO -e 0

If that doesn't work, I suggest re-installing perl. You have something
wrong with a core module.
 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by mmccaws » Sat, 03 Nov 2007 08:32:16


Anytime I try to use a perl shell I get similar error messages.
even for
perl -e shell
perl -MCPAN -e shell
and now
{ the output for all three is below.}
$ perl -MIO -e 0
Can't load '/opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/auto/IO/
IO.so' for module IO: Exec format error at /opt/perl/lib/5.8.3/
IA64.ARCHREV_0-thread-multi/XSLoader.pm line 68.
at /opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/IO.pm line 11
Compilation failed in require.
BEGIN failed--compilation aborted.
$ perl -e shell
$ perl -MCPAN -e shell
Can't load '/opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/auto/IO/
IO.so' for module IO: Exec format error at /opt/perl/lib/5.8.3/
IA64.ARCHREV_0-thread-multi/XSLoader.pm line 68.
at /opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/IO.pm line 11
Compilation failed in require at /opt/perl/lib/5.8.3/IA64.ARCHREV_0-
thread-multi/IO/Handle.pm line 260.
BEGIN failed--compilation aborted at /opt/perl/lib/5.8.3/
IA64.ARCHREV_0-thread-multi/IO/Handle.pm line 260.
Compilation failed in require at /opt/perl/lib/5.8.3/IA64.ARCHREV_0-
thread-multi/IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at /opt/perl/lib/5.8.3/
IA64.ARCHREV_0-thread-multi/IO/Seekable.pm line 101.
Compilation failed in require at /opt/perl/lib/5.8.3/IA64.ARCHREV_0-
thread-multi/IO/File.pm line 117.
BEGIN failed--compilation aborted at /opt/perl/lib/5.8.3/
IA64.ARCHREV_0-thread-multi/IO/File.pm line 117.
Compilation failed in require at /opt/perl/lib/5.8.3/FileHandle.pm
line 9.
Compilation failed in require at /opt/perl/lib/5.8.3/CPAN.pm line 26.
BEGIN failed--compilation aborted at /opt/perl/lib/5.8.3/CPAN.pm line
26.
Compilation failed in require.
BEGIN failed--compilation aborted.
 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by mmccaws » Sat, 03 Nov 2007 08:38:21

n Nov 1, 4:32 pm, mmccaws2 < XXXX@XXXXX.COM > wrote:

Oh yes, we coordinated a reboot and the above output is even after the
reboot.

Thanks
Mike

 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by J. Gleixne » Sun, 04 Nov 2007 00:10:52


Why would a reboot help? Do a re-build/re-install of perl, might as
well make it the latest version, while you're at it.

No idea how HP does things, but it should involve running make. Make
sure you do the 'make test'.

make
make test ---> this should pass.. maybe a few warnings, but it should
run and not give fatal errors.
make install .. if the tests pass

You probably want to do that on your test box or on one of your
redundant servers first.
 
 
 

!Help: can't get into perl -MCPAN -e shell

Post by brian d fo » Sun, 04 Nov 2007 22:10:15

In article < XXXX@XXXXX.COM >,




There is no Perl shell.

And, it sounds like your administrator needs to recompile Perl. The
binary she is installing is broken.