File::Spec?

Hello users,

After living with this problem for months, I’ve now decided to ask the gurus
for a solution.

There are times I’ve had to reinstall File::Spec because apache complains
about the version. The problem is that once in a while this problem rears
its ugly face again:

wash@ns2 (‘tty’) ~ 44 -> sudo apachectl startssl
[Fri Sep 20 14:20:06 2002] [error] File::Spec version 0.8 required–this is only version 0.6 at
/usr/local/lib/perl5/site_perl/5.005/File/Temp.pm line 124.
BEGIN failed–compilation aborted at /usr/local/lib/perl5/site_perl/5.005/File/Temp.pm line 124.
BEGIN failed–compilation aborted at /opt/rt2/lib/RT/Interface/Web.pm line 404.
BEGIN failed–compilation aborted at /opt/rt2/bin/webmux.pl line 77.

Syntax error on line 10 of /usr/local/etc/apache/virtuals.conf:
File::Spec version 0.8 required–this is only version 0.6 at /usr/local/lib/perl5/site_perl/5.005/File/Temp.pm line 124.
BEGIN failed–compilation aborted at /usr/local/lib/perl5/site_perl/5.005/File/Temp.pm line 124.
BEGIN failed–compilation aborted at /opt/rt2/lib/RT/Interface/Web.pm line 404.
BEGIN failed–compilation aborted at /opt/rt2/bin/webmux.pl line 77.

/usr/local/bin/apachectl startssl: httpd could not be started

When this happens, I’ve simply done either of 2 things:

  1. perl -MCPAN -e ‘install File::Spec’, or
  2. tar zxvf File-Spec-0.8.2.tar.gz && perl Makefile.PL && make install

then apache will start, but that is not the end. This problem always comes back.

I need to putit to rest. HOW???

    cheers
   - wash 

Odhiambo Washington, wash@wananchi.com . WANANCHI ONLINE LTD (Nairobi, KE) |
http://ns2.wananchi.com/~wash/ . 1ere Etage, Loita Hse, Loita St., |
GSM: (+254) 722 743 223 . # 10286, 00100 NAIROBI |
“Oh My God! They killed init! You Bastards!”
–from a /. post

  1. perl -MCPAN -e ‘install File::Spec’, or
  2. tar zxvf File-Spec-0.8.2.tar.gz && perl Makefile.PL && make install

Try #2 but do ‘make install UNINST=1’. This will remove any older copies
floating about in your Perl library directories, which may (or may not)
explain your problem.

-dave

/==================
www.urth.org
we await the New Sun
==================
/

“OW” == Odhiambo Washington wash@wananchi.biz writes:

OW> When this happens, I’ve simply done either of 2 things:

OW> 1. perl -MCPAN -e ‘install File::Spec’, or
OW> 2. tar zxvf File-Spec-0.8.2.tar.gz && perl Makefile.PL && make install

Which are essentially identical.

OW> then apache will start, but that is not the end. This problem
OW> always comes back.

OW> I need to putit to rest. HOW???

Well, keep a notebook of everything you do between the times you have
to reinstall File::Spec. Find out which one of those is overwriting
it with an older version, then stop doing that.

Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera@kciLink.com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/

Hello users,

After living with this problem for months, I’ve now decided to ask the gurus
for a solution.

There are times I’ve had to reinstall File::Spec because apache complains
about the version. The problem is that once in a while this problem rears
its ugly face again:
[massive correct info elided]

Let me guess (and I don’t think it’s a guess, I’m sure I’ve seen you on
the FreeBSD lists) – you’re tracking -STABLE in FreeBSD. :wink:

Every time you buildworld/installworld, you must reinstall File::Spec –
either FreeBSD has added it, or it’s always been part of a standard Perl
5.005_03 install – been ages since I used that version of Perl in
anything but FreeBSD.

I simply make it a part of my set procedure for buildworld/installworld.
Anytime after the install, but before the reboot, will prevent any
downtime for Apache & RT except for the reboot. I find right after
mergemaster works best, it’s user-interactive as well.

