starwing / luautf8

a utf-8 support module for Lua and LuaJIT.
MIT License
412 stars 68 forks source link

MacOS luarockes install luautf8 module 'lua-utf8' not found #37

Open xiaolitongxue666 opened 2 years ago

xiaolitongxue666 commented 2 years ago

ERROR: upyun.lua:8: module 'lua-utf8' not found: no field package.preload['lua-utf8'] no file '/usr/local/Cellar/openresty/1.19.3.1_1/site/lualib/lua-utf8.ljbc' no file '/usr/local/Cellar/openresty/1.19.3.1_1/site/lualib/lua-utf8/init.ljbc' no file '/usr/local/Cellar/openresty/1.19.3.1_1/lualib/lua-utf8.ljbc' no file '/usr/local/Cellar/openresty/1.19.3.1_1/lualib/lua-utf8/init.ljbc' no file '/usr/local/Cellar/openresty/1.19.3.1_1/site/lualib/lua-utf8.lua' no file '/usr/local/Cellar/openresty/1.19.3.1_1/site/lualib/lua-utf8/init.lua' no file '/usr/local/Cellar/openresty/1.19.3.1_1/lualib/lua-utf8.lua' no file '/usr/local/Cellar/openresty/1.19.3.1_1/lualib/lua-utf8/init.lua' no file './lua-utf8.lua' no file '/usr/local/Cellar/openresty/1.19.3.1_1/luajit/share/luajit-2.1.0-beta3/lua-utf8.lua' no file '/usr/local/share/lua/5.1/lua-utf8.lua' no file '/usr/local/share/lua/5.1/lua-utf8/init.lua' no file '/usr/local/Cellar/openresty/1.19.3.1_1/luajit/share/lua/5.1/lua-utf8.lua' no file '/usr/local/Cellar/openresty/1.19.3.1_1/luajit/share/lua/5.1/lua-utf8/init.lua' no file '/usr/local/Cellar/openresty/1.19.3.1_1/site/lualib/lua-utf8.so' no file '/usr/local/Cellar/openresty/1.19.3.1_1/lualib/lua-utf8.so' no file './lua-utf8.so' no file '/usr/local/lib/lua/5.1/lua-utf8.so' no file '/usr/local/Cellar/openresty/1.19.3.1_1/luajit/lib/lua/5.1/lua-utf8.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: upyun.lua:8: in function 'file_gen' init_worker_by_lua:45: in function [C]: in function 'xpcall' init_worker_by_lua:52: in function

starwing commented 2 years ago

You should install this module first.

xiaolitongxue666 commented 2 years ago

First thanks you answer , but i had run luarocks install luautf8 already