Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

/usr/local/bin/perl: cannot execute

90 views
Skip to first unread message

Amin AR

unread,
Jan 26, 2010, 11:11:18 AM1/26/10
to
Hi,

I had successfully installed perl package from Sunfreeware -
ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/perl-5.8.8-sol10-sparc-local.gz.
using below:

# pkgadd -d perl-5.8.8-sol10-sparc-local

However, after the installation, executing

#perl -v"

still pointing to old version "v5.8.4 built for i86pc-solaris-64int".

In /etc/profile, I have set PATH=/usr/local/bin:/usr/local/apache2/
bin:/usr/postgres/8.3/bin:/usr/local/pgsql/bin:/usr/sfw/bin:/usr/ccs/
bin:/usr/bin:$PATH

Any tips on how I can point perl to run version 5.8.8 instead of
5.8.4?

Thanks,
Amin

hume.sp...@bofh.ca

unread,
Jan 26, 2010, 11:34:50 AM1/26/10
to
Amin AR <hadzra...@gmail.com> wrote:
> # pkgadd -d perl-5.8.8-sol10-sparc-local

You installed 5.8.8 for SPARC...

> still pointing to old version "v5.8.4 built for i86pc-solaris-64int".

But your old version is 5.8.4 for i86?

SPARC binaries will not function on i86, and vise versa. What does
"uname -a" tell you?

> In /etc/profile, I have set PATH=/usr/local/bin:/usr/local/apache2/
> bin:/usr/postgres/8.3/bin:/usr/local/pgsql/bin:/usr/sfw/bin:/usr/ccs/
> bin:/usr/bin:$PATH

Did you "export PATH" afterward?

What does "which perl" at the shell prompt tell you?

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/

Amin AR

unread,
Jan 26, 2010, 11:58:11 AM1/26/10
to

It returns:

SunOS testserver01 5.10 Generic_141415-10 i86pc i386 i86pc

Ah... brilliant! I reinstalled x86 package and it works like charm

Thanks,
Amin

On Jan 27, 12:34 am, hume.spamfil...@bofh.ca wrote:

David Kirkby

unread,
Feb 4, 2010, 9:51:51 AM2/4/10
to
On Jan 26, 4:34 pm, hume.spamfil...@bofh.ca wrote:

> Amin AR <hadzramin...@gmail.com> wrote:
> > # pkgadd -d perl-5.8.8-sol10-sparc-local
>
> You installed 5.8.8 for SPARC...

I'm surprised pkgadd allows one to do that. I would consider that a
bug.

Chris Ridd

unread,
Feb 4, 2010, 10:19:44 AM2/4/10
to

Yes, but maybe ARCH isn't set correctly in the package.
--
Chris

0 new messages