Oct 29, 2014 In order for the user to be able to work while waiting for a solution, I had to create a local user matching the AD one, made sure the computer is not bind to the AD anymore, then made sure the permission on the user folder (previously created by the AD. Mar 14, 2013 Just download transmission app, re-download the torrent file, check the 'verify local data' box when adding a torrent and you are set. We sometimes forget that in the time of high technology when the competition in software industry is fierce as it is, some companies seem complacent about retaining their consumer base and start releasing raw.
- 2Install MacPorts
- 3Create the MacOS X App Bundle
- 5Problems, Restrictions, and Annoyances of the App Bundle
Since the initial success with producing a bundle, two things have changed on the Macports end.
- gcc-4.7 must be used, as some dependencies are no longer supported by gcc-4.5. To look for ports using a
port rdeps gcc45at the terminal's command line.
sudo port mdmg octave-devel @3.6.4+atlas+docs+fltk+gcc47command fails when bundling the
xorg-libx11port. Review the output of the command
port rdeps octave-devel @3.6.4+atlas+fltk+gcc47-x11+no_x11-metisto identify the ports whose variants must be modified to avoid
xorg-libx11. There is one dependency (
Transfig) for which
x11is not optional. To resolve this, the
octave-develPortfile must be modified and the
Transfigrun-time dependency removed. This means that Xfig output is not available using Octave's
- While editing the Portfile for
octave-devel, the references to
metisshould also be removed to avoid a GPL violation.
- Once the dependencies are resolved, the DMG may be created by
sudo port mdmg octave-devel @3.6.4+atlas+fltk+gcc47-x11+no_x11-metis.
I see that the cloud installer was able to create the /Library/Application Support/Adobe folder and a bunch of folders in side that, but it complains. About not being able to create the CoreSync folder. I ran into this, then uninstalled everything, and nuked the /Library/Application Support/Adobe folder completely and started over. MisconfiguredApplication - The app required resource access list does not contain apps discoverable by the resource or The client app has requested access to resource, which was not specified in its required resource access list or Graph service returned bad request or resource not found. Quickly find solutions to common download, install, or update errors.
MacPorts, formerly called DarwinPorts, is a package management system that simplifies the installation of software on the MacOS X and Darwin operating systems. It is a free/open source software project to simplify installation of other free/open source software. Similar in aim and function to Fink and the BSDs' ports collections.
An itemized overview of a MacPorts install is below.
- Install XCode: This is done via the MacOS X App Store.
- Follow MacPorts' installation instructions.
- MacPorts has good support for Octave. A list of what MacPorts has available for Octave is here. To install the most recent version of Octave, type
sudo port install octave-develat the Terminal's command line. Octave has many dependencies which will be downloaded and installed prior to Octave. The entire installation process can take a few hours.
MacPorts has historically been rather good a maintaining their Octave portfiles. However, there are times when the maintainers fall behind. If the current version of the octave-devel port isn't current, it will be necessary to produce a local portfile. For the remainder of this page, it is assume a local portfile is being used and that the port name is
Install an Octave Port
MacPorts' Octave port includes the non-GPL METIS. To avoid license violations do not bundle Metis with Octave and then distribute to others. In order to eliminate the Metis dependency, a local portfile may be used, and edited to remove metis. A second motivation to use a local portfile is that the portfiles for the 3.4.x and 3.6.x series did not include all dependencies for the
port mdmg ... command. For macports 2.1.3, having the
xorg-libx11 as a dependency for Octave has been found to cause the
port mdmg octave-local ... command to fail. The
xorg-libx11 dependency may be avoided by specifying
-x11+no_x11-docs as variants and by dropping the dependence to
transfig (which has
xpm as a dependency and
xpm depends upon several
A prototype portfile has been prepared, which does not depend upon METIS and does depend upon
pstoedit (there is no
transfig dependency since it generates an
xorg-libx11 dependency). After creating a local portfile repository an Octave portfile may be added to the local repository using the commands below.
This assumes the Octave portfile had been placed on the user's Desktop, and that the local portfile repository is located in the users home folder and named
ports. After adding the portfile, the local repository must be indexed for MacPorts to recognize it.
Once indexed the local Octave port may be installed.
Unable To Create Directory Error
The use of the
+atlas 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 this Homebrew thread (Octave 3.4 fails on lion), this R-Sig-Mac thread (R 2.13.1-patched, vecLib problem on Lion), and the COIN-OR thread (Ipopt - problems on OS X 10.7 Lion). Use of Apple's accelerate framework should also be avoided for
qrupdate. To install the recommended variants, use the
port commands 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
+atlas make sure none of the dependents are using
+accelarate. Also, make sure no dependents are using the
+universal variant. Using the
+gcc47 variant is also recommended as all of Octave's dependents have a
+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.
The installed variants for each port may be determined by the command below. Be sure to replace '<portname>' with the name of the port.
Once an Octave port is installed the command below may be used to determine / verify the version and variants of
octave-local which are installed.
Install Dependencies with Specific Variants
There may be problems bundling some dependencies. For example, bundling the
xorg-libx11 port may fail. To alleviate this problem (or similar ones), the problematic port can be avoided as a dependency. The command used to produce the octave-local DMG,
port mdmg octave-local +variant1+variant2+etc, applies the listed variants to each of the dependencies. Therefore, it is necessary to provide a proper aggregate list of dependencies. For Octave 3.6.4, the list below were sufficient.
If run from a fresh macports installation (i.e. no ports have yet been installed), then this command should complete with no errors. If ports have already been installed, then errors during the execution of this command are likely and may be resolved by modifying the variant(s) of installed packages, and/or modifying the list of variants used to produce the
octave-local DMG. One of Octave's dependencies,
transfig, requires port
xpm, which requires many xorg ports that may cause the
port mdmg ... command to fail. To alleviate this problem, the
transfig port can be eliminated as a run-time dependency for Octave (can the
transfig portfile be modified to eliminate the
Create the MacOS X App Bundle
There are effectively four tasks needed to produce the App bundle. First, Octave and all its build and run-time dependencies must be extracted from the MacPorts installation. Second a App bundle template for running a shell script is required. This may be done using the MacOS X AppleScript Editor. Third, the shell script which the App bundle runs is needed. This script will be used to launch the MacOS X Terminal app. This script is referred to as the App's shell script. Finally, a script for setting up the shell environment for Octave and running Octave is required. This script is referred to as the Octave shell script.
Produce a DMG for Octave and its dependencies
MacPorts provides a feature for producing binary packages with standalone binary installers that are precompiled; they do not require MacPorts on the target system. Binary files created with MacPorts may be either .pkg (Mac OS X Installer Packages), or RPM (RPM Package Manager) format. MacPorts may also process a .pkg package into a Mac OS X .dmg disk image file. The port command shown below will create a DMG type binary installer for the Octave port and all its dependencies.
In the event errors such as the one below are encountered, the ports implicated (
gtk2 in this case) must be clean prior to creating the dmg.
Be sure to clean each of the problematic ports prior to each attempt to create the dmg.
curl consistently need to be cleaned prior to the
port mdmg octave-local ... command. The reason for this is not understood (yet), but one hint is seen during the compilation of the DMG.
The DMG will be placed in the port's
work directory. If a local portfile is used, a symbolic link to the
work directory will be placed in the directory containing the portfile. In this instance the DMG can be found in
The DMG produced using the prototype portfile's does not include everything needed for Octave. Both
octave.info, and the
octave.info-# files are missing. Until the cause for these missing files is identified and resolved, they will have to be copied manually to the App bundle (one possibility is that the
+docs variant is not used. Including the
+docs variant would bundle
texlive port as well as
xorg-libx11 and several other
Create an Application Template for Octave
The itemized instructions below describe how to create an application template for Ocave using the AppleScript Editor.
- Run the 'AppleScript Editor' and enter the script below.
- Choose 'Save As...' from the File menu.
- Specify the application name in the Save As: field. For this example, use 'Octave-3.7.0+.app'.
- The Where: field specifies the location the application template will be saved to.
- The File Format: pull down should be set to 'Application'.
- Of the Options, only 'Stay Open' should be checked.
- Click on Save.
The launch_octave shell script runs the Octave shell script and uses AppleScript to tell the App bundle to quit when Octave exits.
The default applet.icns file which is included in the App bundle template by the AppleScript editor should be replaced by a MacOS X version of Octave's icon. This MacOS version was produced using the Icon Composer developers utility and a png with a transparent background. The Icon Composer is part of Xcode's developer's tools. Its home is
Populate the App Bundle
To populate the App bundle template with Octave and its dependencies, from MacPorts, follow the itemize instructions below.
- Move the MacPorts Octave DMG to the Desktop. If a local portfile was used and the location of the local repository was
~/ports, the DMG will be located in
- Save the original MacPorts installation.
- Install the MacPorts Octave DMG, which as placed on the MacOS X Desktop. Installing the DMG will create a new
/optdirectory containing Octave and all its build and run-time dependencies. To avoid conflict with the original MacPorts installation.
- Place the Octave shell script in the same directory as the App bundle template created using the AppleScript Editor.
- Populate the App bundle by running the script below from the directory containing the App bundle template and the Octave shell script.
- Restore the original MacPorts installation.
The Octave App bundle for MacOS X is now ready to run.
Create an Installer DMG
The GPL'd dmgCreater is a Mac OS X Application which allows simple and easy creation of customized dmg disk images with custom background images. It ensures the correct presentation of the disk image's content irrespective of the current Finder configuration.
A short list of features from the dmgCreator sourceforge page are;
- Create compressed and internet enabled DMG files, i.e. for software distribution.
- Add a background image and a custom volume icon to your disk image.
- Add a symbolic link to the Applications folder for easy installation.
- Show localized license agreements when mounting the disk image. They have to be accepted by the user in order to access the contents.
- Content positioning at a pixel level.
- The disk image's content will always look the same, irrespective of the user's finder configuration.
Running Octave from the Terminal's Command Line
The bundled Octave may be run from a terminal command line using the command below.
To create a symbolic link in your path that runs the bundled Octave, us the command below.
If the link does not work, be sure that
/usr/local/bin is in your shell path. If it is not in your path, it may be added by editing
~/.profile. Just add the line below to the end of the file.
Problems, Restrictions, and Annoyances of the App Bundle
- In the past, the App bundle did not run if there were spaces in its path. A solution to this problem has been applied, but is not fully tested.
- The Octave shell script used to run Octave is designed to ensure that the bundled version of AquaTerm is used by Octave. This was done because binary incompatibilities have been encountered between the bundled Gnuplot and AquaTerm applications provided by other sources. If Octave/Gnuplot appear to have a problem producing a plot using AquaTerm, verify that Aquaterm is running. If it is not, then quit and relaunch the Octave App. If an Aquaterm application is running, please verify that it is the one bundled with Octave.
- Executables built by MacPorts may include features specific to the MacOS X version the executables were build on. As a result, the Octave App bundle may not run on a different version of MacOS X.
mkoctfilefunctions have not been tested. Although the App bundle does include a gcc toolset, some debugging is expected before this will work reliably.
- When Octave is running, clicking on Octave's icon in the dock has no effect. This is because the App bundle runs a shell script which launches Terminal.app which runs Octave. To locate the Octave session, click on the Terminal.app.
- Only one instance of the App may be run by clicking on the app. Multiple instances may be run from the command line.
- The Octave binary may attempt to load an library whose version number is older than the one it intended to link to (at build time). This will produce an error like to one below. If this happens, please report the error.
dyld: Library not loaded' Errors
If an error such as the one above is encountered, it is likely due to the Bundle looking in the original install path rather than in the App bundle for the library. This can be fixed using the developer utility
To point to the correct location for the library, first determine the library's location in the App bundle. In this instance the library's path is
Octave-3.7.0+.app/Contents/Resources/lib/libiconv.2.dylib. Next open a Terminal session,
cd to the Resources directory and repair Octave's binary.
To check the binary for other occurances of this problem, type the command below.
Some m-file functions has been written to automate the application of the
otool utility toward making the binary executable and dynamically loadable libraries included in the App bundle relocatable. The four m-file functions to accomplish this are itemized below.
To apply these scripts, change the current directory to
Octave-3.7.0+.app/Contents/Resources, and enter the command below.
The script will mirror each of the
otool commands to the screen. Errors and/or warnings are given if any libraries are found to be missing in the bundle.
Reducing the Size
The App bundle is large. It's size may be significantly reduced by deleting the static libraries.
Those interested in testing an App bundle can try (Dated: Sep 8, 2012 at 15:46 PM). The link will be periodically updated. The DMG is large (472+ MB). I kindly ask those with the patience to download it, to report results to bpabbott at mac dot com. Alternatively, if a bug is found file a bug report. When reporting on your experience, please include;
- The version of MacOS X you are running.
- Note: This App bundle will not run on Mac OS 10.5 or earlier.
- The Mac's processor (found under 'About This Mac').
- Note: This App bundle will only run on 64 bit Intel processors (X86_64).
- If the App bundle doesn't run, it may necessary to enable 64 bit mode. See Apple's support page for instructions ⇒ OS X: Starting up with the 32-bit or 64-bit kernel;
- Whether you have Fink, Homebrew, or MacPorts installed.
- For intricate problems, please provide enough information so that others may duplicate it.
Results reported by some volunteers testing an App bundle are below. As some of the reported results are inconsistent, individuals are cautioned not interpret these results as definitive. However, the App bundle does appear to run reliably on X86_64 based Macs running MacOS 10.6 and above.
- An App bundle built for arch=X86_64 on an Intel Core i7 MacBook Pro running MacOS 10.7 was found to run on the following;
- Macbook Pro (X86_64 architecture) running MacOS 10.8.1.
- MacBook Pro (Intel Core i7) running MacOS 10.7 with MacPorts installed.
- MacBook Pro (Intel Core i7) running MacOS 10.7 with no MacPorts, and no Fink, installed.
- The App bundle did not run on Intel Core (2) Duo processors, as they are not 64 bit.;
- MacBook (Intel Core Duo) running MacOS 10.6 with no MacPorts, and no Fink, installed. The error encountered is below.
- MacMini (Intel Core 2 Duo) running MacOS 10.6 with Fink installed. The error encountered is below. Enabling 64 bit did not effect this problem. It may be possible for resolved this as the bundled AquaTerm.app functions properly.
- MacMini (Intel Core 2 Duo) running MacOS 10.6 with no Fink or MacPorts installed. The error encountered is below.
- If anyone has advice on how to resolve any of the above errors, please send an email to bpabbott at mac dot com.
List of what can be done to improve the MacOS X App bundle.
macros.texifile doesn't install properly. It should be in
share/octave/3.7.0+/etc, but doesn't show up.
- Test the ability to compile mex-files and oct-files.
- Necessary changes
- Use the environment variable OCTAVE_HOME in mkoctfile to point to the bundled developer tools and libraries.
- Same for octave_confgure-3.7.0+
- Over-ride the built-in octave_configure_info and use an m-file version that replaces the original MacPorts prefix with the OCTAVE_HOME environment variable set by the bundle.
- The bundled mkoctfile references the gcc4.4 libraries instead of the gcc4.7 libraries that are actually bundled. This needs to be corrected.
- With the above changes
mkoctfile helloworld.ccfails with the error below. This is likely due to the
Octave-3.7.0+.app/Contents/Resources/bin/octavescript over-riding the build environment variables normally set by
- Rely on
mkoctfileto setup the oct-file build environment (i.e. don't set any of it up in the
gsedneeds to be added as a run time dependency in the MacPorts portfile. Check to verify that other build time dependencies are not also need.
- Rely on
- Necessary changes
Mac User Directory
- Should the contents of the la-files, in
Octave-3.7.0+.app/Resources/lib, be changed to reflect to use the
- These files are from libtool. For limited development, such as building oct-files and mex-files, are they needed at all?
- Use AppleScript Editor to record the creation of the App bundle template.
- This will allow for a fully automatic build of an App bundle from a shell script.
- Also use an AppleScript to record the creation of a MacOS X Octave icon.