Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No package 'lua' found but i have it installed

I'm trying to install Lsyncd on Ubuntu 10.4 LTS but i get some error :

> checking for LUA... no checking for > LUA... no checking for LUA... > configure: error: Package requirements > (lua >= 5.1.3) were not met: >  > No package 'lua' found >  > Consider adjusting the PKG_CONFIG_PATH > environment variable if you installed > software in a non-standard prefix. >  > Alternatively, you may set the > environment variables LUA_CFLAGS and > LUA_LIBS to avoid the need to call > pkg-config. See the pkg-config man > page for more details. 

Or I know I have Lua installed :

# lua -v Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio 

I read on several forums that I need a lua.pc file but i can't find it. Does anyone know how to proceed?

Thank you

EDIT : SOLVED

Some packages were missing ;)

apt-get install liblua5.1-0-dev liblua50-dev liblualib50-dev 
like image 708
bru Avatar asked Mar 18 '11 09:03

bru


People also ask

Does Lua run on Linux?

If you use Linux or Mac OS X, Lua is either already installed on your system or there is a Lua package for it. Make sure you get the latest release of Lua (currently 5.4. 4). Lua is also quite easy to build from source, as explained below.

What is Lua in Linux?

Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.


2 Answers

If compiling software yourself, you should install not only the runtime (lua5.1) but also the development packages (liblua5.1-0-dev). That package contains the lua5.1.pc file.

It's also in the lua source distribution.

like image 57
jpjacobs Avatar answered Sep 20 '22 09:09

jpjacobs


try sudo apt-get install liblua5.1-0-dev

like image 20
zdarkwhite Avatar answered Sep 20 '22 09:09

zdarkwhite