Torch7 Lua, error loading module 'libpaths' (Linux)

前端 未结 1 1323
广开言路
广开言路 2021-01-22 23:12

I am a new user to TORCH LDT. I have trouble loading module \'libpaths\' (on Ubuntu). The error log is:

相关标签:
1条回答
  • 2021-01-23 00:07

    This is how to configure torch + eclipse:

    1) Configure the Lua interpreter with torch:

    Go to Windows -> Preference -> Lua -> interpreter:

    • Interpreter Type : Lua 5.2

    • Interpreter executable : /opt/torch/install/bin/qlua (-> this is required to use qt features)

    • Interpreter name : Qt + Torch Interpreter arguments : -lenv -e "io.stdout:setvbuf('no'); if os.getenv('DEBUG_MODE') then require 'debugger' ; require 'debugger.plugins.ffi'end"

    • LinkedExecution argument : Lua 5.2

    2) Pick this interpreter as a default interpreter

    3) Also Working with an external interpreter, require that "LuaSocket" packet is installed, You will get a message error of "libsocket.so not found" when debugging if it is not installed

    To install LuaSocket, you may try :

    sudo luarocks install luasocket --only-server=http://luarocks.org/repositories/rocks-scm
    

    or

    sudo luarocks install luasocket
    

    or

    luarocks install luasocket
    

    Credits to STRUB Floriab

    0 讨论(0)
提交回复
热议问题