Why do I get an error message about ‘libmwdastudio.so’ when I try to export my figure to file using MATLAB 7.7 (R2008b)?
5 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2009-12-30
编辑: MathWorks Support Team
2017-1-17
When I try to export my figure to a PNG file, I get the following error message:
MATLAB:dispatcher:loadLibrary Can't reload '/local1/matlab/bin/glnxa64/libmwdastudio.so':libXfixes.so.3: cannot open shared object file: No such file of directory
Caught MathWorks::System::FatalException
采纳的回答
MathWorks Support Team
2017-1-17
Please make sure that all the required libraries are installed on your system.
We have noticed that in some instances, ‘libXfixes.so.3’ library is missing in Suse Linux Enterprise 9 installations.
It is likely that MATLAB does not support XFree86.
To resolve the error messages regarding ‘libXfixes.so.3’:
1) Check if the file ‘libXfixes.so.3’ exists on the system. Since it could be just a symbolic link to another file, use “ls –l” to see if it is a link, and if so, whether it points to the real file.
Additionally, you can also approach this file check by navigating to the $MATLABROOT /bin/glnxa64/ directory and see what files ‘libmwdastudio.so’ depends on using “ldd” on the system prompt:
ldd libmwdastudio.so
or
ldd libmwdastudio.so | grep libX
This will list the various libraries it depends on as well as where they’re located. The list may be dependent on the particular Linux distribution and/or X-windows version you have.
Here $MATLABROOT is the MATLAB root directory which can be obtained by executing the following at the MATLAB command prompt:
matlabroot
2) If the file ‘libXfixes.so.3’ is missing and you do not use Simulink/DA studio, a temporary work around to “fix” the figure exporting issue is to modify ‘isslhandle.m’. ‘isslhandle.m’ is located at:
$MATLABROOT /toolbox/matlab/graphics/private/isslhandle.m.
In ‘isslhandle.m’, find the line
isSL = ishandle(h);
and replace it with
isSL = ishandle(h) && ~ishghandle(h);
This issue also came up on a Rock Cluster 4.3:
MATLAB R2008b (and presumably future versions) require the 64-bit version of the library xorg-x11-Mesa-libGLU-6.8.2-1.EL.18.i386 to be installed to save various graphics file formats.
Adding
package>xorg-x11-Mesa-libGLU</package
to /home/install/site-profiles/4.3/nodes/extend-compute.xml and reinstalling the nodes solved the problem. This forces the 64-bit library to be installed.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!