Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed MacPorts and XCode, then went to a terminal and issued the command "sudo port install lua" and it appears to do nothing. When i execute "sudo port installed" i get back "No ports are installed.". Why is this package not installing and what can i do to get it installed?

share|improve this question
up vote 4 down vote accepted


sudo port -v selfupdate

which should update the local portlist and give you verbose output so you can better see what's going on.

sudo port -v list lua should show you the lua portfile if it is properly installed. If you can see it, try the install again.

Hope that helps.

share|improve this answer
You probably won't believe this but the first command does nothing. – RCIX Aug 13 '09 at 0:15
Also, i downloaded Porticus and it tried to run the "port repair privileges: command, and it gave the following error: "Error: failed to repair privileges for path /Volumes/Porticus/ (Read-only file system)" – RCIX Aug 13 '09 at 0:20
@RCIX Try "sudo port -d selfupdate" (Reference: ) – las3rjock Aug 13 '09 at 1:55
:S it also does absolutely nothing... – RCIX Aug 13 '09 at 5:44
@RCIX - If sudo port -v selfupdate does nothing at all, then your MacPorts installation is seriously broken. Try reinstalling it from scratch. – avstrallen Aug 13 '09 at 10:08

I don't use MacPorts, so I'm speculating, but from skimming the MacPorts Guide, it seems that you might want to try issuing the command

sudo port selfupdate

and then try

sudo port install lua

again. I assume this is a continuation of your "Programming in Lua for the Mac?" question on Stack Overflow, so you might also want to look at micmoo's most recent comment on his MacPorts answer, although I think your PATH is configured correctly since sudo port installed seems to work.

share|improve this answer

You can try to use the -t (trace) option:

sudo port -t install lua

The trace option isolates MacPorts from other software that might be active.

If that works, it means you probably have other package manager, such as Homebrew, or Fink, or some manual installation, that it is interfering.

share|improve this answer

I use Porticus which is a front end gui for MacPorts, you might want to give it a try. It makes installation and uninstallation a breeze.

share|improve this answer
He explained in notes to adamvs that Porticus did not help – Nerdling Sep 1 '09 at 11:43
Well, he stated that after I posted my answer. – Jack Chu Sep 4 '09 at 17:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.