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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With