port installSOFTWARE: macportssudo port install php5 +apache2 +mysql5 DocumentationNote about Path VariablesMake sure /opt/local/bin is in your path. Macports installer drops a file into your user directory called ".profile" that attempts to do this. If you have a file called ".bash_profile" it will also do this. Find out your path by typing "env" or "echo $PATH" in the shell. What you want in ".profile" is something like:
I might need to experiment with these settings for the crystal space setup... Common CommandsInstall a macport with the port command + arguments. IE:
To update macports (including from darwinports to macports) just run:
Search for ports. IE search for php:
Search for variants:
Get info about a port:
Show what ports you have installed. This is handy if "which php" or similar isn't showing you stuff that lives in your macports "opt" directory:
Upgrading and stuffLet's say you want to install a newer version of automake so you do:
But it turns out you had an earlier version running on your system before and you get an error on activation. To deactivate a port with a specific version number so you can upgrade to a newer version disable the old one:
Then, to upgrade your automake software:
Or activate something explicitly with the activate command:
List all outdated ports that you currently have installed:
To find out what variants were designated for an installed port:
MORE INFO: http://trac.macports.org/projects/macports |