Changes between Version 12 and Version 13 of DownloadMacOSX
- Timestamp:
- 05/03/12 17:55:30 (13 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DownloadMacOSX
v12 v13 15 15 **System Perl vs User Perl:** Padre requires a 32bit version of Perl and wxWidgets 2.8.12. These are not the default on OsX. Additionally, the default "system" perl on OsX may be altered or changed in the course of software updates from Apple. Consequently, building Padre requires creating a self-contained perl, wxWidgets, and Padre. 16 16 17 We are attempting to automate the process using the bin/padre-brew.pl [http://bit.ly/oiME1I available here].18 19 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.20 21 17 **Xcode:** On OsX most of the common development utilities that are referenced by perl (gcc, make, etc) are provided by installing Xcode. The instruction sets below assume that you have installed these or reasonable substitutes on your system, that they are properly in your path, etc. 22 18 23 19 **Wx Tests:** There will be a point where you are compiling Wx. The tests for Wx involve generating many window primitives. These tests will fail if they are run inside of a gnu-screen or ssh session. (The error message might be a bit strange: stating issues creating the clipboard because of permissions.) Additionally, during the test cycle many of the tests will grab focus on the UI. This will make your system unusable for a short period of time. Let the tests run. If you try to quit out of them, you will cause the tests to fail and it will halt the compile. 24 20 25 == Installation with Citrus Perl ==21 == Opt #1 - Installation with Citrus Perl == 26 22 27 23 Cirtus Perl is a portable distribution of perl that has pre-built Wx binaries and integration. A shortened form of installation instructions is below. Refer to the installation instructions on the download page below if you want full details. … … 58 54 }}} 59 55 60 == Installation with Mac Ports ==56 == Opt #2 - Installation with Mac Ports == 61 57 62 58 Mac Ports is a project to provide many GNU and Open Source utilities to OsX. It packages and installs them in `/opt/local`. … … 85 81 }}} 86 82 83 == Opt #3 - Compiling a Perl with Perl Brew == 84 85 We are attempting to automate the process using the bin/padre-brew.pl [http://bit.ly/oiME1I available here]. 86 87 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. 88 87 89 == Creating an App Icon for your command-line Padre == 88 90 … … 107 109 Clicking on this icon should now launch Padre. 108 110 109 ---- 110 111 = Old Instructions Which May Be Useful = 112 113 On OS X, you cannot use the system's 'perl' executable, you have to use the 'wxPerl' executable (see this [http://www.nntp.perl.org/group/perl.wxperl.users/2008/07/msg5978.html thread regarding wxPerl invocation]). 114 115 Installation using [wiki:DownloadNetBSD pkgsrc] should also work. 111 = Installing on top of the system Perl = 112 113 //As stated above, this is not recommended. You are manipulating portions of the system OS which may be changed in the future by Apple and/or you may cause unintended side-effects in your OS.// 114 115 Pre-Lion versions of OsX had varying levels of Perl, Wx and sometimes wxPerl installed. Sometimes with a minimum of effort, a functioning wxPerl and Padre could be made to work. 116 (OS X 10.4 has wxPerl 0.22, 10.5 has a more recent version (0.6x for some x)) 117 118 Generally, you do not use the system 'perl' executable, but build a 'wxPerl' executable (see this [http://www.nntp.perl.org/group/perl.wxperl.users/2008/07/msg5978.html thread regarding wxPerl invocation]). 119 120 Reading up on installation using [wiki:DownloadNetBSD pkgsrc] may also help. 116 121 117 122 == Installation from CPAN == … … 127 132 Padre has a LOT of prerequisites. You're likely to run into some problems with tests failing. IPC::Run3 was a particular problem due to its prerequisites, but a later individual install worked fine. Just make your way through them all, and 'force notest install $module' as needed. Once you've got padre installed you start it by running /usr/local/bin/padre. 128 133 129 === Taking the lazy way ===134 === Variation #1 - Taking the lazy way === 130 135 131 136 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 143 and then replace the /usr/local/bin/padre script with the updated version at http://padre.perlide.org/trac/browser/trunk/Padre/script/padre 139 144 140 If you are risk averse and like playing in your own sandbox, then it is recommended that you download and compile the current release of Perl from source ([http://cpan.org/src/README.html]). Note: you'll need to run ./Configure with -Dusethreads. After which you won't need to use wxPerl, but can do the standard make, make test, make install of Padre via cpan.141 142 145 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. 143 146 144 Another caveat: don't build inside of a gnu-screen or ssh session, otherwise Wx's tests will fail with a strange errormessage, stating that it can't create the clipboard because of permission problems. 145 146 147 ---- 148 149 OS X 10.4 has wxPerl 0.22, 10.5 has a more recent version (0.6x for some x) 147 === Variation #2 - Using a package manager for the Wx portion === 150 148 151 149 Aside from building from source, you can also install newer versions of Wx on OS X using a package manager: … … 160 158 port install wxWidgets 161 159 }}} 160 161 ----- 162 162 163 163 == installing _and_ upgrading wxWidgets and wxPerl ==
