luautf8 icon indicating copy to clipboard operation
luautf8 copied to clipboard

Can I use it without installing via luarocks?

Open helloworldguy4 opened this issue 7 years ago • 7 comments

Hello can I use the library by downloading the folder but not installing it with luarocks? I already tried putting the folder near to the lua file and doing require "luautf8" but this doesn't work.

I have much problems with luarocks. I cant install anything via luarocks.

helloworldguy4 avatar Dec 02 '17 13:12 helloworldguy4

Ask for help on https://github.com/luarocks/luarocks/issues

vadi2 avatar Dec 02 '17 15:12 vadi2

you must compile the luautf8.c file into lua-utf8.so or dll to do the work.

starwing avatar Jan 01 '18 11:01 starwing

Tried to do so, sucessfully compiled using MSVC С++ 2017. But when I'm trying to require it in LuaJIT 2.0.5 program, I get: Failed to run script: error loading module 'lua-utf8' from file '.\lua-utf8.dll': the specified procedure could not be found (I translated message from my language)

Can someone please give a hint? Luarocks may be a good thing, but I need to include this library into standalone application, so this is not an option.

rinart73 avatar Jan 13 '18 11:01 rinart73

Use luarocks to install, then copy the DLL to your application. That's what we do.

On Sat, 13 Jan 2018, 12:56 pm rinart73, [email protected] wrote:

Tried to do so, sucessfully compiled using MSVC С++ 2017. But when I'm trying to require it in LuaJIT 2.0.5 program, I get: Failed to run script: error loading module 'lua-utf8' from file '.\lua-utf8.dll': the specified procedure could not be found (I translated message from my language)

Can someone please give a hint? Luarocks may be a good thing, but I need to include this library into standalone application.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/starwing/luautf8/issues/14#issuecomment-357429529, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGxjDYdag77x6KZ8czP3qVnqHX7ywmjks5tKJn0gaJpZM4QzTuF .

vadi2 avatar Jan 13 '18 14:01 vadi2

or build it directly.

starwing avatar Jan 27 '18 18:01 starwing

or build it directly. Can't you tell me how to build directly?

xiaolitongxue666 avatar Jan 09 '22 17:01 xiaolitongxue666

Can't you tell me how to build directly?

If you don't know how to compile C source code for the particular Lua interpreter you want to use the module with, then ... you probably shouldn't be going down that road. Use luarocks.

I cant install anything via luarocks.

I suggest this issue should be closed. Troubleshooting Luarocks or providing work arounds for other system problems shouldn't be the job of a library problem to fix.

alerque avatar Jan 11 '22 12:01 alerque