Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Failed finding Lua library. You may need to configure LUA_LIBDIR. #258

Open
c0pypasten1nja opened this issue Jul 13, 2018 · 1 comment

Comments

@c0pypasten1nja
Copy link

Hello there

Error: Failed finding Lua library. You may need to configure LUA_LIBDIR.

Many thanks in advance for your time and advice.

C:\distro>install.bat
+++++++ Torch7 will be installed under C:\distro.\install with luajit-2.1, vs14 x86
+++++++ Bin: C:\distro.\install\bin
+++++++ Lib: C:\distro.\install\lib
+++++++ Inc: C:\distro.\install\include
INFO: Could not find files for the given pattern(s).
+++++++ Createing conda environment 'torch-vc14' for Torch7 dependencies

CondaValueError: prefix already exists: C:\Users\lihre\Anaconda2\envs\torch-vc14

+++++++ Git clone luarocks for its tools
+++++++ Installing luajit-2.1
minilua.c
Creating library minilua.lib and object minilua.exp
buildvm.c
buildvm_asm.c
buildvm_fold.c
buildvm_lib.c
buildvm_peobj.c
Generating Code...
Creating library buildvm.lib and object buildvm.exp
lj_alloc.c
lj_api.c
lj_asm.c
lj_bc.c
lj_bcread.c
lj_bcwrite.c
lj_buf.c
lj_carith.c
lj_ccall.c
lj_ccallback.c
lj_cconv.c
lj_cdata.c
lj_char.c
lj_clib.c
lj_cparse.c
lj_crecord.c
lj_ctype.c
lj_debug.c
lj_dispatch.c
lj_err.c
Generating Code...
Compiling...
lj_ffrecord.c
lj_func.c
lj_gc.c
lj_gdbjit.c
lj_ir.c
lj_lex.c
lj_lib.c
lj_load.c
lj_mcode.c
lj_meta.c
lj_obj.c
lj_opt_dce.c
lj_opt_fold.c
lj_opt_loop.c
lj_opt_mem.c
lj_opt_narrow.c
lj_opt_sink.c
lj_opt_split.c
lj_parse.c
lj_profile.c
Generating Code...
Compiling...
lj_record.c
lj_snap.c
lj_state.c
lj_str.c
lj_strfmt.c
lj_strfmt_num.c
lj_strscan.c
lj_tab.c
lj_trace.c
lj_udata.c
lj_vmevent.c
lj_vmmath.c
lib_aux.c
lib_base.c
lib_base.c(302): warning C4146: unary minus operator applied to unsigned type, result still unsigned
lib_bit.c
lib_debug.c
lib_ffi.c
lib_init.c
lib_io.c
lib_jit.c
Generating Code...
Compiling...
lib_math.c
lib_os.c
lib_package.c
lib_string.c
lib_table.c
Generating Code...
Creating library lua51.lib and object lua51.exp
luajit.c
Creating library luajit.lib and object luajit.exp

=== Successfully built LuaJIT for Windows/x86 ===
jit.gitignore
jit\bc.lua
jit\bcsave.lua
jit\dis_arm.lua
jit\dis_arm64.lua
jit\dis_arm64be.lua
jit\dis_mips.lua
jit\dis_mips64.lua
jit\dis_mips64el.lua
jit\dis_mipsel.lua
jit\dis_ppc.lua
jit\dis_x64.lua
jit\dis_x86.lua
jit\dump.lua
jit\p.lua
jit\v.lua
jit\vmdef.lua
jit\zone.lua
18 file(s) copied.
1 file(s) copied.
luajit.exe
1 file(s) copied.
lua51.dll
1 file(s) copied.
buildvm.lib
lua51.lib
luajit.lib
minilua.lib
4 file(s) copied.
1 file(s) copied.
1 file(s) copied.
1 file(s) copied.
1 file(s) copied.
+++++++ Installing luarocks
LuaRocks 3.0.x installer.

========================
== Checking system... ==

