Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running gnuplot from Matlab under Linux

Tags:

matlab

I am trying to run gnuplot directly from Matlab (running in Debian Linux), but I get the following error:

>> unix('gnuplot defaults_loan10.p');
gnuplot: /usr/local/MATLAB/R2011b/sys/os/glnx86/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/i386-linux-gnu/libwx_baseu-2.8.so.0)

Running gnuplot from the console works perfectly well. How can I fix it?

like image 595
Grzenio Avatar asked Mar 30 '26 22:03

Grzenio


1 Answers

That's because Matlab uses its own LD_LIBRARY_PATH

try to use the command setenv to set back this environment variable as you like.

For instance:

setenv('LD_LIBRARY_PATH','/usr/lib')

You can check the content of LD_LIBRARY_PATH befor and after by executing:

!echo $LD_LIBRARY_PATH
like image 58
Oli Avatar answered Apr 02 '26 13:04

Oli