未找到包“lua",但我已安装 [英] No package 'lua' found but i have it installed
本文介绍了未找到包“lua",但我已安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在 Ubuntu 10.4 LTS 上安装 Lsyncd 但我遇到了一些错误:
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.
或者我知道我安装了 Lua :
Or I know I have Lua installed :
# lua -v
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
我在几个论坛上读到我需要一个 lua.pc 文件,但我找不到它.有人知道如何进行吗?
I read on several forums that I need a lua.pc file but i can't find it. Does anyone know how to proceed?
谢谢
已解决
一些包丢失了;)
apt-get install liblua5.1-0-dev liblua50-dev liblualib50-dev
推荐答案
如果自己编译软件,不仅要安装runtime(lua5.1),还要安装开发包(liblua5.1-0-dev).该包包含 lua5.1.pc 文件.
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.
它也在 lua 源代码分发版中.
这篇关于未找到包“lua",但我已安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文