如何在Cent OS中安装luarocks?

时间:2016-05-07 23:34:07

标签: lua centos luarocks

我试图在Cent OS中安装luarocks。 在./configure命令后,我收到错误:

Lua interpreter found: /bin/lua...
Lua version detected: 5.1
lua found in $PATH: /bin
Checking Lua includes... lua.h not found (looked in //include, //include/lua/5.1, //include/lua5.1)
You may want to use the flag --with-lua or --with-lua-include. See --help.

据我所知,首先我需要安装Lua并在配置luarocks时指定Lua的路径

1 个答案:

答案 0 :(得分:2)

/bin(而非/usr/bin)中使用Lua解释器似乎不寻常。

您是否在某处安装了文件lua.h? (换句话说,您是否安装了Lua开发头文件?)您应该能够使用locate命令找到它:

locate lua.h

如果您有lua.h(例如,在/usr/include中),请告诉配置脚本此文件所在的位置,就像错误消息建议您一样:

./configure --with-lua-include=/usr/include
相关问题