Re: Upgrade woes!

2001-08-07 Thread Elaine -HFB- Ashton

[EMAIL PROTECTED] [[EMAIL PROTECTED]] quoth:
*>Hi all, I wonder if someone can shed any light on this for me. 
*>
*>I run a Solaris 8 machine (sparc) at work and had problems installing DBI for perl 
5.6.0 - for future reference (for other newbies) if your perl has come precompiled on 
your system, and you install gcc to compile modules, perl doesn't like it!  Anyway to 
cut a long story short I got 5.6.1 from CPAN, compiled with gcc - and installed DBI..

Solaris 8 ships with perl 5.005_03 which was compiled, quite predictably,
with Sun's C compiler, the Forte CC. This is specific to Sun's
installation so it should be a caveat only to Solaris users. You can
compile your modules with gcc but it gets a bit messy and is just easier
in the long run if you leave the Sun Perl alone for use with kstat, etc.
and build your own for use with gcc.

You'll need to make sure you compiled perl correctly...did you do a 'make
test' before you installed it? Also, if you have gcc 2.95 on a 64-bit
solaris you'll need to upgrade your gcc as it has issues with perl and
others. ./configure -des works in most cases for Solaris.

And, check your environment for the web server as there could be a path in
there somewhere that is confusing your scripts due to version mismatches.
And...check your permissions on the perl tree...I noticed perl 5.6.1 had a
077 umask for some reason a while back when I installed it the first time
so it may just be owned by root with a 700 dir permission so your web
server can't get to itI'll bet money that this is probably the issue
:)

e.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Upgrade woes!

2001-08-07 Thread d_c_s

Hi all, I wonder if someone can shed any light on this for me. 

I run a Solaris 8 machine (sparc) at work and had problems installing DBI for perl 
5.6.0 - for future reference (for other newbies) if your perl has come precompiled on 
your system, and you install gcc to compile modules, perl doesn't like it!  Anyway to 
cut a long story short I got 5.6.1 from CPAN, compiled with gcc - and installed DBI..

Then things started to go wrong.  My intranet site relies quite heavily on perl and a 
number of things stopped working.

Checking the apache error logs:

 BEGIN failed--compilation aborted at /usr/apache/htdocs/mrbs/badpw.pl line 8.
Can't locate strict.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.1/sun4-solaris 
/usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/sun4-solaris 
/usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .) at 
/usr/apache/htdocs/mrbs/badpw.pl line 8.

obviously the call to use strict in badpw.pl is erroring. However I thought strict.pm 
was installed as standard!!!
I'm not familiar with @INC - its not in my llama book :(

strict.pm is located in 
/usr/local/lib/perl5/5.6.1/strict.pm though!!

bash-2.03# find / -name strict.pm
/usr/perl5/5.00503/strict.pm
/usr/local/lib/perl5/5.6.1/strict.pm

so now I'm twice as confused and humbly request a helping hand!

cheers,

Dan

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]