Attempting to install without admin privileges...
Looking for Lua interpreter
checking C:\distro.\install
Found luajit.exe, testing it...
Interpreter found, now looking for link libraries...
checking for C:\distro.\install\lua5.1.lib
checking for C:\distro.\install\lua51.lib
checking for C:\distro.\install\lua5.1.dll
checking for C:\distro.\install\lua51.dll
checking for C:\distro.\install\liblua.dll.a
checking for C:\distro.\install\lib\lua5.1.lib
checking for C:\distro.\install\lib\lua51.lib
Found lua51.lib
Link library found, now looking for headers...
checking for C:\distro.\install\include\lua\5.1\lua.h
checking for C:\distro.\install\include\lua51\lua.h
checking for C:\distro.\install\include\lua5.1\lua.h
checking for C:\distro.\install\include\lua.h
Found lua.h
Headers found, checking runtime to use...
C:\distro.\install\bin\lua51.dll uses VCRUNTIME140.DLL as runtime
Runtime check completed.
Looking for Microsoft toolchain matching runtime VCRUNTIME140 and architecture x86
checking: HKLM\Software\Microsoft\VisualStudio\14.0\Setup\VC
Found: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\

==========================
== System check results ==

Will configure LuaRocks with the following paths:
LuaRocks : C:\distro.\install\luarocks
Config file : C:\distro.\install\luarocks\config-5.1.lua
Rocktree : C:\distro.\install\luarocks\systree

Lua interpreter : C:\distro.\install\bin\luajit.exe
binaries : C:\distro.\install\bin
libraries : C:\distro.\install\lib
includes : C:\distro.\install\include
architecture: x86
binary link : lua51.lib with runtime VCRUNTIME140.dll

Compiler : Microsoft, using; call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\vcvars32.bat"

============================
== Installing LuaRocks... ==

Removing C:\distro.\install\luarocks...

Installing LuaRocks in C:\distro.\install\luarocks...
Created LuaRocks command: C:\distro.\install\luarocks\luarocks.bat
Created LuaRocks command: C:\distro.\install\luarocks\luarocks-admin.bat

Configuring LuaRocks...


*** WARNING *** LuaRocks site_config file already exists: 'site_config_5_1.lua'. The old file has been renamed to 'site_config_5_1.lua.bak3'


Created LuaRocks site-config file: C:\distro.\install\luarocks\lua\luarocks\core\site_config_5_1.lua


*** WARNING *** LuaRocks config file already exists: 'C:\distro.\install\luarocks\config-5.1.lua'. The old file has been renamed to 'config-5.1.lua.bak3'


Created LuaRocks config file: C:\distro.\install\luarocks\config-5.1.lua

Creating rocktrees...
Created system rocktree : "C:\distro.\install\luarocks\systree"
Local user rocktree exists : "C:\Users\lihre\AppData\Roaming\LuaRocks"

============================
== LuaRocks is installed! ==

You may want to add the following elements to your paths;
Lua interpreter;
PATH : C:\distro.\install\bin
PATHEXT : .LUA
LuaRocks;
PATH : C:\distro.\install\luarocks
LUA_PATH : C:\distro.\install\luarocks\lua?.lua;C:\distro.\install\luarocks\lua?\init.lua
Local user rocktree (Note: %APPDATA% is user dependent);
PATH : %APPDATA%\LuaRocks\bin
LUA_PATH : %APPDATA%\LuaRocks\share\lua\5.1?.lua;%APPDATA%\LuaRocks\share\lua\5.1?\init.lua
LUA_CPATH: %APPDATA%\LuaRocks\lib\lua\5.1?.dll
System rocktree
PATH : C:\distro.\install\luarocks\systree\bin
LUA_PATH : C:\distro.\install\luarocks\systree\share\lua\5.1?.lua;C:\distro.\install\luarocks\systree\share\lua\5.1?\init.lua
LUA_CPATH: C:\distro.\install\luarocks\systree\lib\lua\5.1?.dll

