🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51503

Re: Using Sunfreeware's perl in place of Sun's perl

#51503
From: Garry Williams
Date: Tue, 27 Mar 2001 15:47
50 lines
3131 bytes
On 27 Mar 2001 05:50:26 -0000, Och <och@nym.alias.net> wrote:
> 
> In a SolarisIA 8 environment, the perl that Sun distributes displays
> the following errors when I invoke inn's mailpost
> 
> Can't locate syslog.ph in @INC (did you run h2ph?) (@INC contains: /usr/perl5/5.
> 00503/i86pc-solaris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/i86pc-solaris
> /usr/perl5/site_perl/5.005 .) at /usr/perl5/5.00503/Sys/Syslog.pm line 117.
> BEGIN failed--compilation aborted at /usr/news/bin/mailpost line 15.
> 
> Apparently perl displays this error because Sun used its proprietary
> C compiler to create its perl distribution, but my host uses gcc.

I would disagree.  The C compiler is not involved here.  The
interpreter simply cannot find syslog.ph.  

> It also seems that a pkgrm SUNWpl5? fails because the Solaris 8
> kernel now depends upon perl.

That's interesting.  How did you conclude that?  

> How the heck can I install Sunfreeware's perl, compiled with gcc,
> if Sun's perl refuses to remove itself?

Installing a Perl distribution is straightforward.  The default
configuration will want to install in /usr/local, but you can change
that to whatever you'd like.  (See the installation documentation in
the perl distribution.)  

> I changed cc to gcc in /usr/perl5/5.00503/i86pc-solaris/Config.pm,
> but the error still occurs.

That's a Bad Thing.  The Sun compiler and gcc are quite incompatible
on their command lines.  You will not (in general) get away with this
hack.  

I encountered problems about a year ago, when I began using an
UltraSparc 10 that came with Solaris 8.  I may have even run into the
same error -- I don't remember.  I do remember not finding things I
expected to be included with perl.  I concluded that the perl
installation was defective, obtained the latest distribution and built
perl using the Workshop 5.0 compiler.  I removed the /bin/perl
(/usr/bin/perl) file that shipped with Solaris and replaced it with a
symbolic link to my installation.  I've never looked back.  

Hope this helps.  

-- 
Garry Williams
Technical Details
Message-ID: <slrn9c1dg7.f4o.garry@zfw.zvolve.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.solaris.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!eagle.america.net.POSTED!garry
References: <20010327055026.19579.qmail@nym.alias.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9c1dg7.f4o.garry@zfw.zvolve.net>
Subject: Re: Using Sunfreeware's perl in place of Sun's perl
Date: Tue, 27 Mar 2001 15:47:19 GMT
From: garry@ifr.zvolve.net (Garry Williams)
References: <20010327055026.19579.qmail@nym.alias.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.unix.solaris.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!falcon.america.net!eagle.america.net.POSTED!garry
Newsgroups: alt.solaris.x86,comp.unix.solaris,news.software.nntp,comp.lang.perl.misc
Reply-To: <garry@zvolve.com>
Organization: Zvolve Systems, Inc.
User-Agent: slrn/0.9.6.4pl4b (SunOS)
Lines: 49
NNTP-Posting-Host: 216.3.26.18
X-Trace: eagle.america.net 985708039 216.3.26.18 (Tue, 27 Mar 2001 10:47:19 EST)
NNTP-Posting-Date: Tue, 27 Mar 2001 10:47:19 EST