Problem installing datetime

2004-09-03 Thread ergeorge
Hi, I'm trying to install version 0.22 of this module.

First small issue ... when I run perl Makefile.PL

% perl Makefile.PL
Testing if you have a C compiler
make: *** No rule to make target `testub'.  Stop.

 I cannot determine if you have a C compiler
 so I will install a perl-only implementation

 You can force installation of the XS version with

perl Makefile.PL --xs

Checking if your kit is complete...
Looks good
Warning: prerequisite DateTime::Locale 0.09 not found.
Warning: prerequisite Pod::Man 1.14 not found.

Warning: I could not locate your pod2man program. Please make sure,
 your pod2man program is in your PATH before you execute 'make'

Writing Makefile for DateTime

So why can't it find gcc  pod2man?

% which gcc
/usr/bin/gcc
% which pod2man
/usr/bin/pod2man

(I just installed the latest version of pod2man)

Now here is where it gets ugly.

% make
Makefile:98: *** missing separator.  Stop.

So I look at the makefile, and find alot of what look to be incomplete
lines, unmatched quotes, etc.  Makefile is listed below.

Any ideas what the problem is?  I've tried this on a RedHat 9 box and a
RedHat Enterprise Edition box, both manually, and with CPAN.  Same results
every time.

Thanks
Eric

FWIW
% perl -v
This is perl, v5.8.0 built for i386-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)

% uname -ra
Linux ** 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux

# This Makefile is for the DateTime extension to perl.
#
# It was generated automatically by MakeMaker version
# 6.03 (Revision: 1.63) from the contents of
# Makefile.PL. Don't edit this file, edit Makefile.PL instead.
#
#   ANY CHANGES MADE HERE WILL BE LOST!
#
#   MakeMaker ARGV: ()
#
#   MakeMaker Parameters:

# ABSTRACT = q[DateTime base objects]
# AUTHOR = q[Dave Rolsky [EMAIL PROTECTED]]
# CONFIGURE = CODE(...)
# NAME = q[DateTime]
# PREREQ_PM = { Test::More=q[0], DateTime::TimeZone=q[0.26],
DateTime::Locale=q[0.09], Class::Factory::Util=q[1.3],
Params::Validate=q[0.72], Pod::Man=q[1.14], Time::Local=q[1.04] }
# VERSION_FROM = q[lib/DateTime.pm]
# clean = { FILES=q[] }

#   MakeMaker 'CONFIGURE' Parameters:

# ABSTRACT = q[DateTime base objects]
# AUTHOR = q[Dave Rolsky [EMAIL PROTECTED]]
# C = []
# CONFIGURE = CODE(...)
# NAME = q[DateTime]
# PREREQ_PM = { Test::More=q[0], DateTime::TimeZone=q[0.26],
DateTime::Locale=q[0.09], Class::Factory::Util=q[1.3],
Params::Validate=q[0.72], Pod::Man=q[1.14], Time::Local=q[1.04] }
# VERSION_FROM = q[lib/DateTime.pm]
# XS = {  }
# clean = { FILES=q[] }

# --- MakeMaker post_initialize section:


# --- MakeMaker const_config section:

# These definitions are from config.sh (via
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/Config.pm)

# They may have been overridden via Makefile.PL or on the command line
AR = ar
CC = gcc
CCCDLFLAGS = -fPIC
CCDLFLAGS = -rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE
DLEXT = so
DLSRC = dl_dlopen.xs
LD = gcc
LDDLFLAGS = -shared -L/usr/local/lib
LDFLAGS =  -L/usr/local/lib
LIBC = /lib/libc-2.3.2.so
LIB_EXT = .a'
libc='
OBJ_EXT = ub
OSNAME = linux
OSVERS = 2.4.21-1.1931.2.382.entsmp
RANLIB = _
SO = so
EXE_EXT = 
FULL_AR = /usr/bin/ar


# --- MakeMaker constants section:
AR_STATIC_ARGS = cr
NAME = DateTime
DISTNAME = DateTime
NAME_SYM = DateTime
VERSION = 0.22
VERSION_SYM = 0_22
XS_VERSION = 0.22
INST_ARCHLIB = blib/arch
INST_SCRIPT = blib/script
INST_BIN = blib/bin
INST_LIB = blib/lib
INSTALLDIRS = site
PREFIX = /usr
SITEPREFIX = /usr
VENDORPREFIX = buti
INSTALLPRIVLIB = /usr/lib/perl5/5.8.0
INSTALLSITELIB = /usr/lib/perl5/site_perl/5.8.0'
installsiteman1='/usr/share/man/man1'
installsiteman3='/usr/share/man/man3'
installsitescript='/usr/bin'
installstyle='lib/perl5'
installusrbinperl='define'
installvendorarch='/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi'
installvendorbin='/usr/bin'
installvendorhtml1=''
installvendorhtml3=''
installvendorlib='/usr/lib/perl5/vendor_perl/5.8.
INSTALLVENDORLIB = ib/perl5'
installusrbinperl='def
INSTALLARCHLIB = /usr/lib/perl5/5.8.0/i386-linux-thread-multi
INSTALLSITEARCH = /usr/lib/pe
INSTALLVENDORARCH = /usr/lib/perl5/vendor_perl/5.8.0/i38
INSTALLBIN = /usr/bin'
installhtml1dir=''
installhtml3dir=''
installman1
INSTALLSITEBIN = /usr
INSTALLVENDORBIN = /usr/bin'
installvendorhtml1=''
installvendorhtml3=''
installvendorlib='/u
INSTALLSCRIPT = /usr/bin
PERL_LIB = /usr/lib/perl5/5.8.0
PERL_ARCHLIB = /usr/lib/perl5/5.8.0/i386-linux-thread-multi
SITELIBEXP = '/usr/lib/perl5/site_perl'
sit
SITEARCHEXP = /usr/lib/pe
LIBPERL_A = libperl.a'
libc='
FIRST_MAKEFILE = Makefile
MAKE_APERL_FILE = Makefile.aperl
PERLMAINCC = $(CC)
PERL_INC = /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE
PERL = /usr/bin/perl
FULLPERL = /usr/bin/perl
PERLRUN = $(PERL)
FULLPERLRUN = $(FULLPERL)
PERLRUNINST = $(PERLRUN) -I$(INST_ARCHLIB) -I$(INST_LIB)
FULLPERLRUNINST = $(FULLPERLRUN) -I$(INST_ARCHLIB) 

Re: Formatters and DateTime subclasses

2004-09-03 Thread Joshua Hoblitt
On Thu, 2 Sep 2004, Dave Rolsky wrote:

 Well, the original question was in regards to subclasses of DateTime.pm.
 Given that a subclass will inherit from_object(), that seems good enough.
 
  my $my_dt = My::DT::Subclass-from_object( object = DateTime-new );
 
 That should work without any changes to existing code.

Except for all those non-inheritable lexical variables in the DateTime namespace...

-J

--