我试着用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]: ?如果这是重要的,我正在使用Raspbian在Raspberry Pi上这样做。我怎么才能让这个起作用?
发布于 2014-01-24 14:44:52
我可以通过重启我的树莓来解决这个问题..。这一定是我第一次重新启动它才能安装任何东西.
https://stackoverflow.com/questions/21321277
复制相似问题