Git Product home page Git Product logo

Comments (10)

nagadomi avatar nagadomi commented on August 15, 2024

try upgrade luajit version to 2.0.4.
http://luajit.org/download.html

from waifu2x.

slayerduck avatar slayerduck commented on August 15, 2024

I'm already running 2.0.4

from waifu2x.

nagadomi avatar nagadomi commented on August 15, 2024

hmm.. seems turbo.lua failed to detecting your platform.
maybe following patch fixes this issue.
edit file: turbo/turbo/platform.lua (https://github.com/kernelsauce/turbo/blob/master/turbo/platform.lua#L30)

    __ABI32__ = false, -- true if your platform is i386
    __ABI64__ = true, -- true if your platform is x86-64

and reinstall.
if you need more support, please create a issue in turbo (https://github.com/kernelsauce/turbo)

from waifu2x.

slayerduck avatar slayerduck commented on August 15, 2024

After changing that and recompiling i get this:

/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/trepl/init.lua:363: /root/torch/install/share/lua/5.1/trepl/init.lua:363: /usr/local/share/lua/5.1/turbo/util.lua:351: Could not load libtffi_wrap
Please run makefile and ensure that installation is done correct.
stack traceback:
[C]: in function 'error'
/root/torch/install/share/lua/5.1/trepl/init.lua:363: in function 'require'
web.lua:4: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
[C]: at 0x004064d0

from waifu2x.

Saren-Arterius avatar Saren-Arterius commented on August 15, 2024

I am getting this (Could not load libtffi_wrap) too.

from waifu2x.

nagadomi avatar nagadomi commented on August 15, 2024

try

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
th web.lua

from waifu2x.

slayerduck avatar slayerduck commented on August 15, 2024

Works, can be closed thanks!

TIP for other people facing this issue: add the line export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib to your .bashrc

from waifu2x.

FantasyJXF avatar FantasyJXF commented on August 15, 2024

I met the error Could not load libtffi_wrap

try

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
th web.lua

This doesn't work on my case.

My Env:

  • CentOS 7.3
  • GPU V100 with driver 410.129
  • CUDA 10

After I install turbo with luarocks, the output is :

==== Installing libtffi_wrap ====
test -f libtffi_wrap.so && \
install -m 0755 libtffi_wrap.so /home/work/torch/install/lib/libtffi_wrap.so.2.1.0 && \
ldconfig -n /home/work/torch/install/lib && \
ln -sf libtffi_wrap.so.2.1.0 /home/work/torch/install/lib/libtffi_wrap.so
==== Successfully installed Turbo.lua 2.1.0 to /home/work/torch/install ====
Updating manifest for /home/work/torch/install/lib/luarocks/rocks
turbo 2.1-2 is now built and installed in /home/work/torch/install/ (license: Apache 2.0)

I notice that my libtffi_wrap.so was located in $HOME/torch/install/lib not /usr/lib

from waifu2x.

nagadomi avatar nagadomi commented on August 15, 2024

Run

~/torch/install/bin/torch-activate

This script adds ~/torch/install/lib to LD_LIBRARY_PATH.
Also, this script is registered in ~/.bashrc or ~/.zshrc when installing torch, so it will be automatically applied once you login again.

from waifu2x.

FantasyJXF avatar FantasyJXF commented on August 15, 2024

from waifu2x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.