Changes between Version 16 and Version 17 of DownloadMacOSX


Ignore:
Timestamp:
05/03/12 20:24:28 (2 years ago)
Author:
bennie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DownloadMacOSX

    v16 v17  
    2626- Download Citrus Perl from http://www.citrusperl.com/platform/macosx.html 
    2727- Unpack Citrus Perl into your favorite dev location: 
    28 {{{ 
     28{{{#!sh 
    2929  cd ~/dev 
    3030  tar xzvf ~/Downloads/citrusperl-standard-51402-20903-osx-i32-014.tar.gz 
     
    3232- This has created a "`CitrusPerl`" directory that has a fully isolated install of perl, including Wx. You can also use CPAN to add to this perl without polluting your system's install of perl with additional modules. (Also meaning that an apple update will not break your version of perl if you use this.) 
    3333- Configure Cirtus Perl to work in its new location 
    34 {{{ 
     34{{{#!sh 
    3535  ./CitrusPerl/bin/relocateperl 
    3636  ./CitrusPerl/bin/citrusvars.sh 
    3737}}} 
    3838- At this point you can put Citrus Perl in your path. Set it ahead of other entries by putting the line below as the last line in your `.bash_profile`. That will make any command line invocation of `perl` or `cpan` use Citrus Perl and not your system perl. Substitute `/Users/joe/dev` below with your chosen installation directory. 
    39 {{{ 
     39{{{#!sh 
    4040  export PATH=/Users/joe/dev/CitrusPerl/bin:$PATH 
    4141}}} 
    4242- Reload your `.bash_profile` to use the new path 
    43 {{{ 
     43{{{#!sh 
    4444  source ~/.bash_profile 
    4545}}} 
    4646- To install Padre, use `cpan` and run the command `install Padre`. This will build all required dependencies along the way, so it will take some time. 
    47 {{{ 
     47{{{#!sh 
    4848  cpan 
    4949  > install Padre 
     
    5151}}} 
    5252- Padre should now be in your path and usable on the command line 
    53 {{{ 
     53{{{#!sh 
    5454  padre 
    5555}}} 
     
    6060 
    6161- Mac Ports can be downloaded and installed as a package from http://www.macports.org/install.php and configured: 
    62 {{{ 
     62{{{#!sh 
    6363 sudo port -f selfupdate 
    6464}}} 
    6565- Remember to follow the instructions to put Mac Ports first in your path so the Ports version of perl will execute when called on the command line: 
    66 {{{ 
     66{{{#!sh 
    6767  export PATH=/opt/local/bin:/opt/local/sbin:$PATH 
    6868}}} 
    6969- Install Perl and Wx (This will include many dependencies and take some time to compile and complete.) 
    70 {{{ 
     70{{{#!sh 
    7171 sudo port install perl5 +threads 
    7272 sudo port install wxWidgets 
    7373}}} 
    7474- Install Padre via CPAN 
    75 {{{ 
     75{{{#!sh 
    7676  sudo /opt/local/bin/cpan 
    7777  > install Padre 
    7878}}} 
    7979- Padre should now be in your path and usable on the command line 
    80 {{{ 
     80{{{#!sh 
    8181  padre 
    8282}}} 
     
    8787 
    8888If you want to build on your own you should note the environment settings and build parameters used on [http://wildperl.com/2011/07/padre-on-osx-dmg-now-on-leopard-snow-leopard-and-lion/ OSX Lion], or refer to the bin/padre-brew.pl source for other OSX levels. 
    89  
    90 == Creating an App Icon for your command-line Padre == 
    91  
    92 It is possible to create an Application icon to launch your command-line version of Padre. You can create an Applescript application to do this. 
    93  
    94 Launch the Applescript Editor from the Utilities folder in the Applications folder. 
    95  
    96 You will enter a line to launch padre which which uses the full path of your preferred perl and padre.  
    97  
    98 For Mac ports: 
    99 {{{ 
    100   do shell script "/opt/local/bin/perl /opt/local/bin/padre" 
    101 }}} 
    102  
    103 For Citrus Perl: (change `/Users/joe/dev/` to your path for Citrus Perl) 
    104 {{{ 
    105   do shell script "/Users/joe/dev/CitrusPerl/i32/5-12/bin/perl /Users/joe/dev/CitrusPerl/i32/5-12/site/bin/padre " 
    106 }}} 
    107  
    108 Select "Save As" under the file menu. Select the format of "Application." Name it what you'd like and install it where you'd like it to be. (IE: the Applications folder) 
    109  
    110 Clicking on this icon should now launch Padre. 
    11189 
    11290= Installing on top of the system Perl = 
     
    156134 
    157135Something like this: 
    158 {{{ 
     136{{{#!sh 
    159137 $ cd /tmp 
    160138 $ wget http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.8.tar.gz 
     
    175153If you're lazy and enjoy taking risks... the easiest way to install on OSX may be (there will be some test failures - which you'll have to force install, including Padre itself, due to wxPerl issues):  
    176154 
    177 {{{ 
     155{{{#!sh 
    178156cpan Alien::wxWidgets 
    179157wxPerl -MCPAN -eshell 
     
    189167 
    190168[http://www.finkproject.org/ Fink] 
    191 {{{ 
     169{{{#!sh 
    192170fink install wxmac28 
    193171}}} 
    194172 
    195173[http://www.macports.org/ Mac Ports] 
    196 {{{ 
     174{{{#!sh 
    197175port install wxWidgets 
    198176}}} 
     177 
     178= Creating an App Icon for your command-line Padre = 
     179 
     180It is possible to create an Application icon to launch your command-line version of Padre. You can create an Applescript application to do this. 
     181 
     182Launch the Applescript Editor from the Utilities folder in the Applications folder. 
     183 
     184You will enter a line to launch padre which which uses the full path of your preferred perl and padre.  
     185 
     186For Mac ports: 
     187{{{#!sh 
     188  do shell script "/opt/local/bin/perl /opt/local/bin/padre" 
     189}}} 
     190 
     191For Citrus Perl: (change `/Users/joe/dev/` to your path for Citrus Perl) 
     192{{{#!sh 
     193  do shell script "/Users/joe/dev/CitrusPerl/i32/5-12/bin/perl /Users/joe/dev/CitrusPerl/i32/5-12/site/bin/padre" 
     194}}} 
     195 
     196Select "Save As" under the file menu. Select the format of "Application." Name it what you'd like and install it where you'd like it to be. (IE: the Applications folder) 
     197 
     198Clicking on this icon should now launch Padre.