Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lua C++ development files on Linux (/usr/bin/ld: cannot find -llua5.1)

Tags:

c++

ubuntu

ld

lua

I am building a C++ application that embeds the Lua scripting engine. I am developing on Linux (Ubuntu).

I have already installed Lua on my dev machine (by imstalling the lua5.1 package). I can run the Lua intepreter succesfully (via the cmd line).

However, when building, I get the following link error:

/usr/bin/ld: cannot find -llua5.1

I have searched the Ubuntu forums/package repositories etc but I cannot seem to find the required package. Can anyone help?

PS: I also need to install the development files for tolua++ (I'm not sure which Ubuntu package is the required one either).

I am on Ubuntu 10.0.4

like image 494
skyeagle Avatar asked Dec 17 '22 19:12

skyeagle


1 Answers

Install the liblua5.1-dev package, and if that does not work compile Lua from sources.

Or you can try -llua instead of -llua5.1.

like image 179
m4tx Avatar answered Dec 19 '22 07:12

m4tx