Grzenio
Grzenio

Reputation: 36679

Running gnuplot from Matlab under Linux

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?

Upvotes: 3

Views: 793

Answers (1)

Oli
Oli

Reputation: 16065

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

Upvotes: 3

Related Questions