Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error loading module enet #13

Open
The-Error opened this issue Dec 31, 2014 · 1 comment
Open

error loading module enet #13

The-Error opened this issue Dec 31, 2014 · 1 comment

Comments

@The-Error
Copy link

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]: ?
[C]: in function 'require'
server.lua:2: in main chunk
[C]: ?

@tiomke
Copy link

tiomke commented Feb 11, 2018

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

  • find libenet.so.7
    $ find / libenet.so.7
    /usr/local/lib/libenet.so.7

  • add path to LD_LIBRARY_PATH
    $ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants