• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

How to configure LUA_INCDIR ? (1 Viewer)

paulgureghian

Newcomer
Joined
Jul 14, 2021
Messages
3
Reaction score
0
I have lua 5.3.4 and luarocks 3.5.0 installed on Red Hat 8.

When I did 'luarocks install inifile' the error was: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR.

Is there a standard path to assign to the variable ?

Thanks.
 

225559

Newcomer
Joined
Nov 17, 2020
Messages
15
Reaction score
4
I'm on Debian, but maybe it's the same for you:
Code:
LUA = "/usr/local/opt/lua/bin/lua5.3",
LUA_BINDIR = "/usr/local/opt/lua/bin",
LUA_INCDIR = "/usr/local/opt/lua/include",
LUA_LIBDIR = "/usr/local/opt/lua/lib",

or path with version number:
Code:
LUA = "/usr/local/opt/lua53/bin/lua",
LUA_BINDIR = "/usr/local/opt/lua53/bin",
LUA_INCDIR = "/usr/local/opt/lua53/include",
LUA_LIBDIR = "/usr/local/opt/lua53/lib",

or if you installed system-wide:
Code:
/opt/lua53/include
 

paulgureghian

Newcomer
Joined
Jul 14, 2021
Messages
3
Reaction score
0
I'm on Debian, but maybe it's the same for you:
Code:
LUA = "/usr/local/opt/lua/bin/lua5.3",
LUA_BINDIR = "/usr/local/opt/lua/bin",
LUA_INCDIR = "/usr/local/opt/lua/include",
LUA_LIBDIR = "/usr/local/opt/lua/lib",

or path with version number:
Code:
LUA = "/usr/local/opt/lua53/bin/lua",
LUA_BINDIR = "/usr/local/opt/lua53/bin",
LUA_INCDIR = "/usr/local/opt/lua53/include",
LUA_LIBDIR = "/usr/local/opt/lua53/lib",

or if you installed system-wide:
Code:
/opt/lua53/include
I don't have any of those paths.
I did 'which luarocks' and the path returned was '/usr/bin/luarocks' , but I think I already tried it and it faulted.
 

stetre

Member
Rank: I
Joined
Jan 8, 2020
Messages
75
Reaction score
46
Location
Italy
Website
github.com
The error message complains about not knowing the path to the Lua headers (lua.h & friends, I presume).
If you have Lua installed, then lua.h should be somewhere on your system. Run this on the command line to find it:

Lua:
$ locate lua.h
 

paulgureghian

Newcomer
Joined
Jul 14, 2021
Messages
3
Reaction score
0
The error message complains about not knowing the path to the Lua headers (lua.h & friends, I presume).
If you have Lua installed, then lua.h should be somewhere on your system. Run this on the command line to find it:

Lua:
$ locate lua.h
Lua was pre-installed on my RHEL8, but no developer tools were included. had to install those packages separately. good now. but when I try to install packages it complains about OPENSSL.
 

225559

Newcomer
Joined
Nov 17, 2020
Messages
15
Reaction score
4
Lua was pre-installed on my RHEL8, but no developer tools were included. had to install those packages separately. good now. but when I try to install packages it complains about OPENSSL.
Great! What packages did you have to install to get it to work?

Can you paste the error you're getting?
 

stetre

Member
Rank: I
Joined
Jan 8, 2020
Messages
75
Reaction score
46
Location
Italy
Website
github.com
Lua was pre-installed on my RHEL8, but no developer tools were included. had to install those packages separately. good now. but when I try to install packages it complains about OPENSSL.

If it complains that it doesn't find the headers, it's likely the same problem as before but this time for the openssl library. I don't remember how it's called on RH, perhaps libssl-devel, or something like this.
 
Top