MacPorts is a package management system for Mac OSX. It enables various software packages to be installed and updated automatically, without manually configuring or building them. MacPorts is not required to use Ruby or Rails, however it is highly recommended as it greatly simplifies the installation process.
Before starting, be sure you have first installed the Apple Developer Tools (Xcode), which can be downloaded from the Apple Developer Connection site or from your Mac’s accompanying install disc.
For easiest installation, .dmg images containing step-by-step installers can be downloaded from the MacPorts installation page.
Finally, it is a good idea to run the command sudo port -v selfupdate in the terminal to ensure your copy of MacPorts is completely up to date.
After installation, you should now have the port command available to you at the command line. port is used to install, upgrade and remove software packages.
For example, the following command will install Ruby and RubyGems:
sudo port install ruby rb-rubygems
Any other necessary packages are downloaded, configured and built automatically – it’s that easy!
MacPorts is a package management system for Mac OSX. It enables various software packages to be installed and updated automatically, without manually configuring or building them. MacPorts is not required to use Ruby or Rails, however it is highly recommended as it greatly simplifies the installation process.
Before starting, be sure you have first installed the Apple Developer Tools (Xcode), which can be downloaded from the Apple Developer Connection site or from your Mac’s accompanying install disc.
For easiest installation, .dmg images containing step-by-step installers can be downloaded from the MacPorts installation page.
Finally, it is a good idea to run the command sudo port -v selfupdate in the terminal to ensure your copy of MacPorts is completely up to date.
After installation, you should now have the port command available to you at the command line. port is used to install, upgrade and remove software packages.
For example, the following command will install Ruby and RubyGems:
sudo port install ruby rb-rubygems
Any other necessary packages are downloaded, configured and built automatically – it’s that easy!