Changes between Version 16 and Version 17 of DownloadMacOSX
- Timestamp:
- 05/03/12 20:24:28 (13 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DownloadMacOSX
v16 v17 26 26 - Download Citrus Perl from http://www.citrusperl.com/platform/macosx.html 27 27 - Unpack Citrus Perl into your favorite dev location: 28 {{{ 28 {{{#!sh 29 29 cd ~/dev 30 30 tar xzvf ~/Downloads/citrusperl-standard-51402-20903-osx-i32-014.tar.gz … … 32 32 - 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.) 33 33 - Configure Cirtus Perl to work in its new location 34 {{{ 34 {{{#!sh 35 35 ./CitrusPerl/bin/relocateperl 36 36 ./CitrusPerl/bin/citrusvars.sh 37 37 }}} 38 38 - 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 40 40 export PATH=/Users/joe/dev/CitrusPerl/bin:$PATH 41 41 }}} 42 42 - Reload your `.bash_profile` to use the new path 43 {{{ 43 {{{#!sh 44 44 source ~/.bash_profile 45 45 }}} 46 46 - 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 48 48 cpan 49 49 > install Padre … … 51 51 }}} 52 52 - Padre should now be in your path and usable on the command line 53 {{{ 53 {{{#!sh 54 54 padre 55 55 }}} … … 60 60 61 61 - Mac Ports can be downloaded and installed as a package from http://www.macports.org/install.php and configured: 62 {{{ 62 {{{#!sh 63 63 sudo port -f selfupdate 64 64 }}} 65 65 - 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 67 67 export PATH=/opt/local/bin:/opt/local/sbin:$PATH 68 68 }}} 69 69 - Install Perl and Wx (This will include many dependencies and take some time to compile and complete.) 70 {{{ 70 {{{#!sh 71 71 sudo port install perl5 +threads 72 72 sudo port install wxWidgets 73 73 }}} 74 74 - Install Padre via CPAN 75 {{{ 75 {{{#!sh 76 76 sudo /opt/local/bin/cpan 77 77 > install Padre 78 78 }}} 79 79 - Padre should now be in your path and usable on the command line 80 {{{ 80 {{{#!sh 81 81 padre 82 82 }}} … … 87 87 88 88 If 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.111 89 112 90 = Installing on top of the system Perl = … … 156 134 157 135 Something like this: 158 {{{ 136 {{{#!sh 159 137 $ cd /tmp 160 138 $ wget http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.8.tar.gz … … 175 153 If 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): 176 154 177 {{{ 155 {{{#!sh 178 156 cpan Alien::wxWidgets 179 157 wxPerl -MCPAN -eshell … … 189 167 190 168 [http://www.finkproject.org/ Fink] 191 {{{ 169 {{{#!sh 192 170 fink install wxmac28 193 171 }}} 194 172 195 173 [http://www.macports.org/ Mac Ports] 196 {{{ 174 {{{#!sh 197 175 port install wxWidgets 198 176 }}} 177 178 = Creating an App Icon for your command-line Padre = 179 180 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. 181 182 Launch the Applescript Editor from the Utilities folder in the Applications folder. 183 184 You will enter a line to launch padre which which uses the full path of your preferred perl and padre. 185 186 For Mac ports: 187 {{{#!sh 188 do shell script "/opt/local/bin/perl /opt/local/bin/padre" 189 }}} 190 191 For 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 196 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) 197 198 Clicking on this icon should now launch Padre.
