Changes between Version 5 and Version 6 of DownloadWindows


Ignore:
Timestamp:
Apr 1, 2010, 3:03:13 PM (5 years ago)
Author:
zenogantner
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DownloadWindows

    v5 v6  
    66 
    77== Installation from CPAN == 
     8Depending on which version of Perl you use, there different instructions: 
     9 * [wiki:DownloadStrawberryPerl] 
     10 * [wiki:ActivePerl] 
    811 
    9 TODO: split up into StrawberryPerl and ActivePerl parts. 
    10  
    11 On Windows IPC::Run (0.82) hangs sometimes - install it using 
     12On Windows, the installation of IPC::Run (0.82) hangs sometimes - install it using 
    1213{{{ 
    1314  cpan> force install notest IPC::Run 
    1415}}} 
    1516 
    16 === Strawberry Perl === 
    17 Download Strawberry Perl from here: [http://www.strawberryperl.com/] 
    18  
    19 On Strawberry Perl 5.10, starting from version 5.10.0.3 you  
    20 can install Padre by starting the CPAN shell and typing 
    21 {{{ 
    22   cpan> install Padre 
    23 }}} 
    24  
    25 However, before you do that, you may wish to install Alien::wxWidgets and Wx as .par files - they build on Windows, but on slower systems, they're... slow. 
    26  
    27 {{{ 
    28   C:\>perl -MPAR::Dist -e"install_par(q(http://www.strawberryperl.com/download/padre/Alien-wxWidgets-0.46-MSWin32-x86-multi-thread-5.10.1.par))" 
    29   C:\>perl -MPAR::Dist -e"install_par(q(http://www.strawberryperl.com/download/padre/Wx-0.94-MSWin32-x86-multi-thread-5.10.1.par))" 
    30 }}} 
    31  
    32 '''Note''': installing Padre in a fresh install of Strawberry Perl can lead to weird behaviour, like preferences not being saved on exit (due to Padre crashing on exit). See the comments for #258 for a workaround. 
    33  
    34 On previous releases of Strawberry Perl 5.10 you can install it  
    35 following these steps 
    36 {{{ 
    37   cpan> look Alien::wxWidgets 
    38   $ perl Makefile.PL 
    39   $ dmake 
    40   $ dmake test 
    41   $ dmake install 
    42   $ exit 
    43   cpan> look Wx 
    44   $ perl Makefile.PL 
    45   $ dmake 
    46   $ dmake test 
    47   $ dmake install 
    48   $ exit 
    49   cpan> install Padre 
    50 }}} 
    51  
    52 Once it is installed you can start Padre either by 
    53 {{{ 
    54 Start/Run and type in padre 
    55 }}} 
    56  
    57  
    58 or by creating a shortcut and then clicking on it. 
    59  
    60 When creating the shortcut use the following as command: 
    61 {{{ 
    62 C:\strawberry\perl\bin\wperl.exe C:\strawberry\perl\bin\padre.bat 
    63 }}} 
    64 note we are using wperl here instead of perl in order to avoid the extra  
    65 command shell window. 
    66  
    67 '''Note''': For updating Padre on Strawberry Perl you can use the CPAN shell client of Strawberry:  
    68 {{{ 
    69 C:\strawberry\perl\bin\perl -MCPAN -e shell 
    70 }}} 
    71  
    72 {{{ 
    73 upgrade Padre 
    74 }}} 
    75  
    76 To find whether there's an update - you can do:  
    77 {{{ 
    78 i /Padre/ 
    79 }}} 
    80 (or simply follow the mailing list ;-) 
    81  
    82  
    83 === Active Perl === 
    84  
    85 [http://www.activestate.com/] 
    86  
    87 Once you have installed Active Perl you need to configure two additional PPM 
    88 repositories and then you can install Padre using the ppm pacakging system. 
    89 Let's see how to do it in the Command Shell: 
    90  
    91 {{{ 
    92 Start/Run/cmd ENTER 
    93 ppm rep add wxperl http://www.wxperl.co.uk/repository   
    94 ppm rep add padre  http://www.perlide.org/download/ppm/ 
    95  
    96 ppm install Alien-wxWidgets 
    97 ppm install Wx 
    98 ppm install Padre 
    99 }}} 
    100  
    101 You might have to install Alien-wxWidgets-gcc. If this conflicts with Alien-wxWidgets - you can try use --force:  
    102 {{{ 
    103 ppm install  Alien-wxWidgets-gcc  --force 
    104 }}} 
    105  
    106 Once that's done you can start Padre by typing 
    107 {{{ 
    108 perl c:\perl\site\bin\padre 
    109 }}} 
    110 or 
    111 {{{ 
    112 wperl c:\perl\site\bin\padre 
    113 }}} 
    114  
    115 Replace "c:\perl" with the path, where Active Perl is installed. 
    116  
    117 ==== Older Active Perl details ==== 
    118  
    119 The manual installation is still a bit rough but we are working on improving it. 
    120  
    121  1) (A) Most of the modules - can be taken from the main  ActiveState Package Repository.  
    122  
    123  (B) For Active Perl there are prebuilt PPM versions of Alien::wxWidgets and Wx (aka. wxPerl) 
    124  and can be installed from [http://wxperl.co.uk/].  
    125  
    126  So add the wxperl repository to the PPM: http://www.wxperl.co.uk/repository 
    127  (for detailed instructions see http://wxperl.co.uk/ppm.html ) 
    128  (and even more info here http://docs.activestate.com/activeperl/5.10/faq/ActivePerl-faq2.html ) 
    129  
    130  Adding the repository to your PPM repository list:   
    131  In PPM4 (ActivePerl 820+) this is most easily done via the GUI menu option:  Edit -> Preferences.  
    132     
    133  If you use PPM3 - or used to command line (==DOS , still usable for PPM4) - you can do:  
    134    {{{ 
    135 ppm rep add wxperl http://www.wxperl.co.uk/repository  
    136    }}} 
    137  
    138  
    139  
    140  
    141  2) Install all the packages (except of course perl) listed as "requires" on 
    142     http://svn.perlide.org/padre/trunk/Padre/Makefile.PL  - by using ppm.  
    143   Don't worry about the order of installation and report us any problem you encounter. 
    144  
    145   You can do in by searching the "requires" packages listed in the above link -  
    146   either by using the PPM4 GUI, or searching PPM command line (==DOS): 
    147   {{{ 
    148 ppm search App::Ack 
    149   }}} 
    150  The result may look like this: 
    151    {{{ 
    152 C:\Documents and Settings\orenm>ppm search App::Ack 
    153 Downloading ActiveState Package Repository packlist...not modified 
    154 1: ack 
    155    A grep-like program specifically for large source trees 
    156    Version: 1.86 
    157    Released: 2008-07-09 
    158    Author: Andy Lester <andy@petdance.com> 
    159    Provide: App::Ack version 1.86 
    160    Require: File::Basename 
    161    Require: File::Next version 0.4 or better 
    162    Require: Getopt::Long 
    163    Require: Term::ANSIColor 
    164    Require: Test::Harness version 2.5 or better 
    165    Require: Test::More 
    166    Repo: ActiveState Package Repository 
    167    CPAN: http://search.cpan.org/dist/ack-1.86/ 
    168  
    169 C:\Documents and Settings\orenm> 
    170     }}} 
    171   So now you shall do:  
    172     {{{ 
    173 ppm install ack 
    174     }}} 
    175  
    176  
    177  3) then open the cpan client and install Padre: 
    178 {{{ 
    179   c:> perl -MCPAN -eshell 
    180   cpan> install Padre 
    181 }}} 
    182  
    183 Oren Maurer reported that you might need to force it: 
    184 {{{ 
    185   cpan> force install Padre 
    186 }}} 
    187  
    188  
    189 at some point you might encounter an error like this: 
    190  
    191 {{{ 
    192  Running install for module 'Padre' 
    193  Running make for S/SZ/SZABGAB/Padre-0.06.tar.gz 
    194  CPAN: Digest::SHA loaded ok (v5.45) 
    195  Fetching with LWP: 
    196   http://ppm.activestate.com/CPAN/authors/id/S/SZ/SZABGAB/CHECKSUMS 
    197  Alert: While trying to 'parse' YAML file 
    198   'D:\ActiveState\Perl\cpan\FTPstats.yml' 
    199  with 'YAML::XS' the following error was encountered: 
    200   Usage: YAML::XS::LibYAML::Load(yaml_str) at 
    201  D:\ActiveState\Perl\lib/YAML/XS.pm 
    202   line 70. 
    203 }}} 
    204  
    205  
    206 The reported solution was this: 
    207 {{{ 
    208   [reach the cpan shell:] 
    209   C:\>cpan 
    210   cpan> o conf yaml_module '' 
    211   cpan> o conf commit 
    212   commit: wrote 'C:\Perl\lib/CPAN/Config.pm' 
    213   cpan> q 
    214 }}} 
    215 (See: [http://groups.google.com/group/de.comp.lang.perl.misc/browse_thread/thread/3a347d02a1ebf464] and 
    216 [http://perl.org.il/pipermail/perl/2008-September/009779.html] ) 
    217  
    218 Other things that to do and can help: 
    219  
    220    1. upgrading last version of Encode - using ppm ,  
    221  
    222    Note:  
    223       For upgrading all PPM packages, do this (Windows command line, a.k.a Dos) 
    224 {{{ 
    225     ppm upgrade --install  
    226 }}} 
    227    2. upgrade of Wx - also by using ppm , 
    228    3. installing Alien-wxWidgets (the same way... ppm), 
    229    4. And now - do (again with ppm): 
    230 {{{ 
    231     ppm install  --force Alien-wxWidgets-dev 
    232 }}} 
    233 (See: [http://meorero.wordpress.com/2009/02/02/padre-on-ms-windows-with-activeperl-5100-build-1004/]) 
    234  
    235 For more info about "ppm - Perl Package Manager, version 4" - see the ActivePerl 5.10 Documentation:  
    236 http://docs.activestate.com/activeperl/5.10/bin/ppm.html 
    23717 
    23818== Still Not Working? ==