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

M

mmccaws2

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.
 
S

smallpond

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.


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
 
M

mmccaws2

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

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?
 
A

all mail refused

$ 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?

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
 
M

mmccaws2

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


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
 
A

all mail refused

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

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

$ file /usr/contrib/bin/traceroute
/usr/contrib/bin/traceroute: ELF-32 executable object file - IA64
$ uname /usr/contrib/bin/traceroute
HP-UX

Use "uname" or "uname -a" - no point calling "uname" on "traceroute"
(or even "traceroute" on "uname").
$ 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

That looks like useful info anyway.

Have you got "tusc" installed?
 
M

mmccaws2

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?

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

ia64 hp server rx1620
 
M

mmccaws2

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

ia64 hp server rx1620

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 [email protected]'
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
 
M

mmccaws2

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

I still can't log in. This is a production server, so it is important
for this to get resolved with minimal service disruption. Do I try to
install the module again. If so, since I can't use perl -MCPAN -e
shell to do this, how do I try to reinstall on a HPUX 11i platform?

Or what do I need to do?

Mike
 
B

brian d foy

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


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.
 
M

mmccaws2

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


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.

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.
 
M

mmccaws2

[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
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.

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.

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

Thanks
Mike
 
J

J. Gleixner

mmccaws2 said:
On Nov 1, 4:32 pm, mmccaws2 <[email protected]> wrote:
Oh yes, we coordinated a reboot and the above output is even after the
reboot.

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.
 
M

mmccaws2

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.

Well, reinstall perl,latest version my administrator could grab, which
we did, has not changed my ability to log into the perl shell. Must
be something in my .cpan directory. What happens if I blow that
away?????

Any thoughts!!!!!!

As to how she installs perl I think she is using a binary.

Mike.
 
B

brian d foy

Well, reinstall perl,latest version my administrator could grab, which
we did, has not changed my ability to log into the perl shell.

There is no Perl shell.

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

mmccaws2

There is no Perl shell.

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

I had to remove the .cpan/CPAN.pm file to get back a prompt.

Mike
 
M

mmccaws2

I had to remove the .cpan/CPAN.pm file to get back a prompt.

Mike

And thanks everyone for your help. For us not so experience in Perl,
getting positive feedback seems to drive me to continue learning and
hopefully become more proficient.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top