Wrong architecture when install lua on Mac M1
SuperBo opened this issue · 0 comments
SuperBo commented
I installed luarocks by asdf with this plugin on my Mac M1. However, the installed luarocks doesn't have correct architecture:
$ luarocks config
accept_unknown_fields = false
arch = "macosx-x86_64"
cache = {
luajit_version_checked = true
}
cache_fail_timeout = 86400
cache_timeout = 60
check_certificates = false
cmake_generator = "Unix Makefiles"
config_files = {
nearest = "/Users/superbo/.asdf/installs/lua/5.1.5/luarocks/etc/luarocks/config-5.1.lua",
system = {
file = "/Users/superbo/.asdf/installs/lua/5.1.5/luarocks/etc/luarocks/config-5.1.lua",
found = true
},
user = {
file = "/Users/superbo/.luarocks/config-5.1.lua",
found = false
}
}
...
I think you need to set LUAROCKS_UNAME_M
when configure luarock. luarocks/luarocks#258