starwing / luautf8

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

module 'lua-utf8' not found #48

Open konstantinosDMS opened 10 months ago

konstantinosDMS commented 10 months ago

Hi, I am using lua 5.4, i installed the luarocks and luarocks luautf8 package, but studio code searching the following locations for .so library Desktop/server/lua-apps/lua.lua:3118: module 'lua-utf8' not found: no field package.preload['lua-utf8'] no file '/home/konstantinos/Desktop/server/lua-apps/lua-utf8.lua' no file '/home/konstantinos/Desktop/server/lua-apps/lua-utf8.lua' no file '/home/konstantinos/Desktop/server/lua-apps/lua-utf8.so' no file '/home/konstantinos/Desktop/server/lua-apps/lua-utf8.so' I required as docs say in my code. Any suggestion?

alerque commented 10 months ago

None of the paths mentioned there as getting searched look like anywhere luarocks may have installed anything. You need to adjust your package.cpath to include whatever system, user, or project location you installed to with LuaRocks.

konstantinosDMS commented 10 months ago

None of the paths mentioned there as getting searched look like anywhere luarocks may have installed anything. You need to adjust your package.cpath to include whatever system, user, or project location you installed to with LuaRocks.

U mean to add cpath to my environment variables point to luarocks packages?