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. |
| 50 | MacPorts usually runs under a separate "macports" user account with reduced privileges; |
| 51 | you must place the Portfile (and files directory, if any) in a place where the "macports" user can read them. |
| 52 | In particular, your home directory is not usually readable by other users, so inside your home directory is not a suitable location; |
| 53 | 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`. |
| 54 | 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. |