Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing using luarocks using Lua 5.4.0 #514

Closed
leonsal opened this issue Sep 5, 2020 · 4 comments
Closed

Error when installing using luarocks using Lua 5.4.0 #514

leonsal opened this issue Sep 5, 2020 · 4 comments
Labels

Comments

@leonsal
Copy link

leonsal commented Sep 5, 2020

Hi,

Luarocks reports the following error when installing using lua 5.4.0:
error "unsupported Lua version (i.e. not Lua 5.1, 5.2, or 5.3)

Any estimate when compatibility with lua 5.4.0 will be implemented ?
Regards.

@squeek502
Copy link
Member

Related: #497

@squeek502
Copy link
Member

I think your specific error is due to an older Luarocks version, though, since our rockspec specifies >= 5.1, which should include 5.4. Updating your Luarocks might fix this error, but I'm not sure if Luv works properly with 5.4 yet.

@smackesey
Copy link

smackesey commented Sep 23, 2020

I also have this problem (and am using most recent luarocks). The error pops up after it looks like luv finished building. Any known workaround? I tried running the command in #515:

LUA_DIR=/path/to/lua-5.4.0/src cmake .. -DWITH_LUA_ENGINE=Lua -DLUA_BUILD_TYPE=System

But it seems to ignore my LUA_DIR and just finds my lua-5.3.5 installation in /usr/local. Note that my lua-5.4 is elsewhere, I'm on MacOS and the /usr/local luas come from homebrew, which doesn't yet include lua 5.4 (I have lua 5.4 through asdf. I'm not very skilled in building/cmake etc so I could be missing something obvious (but I did replace "/path/to/lua-5.4.0" with path to my asdf installation, also tried with a direct clone of the lua repo from here, neither worked).

EDIT: Nevermind, it was indeed a dumb error on my part. Was able to build from source using squeek502's instructions.

@squeek502
Copy link
Member

Lua 5.4 support should be fixed in the latest versions. Please re-open if there is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants