如何使用Luarocks安装enet

我尝试使用 luarocks 安装 enet(lua 绑定)来为 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 进行操作的。我该怎样让它工作?

点赞
用户570336
用户570336

我通过重新启动我的树莓派来解决了这个问题...这应该是我第一次必须重新启动它才能安装任何东西...

2014-01-24 14:44:52