0

I downloaded liblbfgs from here and compiled the sample code from its document with

g++ sample.cpp -o sample -llbfgs

Then I run

./sample

But it says

./sample: error while loading shared libraries: 
liblbfgs-1.10.so: cannot open shared object file: No such file or directory

Are there any extra flags that I have to add? Thanks!!

user2684645
  • 501
  • 1
  • 7
  • 14

1 Answers1

0

Solution for similar problem is discussed here. You may have to do ldconfig, as you have recently installed a shared library.

Community
  • 1
  • 1
SKPS
  • 4,404
  • 3
  • 21
  • 50