Greg White

  • Greg White gregw-rt-users@greg.cex.ca [20020921 06:20]: wrote:> On Fri Sep 09/20/02, 2002 at 07:17:54PM +0300, Odhiambo Washington wrote:

Hello users,

After living with this problem for months, I’ve now decided to ask the gurus
for a solution.

There are times I’ve had to reinstall File::Spec because apache complains
about the version. The problem is that once in a while this problem rears
its ugly face again:
[massive correct info elided]

Let me guess (and I don’t think it’s a guess, I’m sure I’ve seen you on
the FreeBSD lists) – you’re tracking -STABLE in FreeBSD. :wink:

Every time you buildworld/installworld, you must reinstall File::Spec –
either FreeBSD has added it, or it’s always been part of a standard Perl
5.005_03 install – been ages since I used that version of Perl in
anything but FreeBSD.

I simply make it a part of my set procedure for buildworld/installworld.
Anytime after the install, but before the reboot, will prevent any
downtime for Apache & RT except for the reboot. I find right after
mergemaster works best, it’s user-interactive as well.

Hello Greg,

You are 100% correct in your observations. I’d also thought that it’s
something to do with FreeBSD updates but wanted to be sure about it.
As a matter of fact I’ve always had to do this whenever I do buildworld.

OT: Do you know why the perl in FreeBSD is not being properly updated -
the decision behind staying put at ver 5.0.x???

Thanks to all who responded to give me the solution.

    cheers
   - wash 

Odhiambo Washington, wash@wananchi.com . WANANCHI ONLINE LTD (Nairobi, KE) |
http://ns2.wananchi.com/~wash/ . 1ere Etage, Loita Hse, Loita St., |
GSM: (+254) 722 743 223 . # 10286, 00100 NAIROBI |
“Oh My God! They killed init! You Bastards!”
–from a /. post

Hello users,

After living with this problem for months, I’ve now decided to
ask the gurus for a solution.

There are times I’ve had to reinstall File::Spec because apache
complains about the version. The problem is that once in a while
this problem rears its ugly face again:

[massive correct info elided]

Let me guess (and I don’t think it’s a guess, I’m sure I’ve seen
you on the FreeBSD lists) – you’re tracking -STABLE in FreeBSD. :wink:

Every time you buildworld/installworld, you must reinstall
File::Spec – either FreeBSD has added it, or it’s always been part
of a standard Perl 5.005_03 install – been ages since I used that
version of Perl in anything but FreeBSD.

I simply make it a part of my set procedure for
buildworld/installworld. Anytime after the install, but before the
reboot, will prevent any downtime for Apache & RT except for the
reboot. I find right after mergemaster works best, it’s
user-interactive as well.

Hello Greg,

You are 100% correct in your observations. I’d also thought that it’s
something to do with FreeBSD updates but wanted to be sure about it.
As a matter of fact I’ve always had to do this whenever I do
buildworld.

OT: Do you know why the perl in FreeBSD is not being properly updated

  • the decision behind staying put at ver 5.0.x???

Thanks to all who responded to give me the solution.

have you checked out /etc/make.conf–
#NOPERL= true # do not build perl. Disables OpenSSL
optimizations

i think this would keep build/install world from overwriiting site
specific things like file::spec— not sure about effects on openssl
though cuz i haven’t tried it yet myself…

regards-- kg

“OW” == Odhiambo Washington wash@wananchi.biz writes:

OW> OT: Do you know why the perl in FreeBSD is not being properly updated -
OW> the decision behind staying put at ver 5.0.x???

Because the powers that be at FreeBSD land think that perl should be
taught to forcibly re-install all of its files when you do an
installworld, rather than the normal perlish only-install-if-newer
behavior. Apparently the newer perls in the FreeBSD ports collections
also have this nasty behavior.

What I do after any upgrade involving perl is to run CPAN
interactively, update the CPAN itself, then run the “r” command which
tells me all outdated modules, then update them (assuming they don’t
involve upgrading perl versions.)