Changes between Version 12 and Version 13 of DownloadMacOSX


Ignore:
Timestamp:
May 3, 2012, 5:55:30 PM (3 years ago)
Author:
bennie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DownloadMacOSX

    v12 v13  
    1515**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. 
    1616 
    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  
    2117**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.  
    2218 
    2319**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. 
    2420 
    25 == Installation with Citrus Perl == 
     21== Opt #1 - Installation with Citrus Perl == 
    2622 
    2723Cirtus 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. 
     
    5854}}} 
    5955 
    60 == Installation with Mac Ports == 
     56== Opt #2 - Installation with Mac Ports == 
    6157 
    6258Mac Ports is a project to provide many GNU and Open Source utilities to OsX. It packages and installs them in `/opt/local`. 
     
    8581}}} 
    8682 
     83== Opt #3 - Compiling a Perl with Perl Brew == 
     84 
     85We are attempting to automate the process using the bin/padre-brew.pl [http://bit.ly/oiME1I available here]. 
     86 
     87If 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 
    8789== Creating an App Icon for your command-line Padre == 
    8890 
     
    107109Clicking on this icon should now launch Padre. 
    108110 
    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 
     115Pre-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 
     118Generally, 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 
     120Reading up on installation using [wiki:DownloadNetBSD pkgsrc] may also help. 
    116121 
    117122== Installation from CPAN == 
     
    127132Padre 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. 
    128133 
    129 === Taking the lazy way === 
     134=== Variation #1 - Taking the lazy way === 
    130135 
    131136If 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):  
     
    138143and then replace the /usr/local/bin/padre script with the updated version at http://padre.perlide.org/trac/browser/trunk/Padre/script/padre 
    139144 
    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  
    142145After 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. 
    143146 
    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 === 
    150148 
    151149Aside from building from source, you can also install newer versions of Wx on OS X using a package manager: 
     
    160158port install wxWidgets 
    161159}}} 
     160 
     161----- 
    162162 
    163163== installing _and_ upgrading wxWidgets and wxPerl ==