asmagill / hammerspoon_asm.undocumented

Hammerspoon and Mjolnir modules utilizing undocumented APIs
MIT License
50 stars 6 forks source link

make install: internal.m:3:9: fatal error: 'lauxlib.h' file not found #2

Closed srustamo closed 9 years ago

srustamo commented 9 years ago

What could be the reason for this error when running make install: internal.m:3:9: fatal error: 'lauxlib.h' file not found

OS X 10.9.5

asmagill commented 9 years ago

Are you using Hammerspoon or Mjolnir?

In either case, you will need to have Lua installed via some mechanism... I use Homebrew, but Fink or MacPorts should work as well.

For Hammerspoon, you should install Lua 5.3

For Mjolnir, you'll need Lua 5.2

If you're using Hammerspoon, you could also do the following (this does not require the separate installation of Lua as described above):

sudo ln -s /Applications/Hammerspoon.app/Contents/Frameworks/LuaSkin.framework /Library/Frameworks/LuaSkin.framework

and then replace the #include "lauxlib.h" with #import <LuaSkin/LuaSkin.h>... this is actually the direction we're moving Hammerspoon in, but it still needs documenting and some older repositories (as you see!) still need updating.

On Aug 6, 2015, at 2:37 AM, srustamo notifications@github.com wrote:

What could be the reason for this error: internal.m:3:9: fatal error: 'lauxlib.h' file not found

— Reply to this email directly or view it on GitHub https://github.com/asmagill/hammerspoon_asm.undocumented/issues/2.

srustamo commented 9 years ago

Installing lua with homebrew solved the issue.