luarocks.cfg

Package: WA2L/edrc 1.5.57
Section: Configuration Files (4)
Updated: 16 April 2025
Index Return to Main Contents

 

NAME

luarocks.cfg - configuration file for luarocks

 

SYNOPSIS

edrc/etc/luarocks.cfg

 

AVAILABILITY

WA2L/edrc

 

DESCRIPTION

This is the configuration file for the luarocks command.

 

FILEFORMAT

In general the luarocks.cfg file is a lua file. However, not all language features and commands are available.

For a detail description of the configuration file syntax, see: https://github.com/luarocks/luarocks/blob/main/docs/index.md

The description given in this manual page reflects the settings needed to integrate Lua and luarocks properly into WA2L/edrc.

 

OPTIONS

ENVIRONMENT VARIABLES
The following environment variables holding WA2L/edrc settings are available within the configuration file.

  local APPROOT    = os_getenv("APPROOT")
  local OSID       = os_getenv("OSID")
  local LIBC       = os_getenv("LIBC")
  local LUAVERSION = os_getenv("LUAVERSION")

Whereas APPROOT contains the output of approot, OSID the output of osid, LIBC the output of glibc.version and LUAVERSION contains the output of luaversion.

rocks_trees
Base directory of the Lua modules distributed with WA2L/edrc and handled by the luarocks command within WA2L/edrc.

  rocks_trees = {
      { name = "system", root = APPROOT .. "/lib/lua/lum/" .. OSID .. "/" .. LUAVERSION };
  }

lib_modules_path
Sub-directory in the rocks_tree with the name system. This directory holds compiled Lua package libraries (.so files).

  lib_modules_path = "lib/lua/" .. LUAVERSION .. "/" .. LIBC

After installing a package/module that provides compiled libraries into the lib_modules_path directory edrc/lib/lua/lum/<OSID>/<major>.<minor>/lib/lua/<major>.<minor>/<GLIBC>/ ensure to manually create the related symbolic links in edrc/lib/lua/lum/<OSID>/<major>.<minor>/lib/lua/<major>.<minor>/ and edrc/lib/lua/lum/<OSID>/<major>.<minor>/lib/lua/<major>.<minor>/<GLIBC>/ to provide maximal portability.

variables
The variables section contain settings that point to several Lua components needed to build and install a Lua package.

  variables = {
      LUA_DIR     = APPROOT .. "/bin/" .. OSID;
      LUA_INCDIR  = APPROOT .. "/lib/" .. OSID .. "/includes";
      LUA_BINDIR  = APPROOT .. "/bin/" .. OSID .. "/" .. LIBC;
      LUA_LIBDIR  = APPROOT .. "/lib/" .. OSID .. "/" .. LIBC .. "libs";
      LUA_VERSION = LUAVERSION;
      LUA         = APPROOT .. "/bin/" .. OSID .. "/" .. LIBC .. "lua";
  }

 

SEE ALSO

edrcintro(1), approot(3), glibc.version(3), luaenv(3), luarocks(1), luaversion(3), lua_wrapper(1), osid(3), https://luarocks.org/, https://github.com/luarocks/luarocks/blob/main/docs/index.md

 

NOTES

-

 

BUGS

-

 

AUTHOR

luarocks.cfg was developed by Christian Walther. Send suggestions and bug reports to wa2l@users.sourceforge.net .

 

COPYRIGHT

Copyright © 2025 Christian Walther

This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 

Index

NAME
SYNOPSIS
AVAILABILITY
DESCRIPTION
FILEFORMAT
OPTIONS
SEE ALSO
NOTES
BUGS
AUTHOR
COPYRIGHT

This document was created by man2html using the manual pages.
Time: 21:10:39 GMT, April 16, 2025