rivella50 / talib-ruby

Ruby Wrapper for the Technical Analysis Library ta-lib
55 stars 31 forks source link

`require': libta_lib.so.0: cannot open shared object file: No such file or directory #9

Closed nurettin closed 10 years ago

nurettin commented 10 years ago

For those who encounter this error after having successfully built ta-lib,

You need to set your LD_LIBRARY_PATH to include the directory in which libta_lib.so.0 is present.

export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
ruby main.rb

or

LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" ruby main.rb