[MacPorts] howto/InstallingOlderPort modified
MacPorts
noreply at macports.org
Sat Nov 16 13:57:19 PST 2013
Page "howto/InstallingOlderPort" was changed by ryandesign at macports.org
Diff URL: <https://trac.macports.org/wiki/howto/InstallingOlderPort?action=diff&version=17>
Revision 17
Comment: Better explanation of permission errors
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/InstallingOlderPort
=========================================================================
--- howto/InstallingOlderPort (version: 16)
+++ howto/InstallingOlderPort (version: 17)
@@ -47,13 +47,11 @@
=== Step 2: '''Getting the Portfile''' ===
Click 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.
-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
-{{{
-chown -R macports:macports Portfile files
-}}}
-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.
-
-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.
+MacPorts usually runs under a separate "macports" user account with reduced privileges;
+you must place the Portfile (and files directory, if any) in a place where the "macports" user can read them.
+In particular, your home directory is not usually readable by other users, so inside your home directory is not a suitable location;
+using an unsuitable location will result in an error message like `Error: Unable to execute port: could not read "/Users/someuser/Desktop/Portfile": permission denied`.
+If 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.
=== Step 3: '''Building the downloaded port''' ===
Finally, use the Terminal to `cd` to the directory where you downloaded the Portfile and type "`sudo port install`".
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/howto/InstallingOlderPort>
MacPorts <http://www.macports.org/>
Ports system for OS X
This is an automated message. Someone added your email address to be
notified of changes on 'howto/InstallingOlderPort' page.
If it was not you, please report to .
More information about the macports-changes
mailing list