BOFH_Admin has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

If anyone has any ideas on this issue it would be greatly appreciated.

Issue:

Trying to install Expect.pm(from CPAN) on Solaris 8 64/32 bit with 2 versions of perl installed. The 2 vers are the 5.0053 that comes with Solaris 8 and 5.8.7 that I installed.

I have installed Tty.pm without errors but Expect.pm craps out. I get the following error when running "perl Makefile.PL".

# perl Makefile.PL Checking if your kit is complete... Looks good ld.so.1: perl: fatal: relocation error: file /usr/local/lib/perl5/5.8. +7/sun4-solaris/auto/IO/Tty/Tty.so: symbol perl_get_sv: referenced sym +bol not found Killed

System:

# uname -a SunOS nmsptem 5.8 Generic_117350-28 sun4u sparc SUNW,Ultra-80

PerlEnv:

# perl -e 'for (@INC) {print "$_\n"}'; /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.7/sun4-solaris /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl .

I cannot find any useful info on this at CPAN or general WWW searches. Any ideas out there?

Thanks in Advance

Chris B.

Edited by planetscape - added code tags and rudimentary formatting

Replies are listed 'Best First'.
Re: expect.pm install issue
by bowei_99 (Friar) on Apr 07, 2006 at 00:10 UTC
    Have you tried using the CPAN shell? I'd preferred doing it by hand until I realized that migrating the modules not installed with the CPAN shell are gonna be a pain. Besides, if the CPAN shell doesn't work, you can always go into the directory and install the downloaded modules manually. You can use the shell like so:

    # perl -MCPAN -e shell .... cpan> install Expect
    I was able to do so (install Expect.pm) on my Solaris box without a problem. The shell should figure out dependencies and install them as needed; the default is to prompt you first.

    If that doesn't work, I'd suggest looking first at which versions of make, ld, etc. as well as the patch level of the OS. Here's info on the machine I installed it on:

    # uname -a SunOS hostname 5.8 Generic_108528-21 sun4u sparc SUNW,Sun-Fire-880 # which ld; which make /usr/ucb/ld /usr/ccs/bin/make

    -- Burvil