Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

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 was browsing the Lua source code and I did "make install". It worked perfectly but I could not uninstall it! How can I install Lua 5.0?

share|improve this question
Why can't you uninstall it? What happens if you make uninstall? – Ken Aug 25 '12 at 2:35
@Ken it says that there is not a target for uninstall – Greencat Aug 28 '12 at 2:23
Weird, I guess they only added uninstall in version 5.2. – Ken Aug 28 '12 at 16:07
up vote 2 down vote accepted

Based on my reading of Lua 5.0's makefile, I'd say:

  1. Run make echo, and note the folders INSTALL_BIN, INSTALL_INC, INSTALL_LIB, and INSTALL_MAN

  2. For each file in bin, remove that file from INSTALL_BIN

  3. For each file in include named *.h, remove that file from INSTALL_INC

  4. For each file in lib named *.a, remove that file from INCLUDE_LIB

  5. For each file in doc named *.1, remove that file from INCLUDE_MAN

  6. Upgrade to Lua 5.2 so if you accidentally install again, you can uninstall :-)

Alternatively: if you download Lua 5.2 and configure it in exactly the same way (so all the INSTALL_* folders are the same), then its make uninstall will delete almost all of these for you. You only have to delete liblualib.a from INCLUDE_LIB.

share|improve this answer

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.