| 39 | | - At this point you can alias commands in your `.bash_profile` to use this perl as your regular perl. |
| 40 | | {{{ |
| 41 | | alias perl=/Users/joe/dev/CitrusPerl/bin/perl |
| 42 | | alias perldoc=/Users/joe/dev/CitrusPerl/bin/perldoc |
| 43 | | alias cpan=/Users/joe/dev/CitrusPerl/bin/cpan |
| 44 | | }}} |
| 45 | | - To install Padre, invoke cpan and run the command "install Padre." It will build dependencies along the way, so it will take some time. |
| | 41 | - 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. |
| | 42 | {{{ |
| | 43 | export PATH=/Users/joe/dev/CitrusPerl/bin:$PATH |
| | 44 | }}} |
| | 45 | - Reload your `.bash_profile` to use the new path |
| | 46 | {{{ |
| | 47 | source ~/.bash_profile |
| | 48 | }}} |
| | 49 | - 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. |
| 74 | | - You can now run or alias Padre |
| 75 | | {{{ |
| 76 | | /opt/local/bin/padre |
| 77 | | }}} |
| | 82 | - Padre should now be in your path and usable on the command line |
| | 83 | {{{ |
| | 84 | padre |
| | 85 | }}} |
| | 86 | |
| | 87 | == Creating an App Icon for your command-line Padre == |
| | 88 | |
| | 89 | 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. |
| | 90 | |
| | 91 | Launch the Applescript Editor from the Utilities folder in the Applications folder. |
| | 92 | |
| | 93 | You will enter a line to launch padre which which uses the full path of your preferred perl and padre. |
| | 94 | |
| | 95 | For Mac ports: |
| | 96 | {{{ |
| | 97 | do shell script "/opt/local/bin/perl /opt/local/bin/padre" |
| | 98 | }}} |
| | 99 | |
| | 100 | For Citrus Perl: (change `/Users/joe/dev/` to your path for Citrus Perl) |
| | 101 | {{{ |
| | 102 | do shell script "/Users/joe/dev/CitrusPerl/i32/5-12/bin/perl /Users/joe/dev/CitrusPerl/i32/5-12/site/bin/padre " |
| | 103 | }}} |
| | 104 | |
| | 105 | 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) |
| | 106 | |
| | 107 | Clicking on this icon should now launch Padre. |