soumith / torch-ship-binaries

A page describing how to ship torch binaries without sharing the source code of your scripts.
17 stars 0 forks source link

Can not load "libtorch.so" #4

Open nejyeah opened 8 years ago

nejyeah commented 8 years ago

Recently, when i ship my binary code to other machine( Ubuntu ), it occurs a problem can not load "libtorch.so". So i debug:

install/bin/luajit -e 'ffi=require "ffi"; ffi.load("install/lib/lua/5.1/libtorch.so")'

It shows that "can not find libopenblas.so.0". I found there is no openblas in the target machine, so i solved my problem to install openblas.

sudo apt-get install -y libopenblas-dev liblapack-dev

I hope it may help others who meet the same problem.

soumith commented 8 years ago

Thank you! this is helpful.