|
From: Jay S. <me...@he...> - 2002-05-15 16:26:03
|
Worked like a charm my man. Thanks
I don't understand, I'm new to Perl (on windows, compiled/used a fair amount
on *nix). I understand all you need to M$ C compiler to compile perl on
windows. But I thought you had to use activestate if you wanted ppm. What
is your repository?
Thanks
Jay
----- Original Message -----
From: "DH" <cra...@ya...>
To: "Jay Strauss" <me...@he...>
Cc: "wxPerl Users" <wxp...@li...>
Sent: Wednesday, May 15, 2002 11:03 AM
Subject: Re: [wxperl-users] Activestate and WxPerl
> I don't think so.
> ActivePerl's PPM has on occasion had the brilliance to not know WTF it is
> comparing when checking operating systems etc...
>
> I've had this happen, so just extract the ppm package
> and then run (while cd'ing to the directory with the blib directory in it)
>
> #!/usr/bin/perl -w
> use Cwd;
> use strict;
> use Config;
> use ExtUtils::Install;
>
> use ActivePerl::DocTools;
> my %current_package;
>
############################################################################
##############
> $current_package{'NAME'} = 'Wx';
>
############################################################################
##############
> my $inst_archlib = $Config{installsitearch};
> my $inst_root = $Config{prefix};
> my $packlist = MM->catfile("$Config{installsitearch}/auto",
> split(/-/, $current_package{'NAME'}), ".packlist");
>
> # copied from ExtUtils::Install
> my $INST_LIB = MM->catdir(MM->curdir,"blib","lib");
> my $INST_ARCHLIB = MM->catdir(MM->curdir,"blib","arch");
> my $INST_BIN = MM->catdir(MM->curdir,'blib','bin');
> my $INST_SCRIPT = MM->catdir(MM->curdir,'blib','script');
> my $INST_MAN1DIR = MM->catdir(MM->curdir,'blib','man1');
> my $INST_MAN3DIR = MM->catdir(MM->curdir,'blib','man3');
> my $INST_HTMLDIR = MM->catdir(MM->curdir,'blib','html');
> my $INST_HTMLHELPDIR = MM->catdir(MM->curdir,'blib','htmlhelp');
>
> my $inst_script = $Config{installscript};
> my $inst_man1dir = $Config{installman1dir};
> my $inst_man3dir = $Config{installman3dir};
> my $inst_bin = $Config{installbin};
> my $inst_htmldir = $Config{installhtmldir};
> my $inst_htmlhelpdir = $Config{installhtmlhelpdir};
> my $inst_lib = $Config{installsitelib};
>
> while (1) {
> my $cwd = getcwd();
> $cwd .= "/" if $cwd =~ /[a-z]:$/i;
> eval {
> ExtUtils::Install::install({
> "read" => $packlist, "write" => $packlist,
> $INST_LIB => $inst_lib, $INST_ARCHLIB => $inst_archlib,
> $INST_BIN => $inst_bin, $INST_SCRIPT => $inst_script,
> $INST_MAN1DIR => $inst_man1dir, $INST_MAN3DIR =>
$inst_man3dir,
> $INST_HTMLDIR => $inst_htmldir,
> $INST_HTMLHELPDIR => $inst_htmlhelpdir},0,0,0);
> };
> # install might have croaked in another directory
> chdir($cwd);
> # Can't remove some DLLs, but we can rename them and try again.
> if ($@ && $@ =~ /Cannot forceunlink (\S+)/) {
> my $oldname = $1;
> $oldname =~ s/:$//;
> my $newname = $oldname . "." . time();
> unless (rename($oldname, $newname)) {
> return 0;
> }
> }
> # Some other error
> elsif($@) {
> return 0;
> }
> else { last; }
> }
>
>
> If you want the latest binary version of perl, try
> my PPM package repository
>
> http://crazyinsomniac.perlmonk.org/perl/ppm
>
> It has perl 5.7.3. BTW - I also take requests
> ( but not for Wx, cause Mattia is kind enough to provide those already )
>
>
> --- Jay Strauss <me...@he...> wrote:
> > Hi,
> >
> > <I've read through the archives first, before posting>
> >
> > I just installed Activestate (v5.6.1, below is the output of perl -V).
Then
> > following the readme (I untarred/unzipped to d:\data\download\wxperl). I
> > tried to install and I'm getting:
> >
> > D:\Data\Download\WXPerl>ppm install --location=. Wx
> > Installing package 'Wx'...
> > Error installing package 'Wx': Read a PPD for 'Wx', but it is not
intended
> > for this build of Perl (MSWin32-x86-multi-thread)
> >
> > 2 questions:
> > 1) suggestion on fixing the above?
> > 2) Do I need to install WxWindows in addition to WxPerl (I think so)?
any
> > howtos or pointer you could give me?
> >
> > Thanks
> > Jay
> >
> >
> >
> >
> > C:\>perl -V
> > Summary of my perl5 (revision 5 version 6 subversion 1) configuration:
> > Platform:
> > osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
> > uname=''
> > config_args='undef'
> > hint=recommended, useposix=true, d_sigaction=undef
> > usethreads=undef use5005threads=undef useithreads=define
> > usemultiplicity=def
> > ine
> > useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
> > use64bitint=undef use64bitall=undef uselongdouble=undef
> > Compiler:
> > cc='cl', ccflags
> > ='-nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -
> >
DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_
> > READ
> > FIX',
> > optimize='-O1 -MD -DNDEBUG',
> > cppflags='-DWIN32'
> > ccversion='', gccversion='', gccosandvers=''
> > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
> > d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
> > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> > lseeksize
> > =4
> > alignbytes=8, usemymalloc=n, prototype=define
> > Linker and Libraries:
> > ld='link', ldflags
> > '-nologo -nodefaultlib -release -libpath:"C:\Perl\lib\C
> > ORE" -machine:x86'
> > libpth="C:\Perl\lib\CORE"
> > libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
> > comdlg32
> > .lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib
uuid.lib
> > wsoc
> > k32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib
msvcrt.lib
> > perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib
winspool.lib
> > comd
> > lg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib
> > uuid.lib
> > wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib
> > msvcrt.lib
> > libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib
> > Dynamic Linking:
> > dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
> > cccdlflags=' ',
> > ddlflags='-dll -nologo -nodefaultlib -release -libpath:"C:
> > \Perl\lib\CORE" -machine:x86'
> >
> >
> > Characteristics of this binary (from libperl):
> > Compile-time options: MULTIPLICITY USE_ITHREADS PERL_IMPLICIT_CONTEXT
> > PERL_IMP
> > LICIT_SYS
> > Locally applied patches:
> > ActivePerl Build 631
> > Built under MSWin32
> > Compiled at Jan 2 2002 17:16:22
> > @INC:
> > C:/Perl/lib
> > C:/Perl/site/lib
> > .
> >
> >
> > _______________________________________________________________
> >
> > Have big pipes? SourceForge.net is looking for download mirrors. We
supply
> > the hardware. You get the recognition. Email Us:
ban...@so...
> > _______________________________________________
> > wxperl-users mailing list
> > wxp...@li...
> > https://lists.sourceforge.net/lists/listinfo/wxperl-users
>
>
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
>
>
|