1 macport Download: http://www.macports.org/install.php, need to install Xcode support Macport
2 Installing MacPorts
With other Mac software installed in the same way, Mount DMG, open pkg, follow the boot step next, and then no drag to application action.
(Note: This step is very slow.) Some netizens say that is broken network is good, if so, perhaps is in updating some superfluous information. )
3 then add/opt/local/bin and/opt/local/sbin to the $path search path
Edit the/etc/path file, plus
/opt/local/bin
/opt/local/sbin
4. Update MacPorts Index
What is the MacPorts index? If you have used Linux, you must have used Apt-get or yum, or if you have used BSD, you must have used ports. When we type these commands, pressing the TAB key will give you some hints about the software you want to install, which comes from their respective indexes. And MacPorts also have similar functions to them, so the index is also essential. Under Shell, execute the following command:
Where-V indicates verbose (redundancy), which means that the information is displayed on the shell. SelfUpdate, the "for users" already has MacPorts installed and wish to upgrade to a newer release. "
(Note: I have been waiting for this step for a long time.) But I found out because I used WiFi too bad--| | | )
5. Common commands for MacPorts
(1) Search for software in MacPorts index
(2) Install the new software
(3) uninstalling the installed software
(4) View software with lower version
(5) Upgrading software with lower version
sudo port upgrade outdated |
Installing the GNU Autotools:
sudo port install M4
sudo port install autoconf
sudo port install Automake
Install Macprot under Mac, and install and use the GNU Autotools Autoconf,automake