[英]How to install enet using luarocks
我尝试使用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进行此操作。 我该如何工作?
我能够通过重新启动Raspberry来解决问题...这肯定是我第一次真正必须重新启动它才能安装任何东西...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.