如何使用luarocks安装enet

时间:2014-01-23 23:11:27

标签: lua luarocks enet

我尝试使用luarocks为lua安装enet。首先,我从github检出了enet(库)并编译了它:

svn co https://github.com/lsalzman/enet.git/trunk enet.git
cd enet.git
autoreconf -vfi
./configure && make && make install

这完成没有错误。然后,我通过luarocks安装了enet(lua绑定):

luarocks install enet

再次,没有错误。但是,如果我尝试require "enet",它将始终抛出错误:

error loading module 'enet' from file '/usr/local/lib/lua/5.1/enet.so':
        libenet.so.2: cannot open shared object file: No such file or directory
stack traceback:
        [C]: ?
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: ?

如果它很重要,我在Raspberry Pi上使用Raspbian Wheezy进行此操作。我怎样才能让它发挥作用?

1 个答案:

答案 0 :(得分:0)

我能够通过重新启动我的Raspberry来解决这个问题......这一定是我第一次真正重新启动它以便安装任何东西......