2010-09-24 33 views
1

操作系统是centos5.4。 lua是5.1.4。 mysql-proxy是0.7.1。 lua5.1.pc已经在/ usr/local/lib目录/ pkgconfig/ $ PKG_CONFIG_PATH是/ usr/local/lib目录/ pkgconfig 为什么会出现错误:安装mysql-proxy时发现没有找到'lua5.1'包'

checking for LUA... no checking for LUA... configure: error: Package requirements (lua5.1 >= 5.1) were not met:

No package 'lua5.1' found

当我配置MySQL代理?

回答

1

打开/etc/profile作为超级用户 VI/etc/profile文件

,并添加以下内容:

export LUA_CFLAGS="-I/usr/local/lua/include" 
export LUA_LIBS="-L/usr/local/lua/lib -llua -ldl" 

保存文件,然后执行以下为超级用户。

source /etc/profile