leafo / lua-enet

Bindings to ENet for Lua
http://leafo.net/lua-enet/
85 stars 25 forks source link

error loading module enet #13

Open The-Error opened 9 years ago

The-Error commented 9 years ago

Hi. I'm getting the following error on Ubuntu 14.04 while trying to use enet in lua. It's installed using luarocks. The enet lib is installed from source, version 1.3.12. What could be the problem?

lua5.1: error loading module 'enet' from file '/usr/local/lib/lua/5.1/enet.so': libenet.so.7: cannot open shared object file: No such file or directory stack traceback:

[C]: in function 'require'
server.lua:2: in main chunk
[C]: ?
tiomke commented 6 years ago

I have the same problem, and I found out the solution at last.

The reason is that enet.so cant find the libenet.so.7 file at the default path.

Here is the solution