| 135 | | === Variation #1 - Taking the lazy way === |
| 136 | | |
| 137 | | 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): |
| 138 | | |
| 139 | | {{{ |
| 140 | | cpan Alien::wxWidgets |
| 141 | | wxPerl -MCPAN -eshell |
| 142 | | $ install Padre |
| 143 | | }}} |
| 144 | | and then replace the /usr/local/bin/padre script with the updated version at http://padre.perlide.org/trac/browser/trunk/Padre/script/padre |
| 145 | | |
| 146 | | After installing Alien::wxWidget there are new versions of wx-config and wxrc somewhere in your Perl Library Path, (mine went under site_perl/darwin-thread-multi-2level/Alien/wxWidgets/mac_2_8_10_uni/bin), which need to be first in your PATH, otherwise Wx might build against the wrong Library. As an alternative you can set an environment variable WX_CONFIG which has to point to the new wx-config executable. See the Wx docs for more info. |
| 147 | | |
| 148 | | === Variation #2 - Using a package manager for the Wx portion === |
| 149 | | |
| 150 | | Aside from building from source, you can also install newer versions of Wx on OS X using a package manager: |
| 151 | | |
| 152 | | [http://www.finkproject.org/ Fink] |
| 153 | | {{{ |
| 154 | | fink install wxmac28 |
| 155 | | }}} |
| 156 | | |
| 157 | | [http://www.macports.org/ Mac Ports] |
| 158 | | {{{ |
| 159 | | port install wxWidgets |
| 160 | | }}} |
| 161 | | |
| 162 | | ----- |
| 163 | | |
| 164 | | == installing _and_ upgrading wxWidgets and wxPerl == |
| 165 | | |
| 166 | | If you have trouble you can check which version of wxWidgets you have: |
| 167 | | |
| 168 | | {{{ |
| 169 | | $ perl -MWx -le'print "Wx Version: $Wx::VERSION " . Wx::wxVERSION_STRING()' |
| 170 | | }}} |
| 171 | | |
| 172 | | and on Mac: |
| 173 | | |
| 174 | | {{{ |
| 175 | | $ wxPerl -MWx -le'print "Wx Version: $Wx::VERSION " . Wx::wxVERSION_STRING()' |
| 176 | | }}} |
| 177 | | |
| 178 | | We use Wx 0.87 and wxWidgets 2.8.8 so you probably should have those (or newer) too. |
| | 147 | === Notes on building wxWdigets from source === |
| 204 | | [http://www.nntp.perl.org/group/perl.wxperl.users/2008/07/msg5992.html wxPerl on Linux distributions] |
| | 172 | |
| | 173 | == Variation 1 - Taking the lazy way == |
| | 174 | |
| | 175 | 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 | |
| | 177 | {{{ |
| | 178 | cpan Alien::wxWidgets |
| | 179 | wxPerl -MCPAN -eshell |
| | 180 | $ install Padre |
| | 181 | }}} |
| | 182 | and then replace the /usr/local/bin/padre script with the updated version at http://padre.perlide.org/trac/browser/trunk/Padre/script/padre |
| | 183 | |
| | 184 | After installing Alien::wxWidget there are new versions of wx-config and wxrc somewhere in your Perl Library Path, (mine went under site_perl/darwin-thread-multi-2level/Alien/wxWidgets/mac_2_8_10_uni/bin), which need to be first in your PATH, otherwise Wx might build against the wrong Library. As an alternative you can set an environment variable WX_CONFIG which has to point to the new wx-config executable. See the Wx docs for more info. |
| | 185 | |
| | 186 | == Variation 2 - Using a package manager for the Wx portion == |
| | 187 | |
| | 188 | Aside from building from source, you can also install newer versions of Wx on OS X using a package manager: |
| | 189 | |
| | 190 | [http://www.finkproject.org/ Fink] |
| | 191 | {{{ |
| | 192 | fink install wxmac28 |
| | 193 | }}} |
| | 194 | |
| | 195 | [http://www.macports.org/ Mac Ports] |
| | 196 | {{{ |
| | 197 | port install wxWidgets |
| | 198 | }}} |