aarzilli / golua

Go bindings for Lua C API - in progress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot find -llua5.1

striveQiao opened this issue · comments

github.com/aarzilli/golua/lua

/usr/bin/ld: cannot find -llua5.1
collect2: error: ld returned 1 exit status
image

Try running lua -v and see what that returns. There are three possible results (I think)

  1. If you get "command not found" you don't have Lua installed

  2. If you get something like this:

Lua 5.4.4  Copyright (C) 1994-2022 Lua.org, PUC-Rio

That means you have a different version of Lua installed and don't have that specific library, or it's not installed in the expected place.

  1. If you do get a version string that's 5.1.x then you probably have the library installed but it's not your linker's default search path (fairly common).