matlab - error while loading shared libraries: libboost_system-mt-1_49.so.1.49.0 -


i'm beginner matlab , c++ user , trying run code provided me. code

the error is:

/path/folder: error while loading      shared libraries: libboost_system-mt-1_49.so.1.49.0: cannot open shared object    file: no such file or directory 

the folder exists , file it's trying call in there. don't understand error saying libboost library?

if need provide of code calls folder, let me know. not sure how info provide.

i assume have solved problem. see might still useful put hints here see many posts asking similar questions without being answered.

the solution add library path system environment variables. unfortunately not set outside matlab (i mean edit .bashrc in ubuntu etc.).

the correct way use matlab's functions of reading , setting environment variables: getenv() , setenv().

suppose library file located at: /home/username/lib/, need write in matlab scripts:

setenv('ld_library_path',[getenv('ld_library_path') ';/home/username/lib']);

i using linux, however, think solve problem in other oss.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -