Changes between Version 16 and Version 17 of howto/InstallingOlderPort


Ignore:
Timestamp:
Nov 16, 2013, 9:57:18 PM (10 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Better explanation of permission errors

Legend:

Unmodified
Added
Removed
Modified
  • howto/InstallingOlderPort

    v16 v17  
    4848Click the Portfile to see it, then download it to disk using the Original Format link at the bottom of the page. The tcl port doesn't have a `files` directory, but if it did, you should download each file within it as well, and place them in a `files` directory on your disk in the same place where you downloaded the Portfile.
    4949
    50 Note: You may need to own the `Portfile` and `files` directory to the `macports` user before following Step 3:. You can do this with the command
    51 {{{
    52 chown -R macports:macports Portfile files
    53 }}}
    54 Otherwise you may encounter an error message like `Error: Unable to execute port: could not read "/Users/someuser/Desktop/Portfile": permission denied` because the install process is run by the macports user.
    55 
    56 Note: As reported [http://superuser.com/questions/598824/previous-version-of-cgal-with-macports-error-unable-to-execute-port-could-no/ at superuser.com], if you encounter an error like : `Error: Unable to execute port: Could not open file: /Users/someuser/Desktop/Portfile`, move the Portfile to /private/tmp.
     50MacPorts usually runs under a separate "macports" user account with reduced privileges;
     51you must place the Portfile (and files directory, if any) in a place where the "macports" user can read them.
     52In particular, your home directory is not usually readable by other users, so inside your home directory is not a suitable location;
     53using an unsuitable location will result in an error message like `Error: Unable to execute port: could not read "/Users/someuser/Desktop/Portfile": permission denied`.
     54If you don't mind the OS deleting these files after a few days, or after a restart, you could put them in /tmp, or you could create another directory elsewhere (e.g. at the root of your hard drive) for this purpose.
    5755
    5856=== Step 3: '''Building the downloaded port''' ===