lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Thanks, that sure is a lot of output but picking through everything seems ok, LUA_INCDIR points to "/usr/local/opt/lua/include/lua5.4" and lua.h is in there

macm1:lua peterhickman$ luarocks config
accept_unknown_fields = false
arch = "macosx-x86_64"
cache = {
   luajit_version_checked = true
}
cache_fail_timeout = 86400
cache_timeout = 60
check_certificates = false
cmake_generator = "Unix Makefiles"
config_files = {
   nearest = "/usr/local/etc/luarocks/config-5.4.lua",
   system = {
      file = "/usr/local/etc/luarocks/config-5.4.lua",
      found = true
   },
   user = {
      file = "/Users/peterhickman/.luarocks/config-5.4.lua",
      found = false
   }
}
connection_timeout = 30
deploy_bin_dir = "/usr/local/bin"
deploy_lib_dir = "/usr/local/lib/lua/5.4"
deploy_lua_dir = "/usr/local/share/lua/5.4"
deps_mode = "one"
disabled_servers = {}
export_path_separator = ":"
external_deps_dirs = {
   "/usr/local",
   "/usr",
   "/"
}
external_deps_patterns = {
   bin = {
      "?"
   },
   include = {
      "?.h"
   },
   lib = {
      "lib?.a",
      "lib?.so",
      "lib?.so.*"
   }
}
external_deps_subdirs = {
   bin = "bin",
   include = "include",
   lib = "lib"
}
external_lib_extension = "dylib"
fs_use_modules = true
gcc_rpath = true
home = "/Users/peterhickman"
home_tree = "/Users/peterhickman/.luarocks"
homeconfdir = "/Users/peterhickman/.luarocks"
hooks_enabled = true
lib_extension = "so"
lib_modules_path = "/lib/lua/5.4"
link_lua_explicitly = false
local_by_default = false
local_cache = "/Users/peterhickman/.cache/luarocks"
lua_extension = "lua"
lua_found = {
   lua_bindir = "/usr/local/opt/lua/bin",
   lua_dir = "/usr/local/opt/lua",
   lua_interpreter = "lua5.4",
   lua_version = "5.4"
}
lua_interpreter = "lua5.4"
lua_modules_path = "/share/lua/5.4"
lua_version = "5.4"
major_version = "3.7"
no_manifest = false
obj_extension = "o"
processor = "x86_64"
program_series = "3.7"
program_version = "3.7.0"
rocks_dir = "/usr/local/lib/luarocks/rocks-5.4"
rocks_servers = {
   {
      "https://luarocks.org",
      "https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/",
      "https://luafr.org/luarocks/",
      "http://luarocks.logiceditor.com/rocks"
   }
}
rocks_subdir = "/lib/luarocks/rocks-5.4"
rocks_trees = {
   {
      name = "user",
      root = "/Users/peterhickman/.luarocks"
   },
   {
      name = "system",
      root = "/usr/local"
   }
}
runtime_external_deps_patterns = {
   bin = {
      "?"
   },
   include = {
      "?.h"
   },
   lib = {
      "lib?.so",
      "lib?.so.*"
   }
}
runtime_external_deps_subdirs = {
   bin = "bin",
   include = "include",
   lib = "lib"
}
static_lib_extension = "a"
sysconfdir = "/usr/local/etc/luarocks"
target_cpu = "x86_64"
upload = {
   api_version = "1",
   server = "https://luarocks.org",
   tool_version = "1.0.0"
}
user_agent = "LuaRocks/3.7.0 macosx-x86_64"
variables = {
   AR = "ar",
   BUNZIP2 = "bunzip2",
   CC = "env MACOSX_DEPLOYMENT_TARGET=10.8 gcc",
   CFLAGS = "-O2 -fPIC",
   CHMOD = "chmod",
   CMAKE = "cmake",
   CP = "cp",
   CURL = "curl",
   CURLNOCERTFLAG = "-k",
   CVS = "cvs",
   FIND = "find",
   GIT = "git",
   GPG = "gpg",
   GUNZIP = "gunzip",
   HG = "hg",
   ICACLS = "icacls",
   LD = "env MACOSX_DEPLOYMENT_TARGET=10.8 gcc",
   LIBFLAG = "-bundle -undefined dynamic_lookup -all_load",
   LIB_EXTENSION = "so",
   LS = "ls",
   LUA = "/usr/local/opt/lua/bin/lua5.4",
   LUALIB = "liblua.a",
   LUA_BINDIR = "/usr/local/opt/lua/bin",
   LUA_DIR = "/usr/local/opt/lua",
   LUA_INCDIR = "/usr/local/opt/lua/include/lua5.4",
   LUA_LIBDIR = "/usr/local/opt/lua/lib",
   LUA_LIBDIR_FILE = "liblua.a",
   MAKE = "make",
   MD5 = "md5",
   MD5SUM = "md5sum",
   MKDIR = "mkdir",
   MKTEMP = "mktemp",
   OBJ_EXTENSION = "o",
   OPENSSL = "openssl",
   PWD = "pwd",
   RANLIB = "ranlib",
   RM = "rm",
   RMDIR = "rmdir",
   ROCKS_TREE = "/usr/local/lib/luarocks/rocks-5.4",
   RSYNC = "rsync",
   RSYNCFLAGS = "--exclude=.git -Oavz",
   SCP = "scp",
   SCRIPTS_DIR = "/usr/local/bin",
   SEVENZ = "7z",
   SSCM = "sscm",
   SVN = "svn",
   TAR = "tar",
   TEST = "test",
   TOUCH = "touch",
   UNZIP = "unzip -n",
   WGET = "wget",
   WGETNOCERTFLAG = "--no-check-certificate",
   ZIP = "zip"
}
web_browser = "open"
wrapper_suffix = ""

macm1:lua peterhickman$


On Tue, 20 Jul 2021 at 22:57, Hugo Musso Gualandi <hgualandi@inf.puc-rio.br> wrote:
To debug what is happening here, one thing you can do is run `luarocks
config` to see what version of Lua that Luarocks is using, and where it
is searching for header files.

In particular, the LUA and LUA_INCDIR variables in the config output.

-- Hugo