Matisse Enzer wrote: > > On Mar 5, 2006, at 3:15 PM, Michael Peters wrote: >> >> Matisse Enzer wrote: >>> After some trouble, I managed to create a distribution tarball for my >>> patched Redhat 8 system from smolder-0.01-src using >>> bin/smolder_makedist. >> >> Thanks for trying this out so soon. It's been developed on FC3,.... > ... >> What platform did it try and build for? > > I used the RH9 target: > > bin/smolder_build RH9 > > and that seemed OK. > > > FYI: > my /etc/redhat-release has: > Red Hat Linux release 8.0 (Psyche) > and my Perl is /usr/bin/perl which is 5.8.7 > I'll put output from perl -V at the end of this email. > My gcc is gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7) > > >> Did you need to add a platform/RH8/Platform.pm > > Actually no, I didn't.
Maybe we could add it, just so it's less confusing to someone in the future trying to do this same thing. If you get some time, you can have a go at it. >>> The problem I encountered was in >>> src/libapreq-1.3.tar.gz - specifically in >>> src/libapreq-1.3/Makefile.PL (after unpacking the tarball) >>> the code in the BEGIN block was not finding the proper mod_perl >>> installation. >>> >>> I hacked the Makefile.PL, mainly by putting this in the BEGIN block >>> (notice this is a hack it specifically mention my specific arch_lib - >>> i686-linux: >> >> That's strange. smolder_build is supposed to add this directory to >> @INC. What do >> you get when you dumpe @INC in the Makefile.PL? > > See below... > >> ... >> Thanks for catching this. I've uploaded 0.02 to sourceforge. Could you >> give that >> a try? > > Here it is from smolder-0.02-src - I added code to the Makefile.PL for > libapreq-1.3 to show @INC when it dies: > >> mod_perl 1.x ( < 1.99) is required. @INC contains: >> Apache-Test/lib,/usr/local/src/smolder/smolder-0.02-src/lib/i686-linux,/usr/local/src/smolder/smolder-0.02-src/lib,/usr/local/src/smolder/smolder-0.02-src/platform,/usr/lib/perl5/5.8.7/i686-linux,/usr/lib/perl5/5.8.7,/usr/lib/perl5/site_perl/5.8.7/i686-linux,/usr/lib/perl5/site_perl/5.8.7,/usr/lib/perl5/site_perl/5.8.0,/usr/lib/perl5/site_perl,. >> at Makefile.PL line 29. Now that's really strange. mod_perl.pm does appear in that one of those paths (probably /usr/local/src/smolder/smolder-0.02-src/lib/i686-linux) right? > I tried changing: > eval {require mod_perl} > to > eval {use mod_perl} > in Makefile.PL but that didn't work: > >> Please install mod_perl: 1.25 < version < 1.99 () at Makefile.PL line 23. > > I tried > eval {require 'mod_perl.pm'} > > but that didn't work either. Passing the 'require' the exact path to > mod_perl.pm does work though. > I don't know why. > > Hmmm. Looks like scripts/smolder_makedist removes the INSTALL file. More strangeness. It's actually supposed to create it. Line #178 system("pod2text --loose $ENV{SMOLDER_ROOT}/docs/ops_install.pod > $ENV{SMOLDER_ROOT}/INSTALL"); > The install from the dist tarball worked, with one more change: > > The password I used for DBPass has spaces in it, so, in > bin/smolder_createdb: Thanks, applied. > Even though the install worked, the smolder apache will not run, because > DateTime::Locale is missing: Ok, this time I was a little more thorough in finding the dependencies. That should be all of them in the upcoming 0.03 (sometime this afternoon). > OK, I gotta stop for now :-) I understand. Thanks for helping out so far. If you get some more time, check out the latest release. -- Michael Peters Developer Plus Three, LP