Note that the %APPDATA% element in the paths above is user specific and it MUST be replaced by its actual value.
For the current user that value is: C:\Users\lihre\AppData\Roaming.

+++++++ Installing wineditline for trepl package
File 'wineditline.zip' already there; not retrieving.
ERROR: wineditline.zip
Can not open the file as archive

The directory name is invalid.
CMake Error: The source directory "C:/distro/win-files/3rd" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
+++++++ Installing dlfcn-win32 for thread package
-- The C compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/distro/win-files/3rd/dlfcn-win32/build

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.

Scanning dependencies of target dl
[ 50%] Building C object CMakeFiles/dl.dir/dlfcn.c.obj
dlfcn.c
[100%] Linking C shared library dl.dll
Creating library dl.lib and object dl.exp
[100%] Built target dl
Install the project...
-- Install configuration: "Release"
-- Installing: C:/distro/win-files/3rd/dlfcn-win32/lib/dl.lib
-- Installing: C:/distro/win-files/3rd/dlfcn-win32/bin/dl.dll
-- Installing: C:/distro/win-files/3rd/dlfcn-win32/include/dlfcn.h
-- Installing: C:/distro/win-files/3rd/dlfcn-win32/share/dlfcn-win32/dlfcn-win32-targets.cmake
-- Installing: C:/distro/win-files/3rd/dlfcn-win32/share/dlfcn-win32/dlfcn-win32-targets-release.cmake
-- Installing: C:/distro/win-files/3rd/dlfcn-win32/share/dlfcn-win32/dlfcn-win32-config.cmake
C:\distro.\win-files\3rd\dlfcn-win32\bin\dl.dll
1 file(s) copied.
+++++++ Downloading graphviz for graph package
File 'graphviz-2.38_x64.tar.gz' already there; not retrieving.

7-Zip 18.01 (x86) : Copyright (c) 1999-2018 Igor Pavlov : 2018-01-28

Scanning the drive for archives:
1 file, 14725733 bytes (15 MiB)

Extracting archive: graphviz-2.38_x64.tar.gz

Path = graphviz-2.38_x64.tar.gz
Type = gzip
Headers Size = 32

Everything is Ok

Size: 93288960
Compressed: 14725733
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\acyclic.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\ANN.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\bcomps.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\cairo.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\ccomps.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\cdt.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\cgraph.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\config6
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\diffimg.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\dijkstra.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\dot.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\dotty.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\edgepaint.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\fontconfig.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gc.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gd.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\glib-2.0.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gml2gv.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gmodule-2.0.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gobject-2.0.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\graphml2gv.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gts-0.7.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gv2gml.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvc.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvcolor.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvedit.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvgen.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvmap.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvpack.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvplugin_core.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvplugin_dot_layout.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvplugin_gd.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvplugin_gdiplus.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvplugin_neato_layout.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvplugin_pango.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gvpr.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\gxl2gv.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\harfbuzz.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\iconv.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\jpeg.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\lefty.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\libexpat.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\libexpatw.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\LibFontConfig.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\libiconv.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\libintl.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\lneato.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\ltdl.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\mingle.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\mm2gv.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\nop.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\pango-1.0.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\pangocairo-1.0.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\pangoft2-1.0.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\pangowin32-1.0.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\Pathplan.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\pixman-1.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\prune.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\sccmap.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\tred.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\unflatten.exe
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\vmalloc.dll
C:\distro.\win-files\3rd\graphviz-2.38_x64\bin\zlib1.dll
63 file(s) copied.
+++++++ Creating torch-activate.cmd luajit.cmd luarocks.cmd cmake.cmd
+++++++ Setup succeed!
+++++++ Updating submodules
+++++++ Installing common lua packages

Error: Failed finding Lua library. You may need to configure LUA_LIBDIR.
+++++++ Installation error!

@jainal09
Copy link

Thank me later!
Use this docker file for torch installation!
https://github.com/runwayml/alpha_models/blob/master/densecap/Dockerfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants