New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible Dependency Issues? #6
Comments
|
Interesting. LuaRocks should automatically install (lpeg, cjson, etc.) before installing Lapis via the rockspec. What command did you use to install Lapis? luacrypo isn't listed as a dependency because it's only required if you try to include the module From your stacktrace it looks like you are running |
|
Initially, I did a 'sudo luarocks install --server=http://rocks.moonscript.org/manifests/leafo lapis' and tried to compile the simple 'hello world' off of the site homepage as web.moon, which is when the dependency issues showed up. I did get it running just now, but only after running these additional commands: ...the moment of glory... rick@mintbox ~ $ sudo moon web.moon I'm loving Lapis so far, thanks for all your hard work in leading this project forward. |
|
The Xavante backend is not documented and most likely broken at this point. I'm going to be removing it. I recommend installing OpenResty and using the command |
|
I had to add luacrypto and lua-cjson to the dependencies to get tests running. Now to get the tests passing... :) |
|
I updated the tests to print a pending message when luacrypto is missing (I recommend it though). As for lua-cjson, that is definitely a requirement, it should be installed when you install lapis via the rockspec. |
|
luacrypto fails to compile... |
|
Try the following command: |
|
thanks, but it looks like it could not be found... I tried the other available version but I am getting same compilation error. On Sun, Nov 1, 2015 at 7:44 PM, Boris Nagaev notifications@github.com
|
|
The official rockspec for luacrypto has the following Lua version line: dependencies = {
"lua >= 5.1, < 5.3",
}That is why luarocks doesn't list this version for Lua 5.3. I have fixed incompatibilities with Lua 5.3 this issue in my fork of luacrypto and uploaded modified rockspec to gist. The following command installs luacrypto from my fork. It should work for Lua 5.3. You can use this workaround until this issue is fixed in the upstream. |
|
Thanks very much On Mon, Nov 2, 2015 at 3:50 PM, Boris Nagaev notifications@github.com
|
|
Not sure if related, but same error message about missing |
|
@Guard13007 there is no longer a reference to the crypto module in the lapis codebase.
If you can give me the stack trace then I can tell you what's going on |
|
Ah, pgmoon is requiring it? So is pgmoon failing to request this dependency? |
|
Note: Forgot to verify lapis version, but it should be latest as it's on a fresh server with fresh luarocks install using |
|
Lapis version 1.7.0 |
I did a fresh install of Lua, Moonscript and Lapis on a new box running Linux and got errors when I first attempted to run 'lua help'. The first errors were fixed by installing lua-cjson and the second was fixed after I installed the lpeg luarock. This is the current error I get:
moon: /usr/local/share/lua/5.1/lapis/util/encoding.lua:20: module 'crypto' not found:No LuaRocks module found for crypto
no field package.preload['crypto']
no file '/usr/local/share/lua/5.1/crypto.lua'
no file '/usr/local/share/lua/5.1/crypto/init.lua'
no file '/home/rick/.luarocks/share/lua/5.1/crypto.lua'
no file '/home/rick/.luarocks/share/lua/5.1/crypto/init.lua'
no file '/usr/local/share/lua/5.2/crypto.lua'
no file '/usr/local/share/lua/5.2/crypto/init.lua'
no file '/home/rick/.luarocks/share/lua/5.2/crypto.lua'
no file '/home/rick/.luarocks/share/lua/5.2/crypto/init.lua'
no file '/usr/local/share/lua/5.2//crypto.lua'
no file '/usr/local/share/lua/5.2//crypto/init.lua'
no file '/usr/local/share/lua/5.2/crypto.lua'
no file '/usr/local/share/lua/5.2/crypto/init.lua'
no file '/usr/local/lib/lua/5.2/crypto.lua'
no file '/usr/local/lib/lua/5.2/crypto/init.lua'
no file './crypto.lua'
no file '/usr/local/lib/lua/5.1/crypto.so'
no file '/home/rick/.luarocks/lib/lua/5.1/crypto.so'
no file '/usr/local/lib/lua/5.2/crypto.so'
no file '/home/rick/.luarocks/lib/lua/5.2/crypto.so'
no file '/usr/local/lib/lua/5.2/crypto.so'
no file '/usr/local/lib/lua/5.2/loadall.so'
no file './crypto.so'
stack traceback:
[C]: in function 'require'
/usr/local/share/lua/5.1/lapis/util/encoding.lua:20: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.1/lapis/session.lua:4: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.1/lapis/application.lua:3: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5.1/lapis/init.lua:2: in main chunk
[C]: in function 'require'
web.moon:1(1): in main chunk
The text was updated successfully, but these errors were encountered: