Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Macports port not found

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?

like image 412
Blyde Avatar asked Apr 03 '13 14:04

Blyde


1 Answers

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!

like image 153
mm49307 Avatar answered Oct 14 '22 02:10

mm49307