1

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?

4 Answers 4

4

Try

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.

6
  • You probably won't believe this but the first command does nothing.
    – RCIX
    Aug 13, 2009 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/Porticus.app/Contents/Resources/PortRunner (Read-only file system)"
    – RCIX
    Aug 13, 2009 at 0:20
  • 1
    @RCIX Try "sudo port -d selfupdate" (Reference: guide.macports.org/#using.port.selfupdate )
    – las3rjock
    Aug 13, 2009 at 1:55
  • :S it also does absolutely nothing...
    – RCIX
    Aug 13, 2009 at 5:44
  • 2
    @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, 2009 at 10:08
1

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.

0

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.

-1

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.

2
  • He explained in notes to adamvs that Porticus did not help
    – Jeremy L
    Sep 1, 2009 at 11:43
  • Well, he stated that after I posted my answer.
    – Jack Chu
    Sep 4, 2009 at 17:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .