Macports on mac os x mountain lion

I am trying to install macports on a recently installed mountain lion, I installed xCode first and then installed xCode command line tools. After that, I launched xCode and agreed to the terms and conditions, and then installed the macports dmg package.

As soon as I did this, I launched a self-learning team, and it worked, but then self-tuning or self-learning will not work.

Mo-Mughrabis-MacBook-Pro:~ mo$ sudo port -v selfupdate ---> Updating MacPorts base sources using rsync receiving file list ... done sent 36 bytes received 69 bytes 30.00 bytes/sec total size is 3543040 speedup is 33743.24 receiving file list ... done sent 36 bytes received 76 bytes 32.00 bytes/sec total size is 512 speedup is 4.57 MacPorts base version 2.1.2 installed, MacPorts base version 2.1.2 downloaded. ---> Updating the ports tree Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar receiving file list ... done sent 36 bytes received 70 bytes 30.29 bytes/sec total size is 53821440 speedup is 507749.43 receiving file list ... done sent 36 bytes received 77 bytes 32.29 bytes/sec total size is 512 speedup is 4.53 Creating port index in /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports Total number of ports parsed: 0 Ports successfully parsed: 0 Ports failed: 0 Up-to-date ports skipped: 15604 ---> MacPorts base is already the latest version The ports tree has been updated. To upgrade your installed ports, you should run port upgrade outdated Mo-Mughrabis-MacBook-Pro:~ mo$ sudo port upgrade outdated Error: No ports matched the given expression 

When I tried to run sudo port install, I got the following

 Mo-Mughrabis-MacBook-Pro:~ mo$ sudo port install Can't map the URL 'file://.' to a port description file ("Could not find Portfile in /Users/mo"). Please verify that the directory and portfile syntax are correct. To use the current port, you must be in a port directory. 

Can anybody help me on what I may have done wrong?

Thanks,

+4
source share
2 answers

Since you just installed MacPorts, none of the actual ports (which you most likely were not on another computer) have not yet been installed.

If you run port installed , you will notice that it is empty.

So congratulations; 0 out of 0 ports are outdated; -)

If you want all the same ports that you had on other Macs to run the terminal and run port installed on these machines. This should give you a list of everything, and you can either export this list or select and select the ones you want on your new Mountain Lion installation.

And then it will be as simple as

 port install [which program] 

for each of those ports that you want.

+1
source

I have the same message following this port clean --all command because MacPorts just don't need to do anything (clean up).

+1
source

All Articles