I am a relatively new Mac user (coming from a ubuntu/debian background) and have attempted to replace apt-get with macports "port" command. I've installed XCode and Macports successfully (my terminal recognises "sudo port install" command). However, no matter what I try install, no port seems to be found.
I attempted:
sudo port install mysql5-server and other requirements such as curl and gd.. I keep getting "port not found" error.
Where is macports looking and what could the problem be?
I had the same problem and I was very disappointed at that moment to solve the issue! but now it has worked for me!
At first, turn your "firewall" off and then try this command:
sudo port -d selfupdate
or equivalently this command:
sudo port -d sync
it will update the ports tree and after that, you'll be able to install with this nice command!
enjoy that!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With