Annoying Warning messages:

1 次查看(过去 30 天)
Chaman Singh Verma
Chaman Singh Verma 2016-11-20
Hello,
When I do anything on my machine (even when not using Matlab), I get the following very annoying message coming from Matlab.
/usr/bin/cmake: /usr/local/MATLAB/R2016b/bin/glnxa64/libcurl.so.4: no version information available (required by /usr/bin/cmake)
What is the best way to get rid of it ?
csv
  2 个评论
Image Analyst
Image Analyst 2016-11-20
What is your operating system? And can you explain how/why you get that message even when you're NOT using MATLAB? That seems strange since MATLAB is in the path of the file that some other program is trying to access. And what does "When I do anything on my machine" mean? You mean like even when you move the mouse or launch any program that error message spews out to the console window?
Chaman Singh Verma
Chaman Singh Verma 2016-11-24
Hello, I have given the MATLAB path in my bashrc file and even if my intention is not to use matlab and compile other codes the message from comes from the MATLAB path. Usually I disable MATLAB path from the .bashrc file to get rid of the messages, but switching on/off MATLAB path is not comfortable.

请先登录,再进行评论。

回答(1 个)

Chinmayi Lanka
Chinmayi Lanka 2016-11-23
编辑:Chinmayi Lanka 2016-11-23
MATLAB sets the LD_LIBRARY_PATH variable so that the libraries it ships with are at the top of the the linker's search path. In some cases the versions of libraries that MATLAB ships with are different from the ones expected by external applications.
To work around this, you can clear the LD_LIBRARY_PATH at the beginning of your "system" call. The method for doing this depends on your shell. For example, if you use tcsh you could use
origLD = getenv('LD_LIBRARY_PATH');
setenv('LD_LIBRARY_PATH','');
Perform your other operations and set the environment variable before starting MATLAB. setenv('LD_LIBRARY_PATH',origLD);

类别

Help CenterFile Exchange 中查找有关 Software Development Tools 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by