I am an early MATLAB and C ++ user and am trying to provide some code to me. Code
The error I get is:
/ path / folder: error while loading the shared library: libboost_system-mt-1_49.so.1.49.0: Can not open shared object file: There is no such file or directory
The folder exists and the file that is trying to call is there I can not understand what this error is Libbybost Telling from the library?
If I want to provide any code that calls the folder, then let me know how much information is provided
I think you have solved the problem. Although I think it can still be useful for putting some signals here because without getting the answer, I get many posts to ask the same question.
The solution is to add the library path to your system environment variable. Unfortunately it does not help setting out of matlab (I mean that .bashrc
is edited in Ubuntu etc .)
To read the environment variables correctly and use the functions of Matlab: getenv ()
and setenv (). Suppose that the library is located on file:
/ home / username / lib /
, so you have to type in your MetLab script:
setenv ('LD_LIBRARY_PATHI'm using linux, however, I think you can solve the same problem in other OS'. ',' Linux '.
No comments:
Post a Comment