Stratus3D / asdf-lua

Lua plugin for asdf version manager. https://github.com/asdf-vm/asdf
MIT License
62 stars 13 forks source link

Wrong architecture when install lua on Mac M1 #38

Open SuperBo opened 4 months ago

SuperBo commented 4 months ago

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. https://github.com/luarocks/luarocks/issues/258