在Linux下从Matlab运行gnuplot [英] Running gnuplot from Matlab under Linux

查看:147
本文介绍了在Linux下从Matlab运行gnuplot的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试直接从Matlab(在Debian Linux中运行)运行gnuplot,但是出现以下错误:

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)

从控制台运行gnuplot效果很好.我该如何解决?

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

推荐答案

这是因为Matlab使用了自己的LD_LIBRARY_PATH

That's because Matlab uses its own LD_LIBRARY_PATH

尝试使用命令setenv随意设置该环境变量.

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

例如:

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

您可以通过执行以下操作来检查LD_LIBRARY_PATH的内容:

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

!echo $LD_LIBRARY_PATH

这篇关于在Linux下从Matlab运行gnuplot的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