lua-capnproto icon indicating copy to clipboard operation
lua-capnproto copied to clipboard

Cannot install via luarocks

Open deepankarsharma opened this issue 11 years ago • 2 comments
trafficstars

When I run "luarocks install lua-capnproto" I get the following error message - "Error: No results matching query were found."

Details about my machine

[root@bsd /tmp/tmp3/lua-capnproto]# luajit -v LuaJIT 2.1.0-alpha -- Copyright (C) 2005-2014 Mike Pall. http://luajit.org/

[root@bsd /tmp/tmp3/lua-capnproto]# luarocks --version /usr/local/bin/luarocks 2.2.0 LuaRocks main command-line interface

This is on a machine with FreeBSD 10 amd64 machine.

deepankarsharma avatar Oct 20 '14 14:10 deepankarsharma

Hi deepankarsharma,

Thanks for your report. I'm not a BSD user myself. So after your report, I installed a copy of FreeBSD 10 in my VM. And I can reproduce this problem myself.

After some investigation, I found the cause of this problem. If you have lua 5.2 instead of lua 5.1 installed on you system, your luarocks will only search for lua5.2 compatible rocks when you want to install a package. However, lua-capnproto only works with luajit-2.1 for now (lua 5.1 and 5.2 support is in progress), that means you need to configure your luarocks with lua version 5.1:

luarocks-2.2.0 # ./configure --lua-version=5.1 --with-lua-include=/usr/local/include/lua51

Then after install, you can install lua-capnproto using:

# luarocks install lua-capnproto

calio avatar Oct 20 '14 17:10 calio

Had the same issue with a distribution provided luarocks in OSX and Ubuntu. I recompiled LuaRocks pointing to luajit-2.1 and was able to install the module. Thanks for the tip!

joshenders avatar Jan 09 '17 06:01 joshenders