Create a MacOS X App Bundle Using MacPorts: Difference between revisions

Line 32: Line 32:
  <nowiki>sudo port install octave-local @3.6.4+atlas+fltk+gcc47</nowiki>
  <nowiki>sudo port install octave-local @3.6.4+atlas+fltk+gcc47</nowiki>


The use of the <code>+atlas</code> variant is encouraged as bugs exist for Apple's accelerate framework in both MacOS 10.6 and 10.7.  Octave's developers have included a fix for MacOS 10.6, but the fix does not work for MacOS 10.7.  There is some commentary on this in various developers discussion forums.  For example, see [https://github.com/mxcl/homebrew/issues/6649 this Homebrew thread (Octave 3.4 fails on lion)], [https://stat.ethz.ch/pipermail/r-sig-mac/2011-September/008564.html this R-Sig-Mac thread (R 2.13.1-patched, vecLib problem on Lion)], and [http://list.coin-or.org/pipermail/ipopt/2011-October/002610.html the COIN-OR thread (Ipopt - problems on OS X 10.7 Lion)].  Use of Apple's {{Codeline|accelerate}} framework should also be avoided for <code>arpack<\code> and <code>qrupdate<\code>.  To install the recommended variants, use the <code>port</code> commands below.
The use of the <code>+atlas</code> variant is encouraged as bugs exist for Apple's accelerate framework in both MacOS 10.6 and 10.7.  Octave's developers have included a fix for MacOS 10.6, but the fix does not work for MacOS 10.7.  There is some commentary on this in various developers discussion forums.  For example, see [https://github.com/mxcl/homebrew/issues/6649 this Homebrew thread (Octave 3.4 fails on lion)], [https://stat.ethz.ch/pipermail/r-sig-mac/2011-September/008564.html this R-Sig-Mac thread (R 2.13.1-patched, vecLib problem on Lion)], and [http://list.coin-or.org/pipermail/ipopt/2011-October/002610.html the COIN-OR thread (Ipopt - problems on OS X 10.7 Lion)].  Use of Apple's accelerate framework should also be avoided for <code>arpack<\code> and <code>qrupdate<\code>.  To install the recommended variants, use the <code>port</code> commands below.


  <nowiki>port install arpack +atlas+gcc47
  <nowiki>port install arpack +atlas+gcc47
port install qrupdate +atlas+gcc47</nowiki>
port install qrupdate +atlas+gcc47</nowiki>


As a precaution against unexpected problems and a bloated App bundle, using consistent variants for Octave and its dependents is suggested.  For example, when using {{Codeline|+atlas}} make sure none of the dependents are using {{Codeline|+accelarate}}. Also, make sure no dependents are using the {{Codeline|+universal}} variant.  Using the {{Codeline|+gcc47}} variant is also recommended as all of Octave's dependents have a {{Codeline|+gcc47}} variant.  At the very least, following these suggestions will reduce the size of the bundle.  The name of Octave's dependent ports may be determined by the command below.
As a precaution against unexpected problems and a bloated App bundle, using consistent variants for Octave and its dependents is suggested.  For example, when using <code>+atlas</code> make sure none of the dependents are using <code>+accelarate</code>. Also, make sure no dependents are using the <code>+universal</code> variant.  Using the <code>+gcc47</codeL variant is also recommended as all of Octave's dependents have a <code>+gcc47<code> variant.  At the very least, following these suggestions will reduce the size of the bundle.  The name of Octave's dependent ports may be determined by the command below.


  <nowiki>port rdeps octave-local</nowiki>
  <nowiki>port rdeps octave-local</nowiki>
Line 45: Line 45:
  <nowiki>port installed <portname></nowiki>
  <nowiki>port installed <portname></nowiki>


Once an Octave port is installed the command below may be used to determine / verify the version and variants of {{Codeline|<nowiki>octave-local</nowiki>}} which are installed.
Once an Octave port is installed the command below may be used to determine / verify the version and variants of <code>octave-local</code> which are installed.


  <nowiki>port installed octave-local</nowiki>
  <nowiki>port installed octave-local</nowiki>
364

edits