Changes between Version 14 and Version 15 of DownloadMacOSX


Ignore:
Timestamp:
May 3, 2012, 8:05:07 PM (3 years ago)
Author:
bennie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DownloadMacOSX

    v14 v15  
    2020**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. 
    2121 
    22 == Opt #1 - Installation with Citrus Perl == 
     22== Option 1 - Installation with Citrus Perl == 
    2323 
    2424Cirtus 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. 
     
    5555}}} 
    5656 
    57 == Opt #2 - Installation with Mac Ports == 
     57== Option 2 - Installation with Mac Ports == 
    5858 
    5959Mac Ports is a project to provide many GNU and Open Source utilities to OsX. It packages and installs them in `/opt/local`. 
     
    8282}}} 
    8383 
    84 == Opt #3 - Compiling a Perl with Perl Brew == 
     84== Option 3 - Compiling a Perl with Perl Brew == 
    8585 
    8686We are attempting to automate the process using the bin/padre-brew.pl [http://bit.ly/oiME1I available here]. 
     
    121121Reading up on installation using [wiki:DownloadNetBSD pkgsrc] may also help. 
    122122 
     123=== Checking what versions you currently have === 
     124 
     125If you have trouble you can check which version of wxWidgets you have: 
     126{{{ 
     127$ perl -MWx -le'print  "Wx Version: $Wx::VERSION " . Wx::wxVERSION_STRING()' 
     128}}} 
     129and on Mac:  
     130{{{ 
     131$ wxPerl -MWx -le'print  "Wx Version: $Wx::VERSION " . Wx::wxVERSION_STRING()' 
     132}}} 
     133We use Wx 0.87 and wxWidgets 2.8.8 so you probably should have those (or newer) too. 
     134 
    123135== Installation from CPAN == 
    124136 
     
    133145Padre 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. 
    134146 
    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 === 
    179148 
    180149When installing Alien::wxWidgets it will ask if you want to compile wxWidgets.  
     
    187156 
    188157Something like this: 
    189  
    190158{{{ 
    191159 $ cd /tmp 
     
    202170 $ 
    203171}}} 
    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 
     175If 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{{{ 
     178cpan Alien::wxWidgets 
     179wxPerl -MCPAN -eshell 
     180 $ install Padre 
     181}}} 
     182and then replace the /usr/local/bin/padre script with the updated version at http://padre.perlide.org/trac/browser/trunk/Padre/script/padre 
     183 
     184After 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 
     188Aside 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{{{ 
     192fink install wxmac28 
     193}}} 
     194 
     195[http://www.macports.org/ Mac Ports] 
     196{{{ 
     197port install wxWidgets 
     198}}}