Hi there!
I've been trying to use lua-resty-string, and for some reason it seems
I'm missing something because not even the test.lua example specified on
the README on github works for me:
2014/07/22 11:28:16 [error] 5820#0: *1 lua entry thread aborted: runtime
error: ...resty/sha.lua:4: module 'ffi' not found:
no field package.preload['ffi']
no file './ffi.lua'
no file '/usr/local/share/lua/5.1/ffi.lua'
no file '/usr/local/share/lua/5.1/ffi/init.lua'
no file '/usr/local/lib/lua/5.1/ffi.lua'
no file '/usr/local/lib/lua/5.1/ffi/init.lua'
no file '/usr/share/lua/5.1/ffi.lua'
no file '/usr/share/lua/5.1/ffi/init.lua'
no file './ffi.so'
no file '/usr/local/lib/lua/5.1/ffi.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/ffi.so'
no file '/usr/lib/lua/5.1/ffi.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
coroutine 0:
[C]: in function 'require'
.../resty/sha.lua:4: in main chunk
[C]: in function 'require'
...resty/sha1.lua:4: in main chunk
[C]: in function 'require'
/tmp/test.lua:3: in function </tmp/test.lua:1>, client: 127.0.0.1,
server: , request: "GET / HTTP/1.1", host: "localhost"
I know the 'ffi' module is built-in on luajit, and from its console it
appears be loading it properly.
Now comes the tricky part, I'm loading this from a standalone Debian
nginx's with lua support, which appears to be using luajit-2.0 on the
build process.
I presume there must be something missing on that end, most likely the
luajit. Any ideas? Something I might try for checking luajit support?
Thanks in advance.
Cheers,
Dererk
--
BOFH excuse #86:
Runt packets