On 2002-11-18 Mike Schilli wrote:
>
>Thanks for the hint! I've done some more investigation on this and it seems
>like "ppm" is totally broken in Activestate 5.8.0 beta.
>
>Here's what I tried:
>
>* Calling "ppm" results in "bad command or filename"
>
>* Calling "ppm3" results in "bad command or filename"
>
>* "ppm2" actually seems to work.
>
>It serves up the "ppm>" command prompt, which, when I entered
>
> ppm> <A HREF="http://log4perl.sourceforge.net/ppm/Log-Log4perl.ppd">http://log4perl.sourceforge.net/ppm/Log-Log4perl.ppd</A>
>
>contacted the server, fetched the "ppd" file, but choked:
>
> Read a PPD for '"http://log4perl.sourceforge.net/ppm/Log-Log4perl.ppd"',
>but
> it is not intended for this build of Perl (MSWin32-x86-multi-thread)
>
>So, according to Duncan's suggestion, I changed the line
>
> ARCHITECTURE NAME="MSWin32-x86-multi-thread"
>
>in the above mentioned *.ppd file to
>
> ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8"
>
>stored it in
>
> <A HREF="http://log4perl.sourceforge.net/ppm/Log-Log4perl-58.ppd">http://log4perl.sourceforge.net/ppm/Log-Log4perl-58.ppd</A>
>
>and ran it again. This time, it actually fetched the referenced tarball,
>installed it (although it muttered something about "Duplicate POD found"),
>but missed the dependencies, because it doesn't notice that Log::Log4perl
>depends on Log::Dispatch as indicated by
>
> DEPENDENCY NAME="Log-Dispatch" VERSION="2,0,0,0"
>
>in the *.ppd file. Next try was to manually install Log::Dispatch:
>
> ppm> install Log::Dispatch
>
>but that failed (although it works with ActiveState perl 5.6.1), saying it
>can't find it.
>
>Does anybody know how to resolve these issue or how to contact Activestate
>about it? Seems like my emails to their perl-win32-users mailing list are
>silently discarded.
>
I think that you've done everything that you need to for Log4perl.
One ppd for 5.6 and another for 5.8, each identifying the correct
ARCHITECTURE and both pointing to the same *.tar.gz file (I assume
that it really is the same for both architectures).
When you tried to install Log::Dispatch, which was your default
repository? If it was Active State, then their 5.8 respository doesn't
have Log::Dispatch (but their 5.6 repository does have it), so that's
why it wouldn't install. It will also need packages for its
dependencies, such as Params::Validate, which is also not available for
5.8.
You can see what's available for 5.6/5.8 here:
http://www.activestate.com/PPMPackages/
It seems like a bit too much hard work to get the packages available
until 5.8 is formally released. For pure-Perl packages such as these
it's really easier all round to get people to build using make (nmake
for Windows):
perl makefile.pl
nmake
nmake test
ppm install
The package will then appear when you do a "ppm query". This is what I
do for Perl-only packages, and also have a step to generate the
html docs from pm/pod files and integrate into the AS docs.
Regards,
Duncan Cameron
|