Cannot run findpeaks on Matlab 2018a with linux I get the following error "Can't load '/Applic.Z​IV/Matlab/​R2018a/bin​/glnxa64/l​ibmwdastud​io.so': libXcomposite.so.1: cannot open shared object file: No such file or directory"

I tried to run one function containing the findpeaks function on a server with linux and I always getting the same error while on Windows it works
"Can't load '/Applic.ZIV/Matlab/R2018a/bin/glnxa64/libmwdastudio.so': libXcomposite.so.1: cannot open shared object file: No such file or directory"
If i tried twice I get "Can't reload '/Applic.ZIV/Matlab/R2018a/bin/glnxa64/libmwcoder_types.so'"

Answers (1)

Hello Agustin,
There are some Linux operating systems that do not come with the necessary underlying components, so I'd first suggest ensuring you are using a supported operating system. I found a similar issue mentioned here.
Other people have run into similar issues with that particular library. I would suggest determining which package contains libXcomposite, and installing that so it is accessible to your system.
Hope this helps to get you started!
-Cam

3 Comments

Hello Cam,
Thanks, The linux that I was using was on a server that does not support graphic interface and I did not realize that findpeaks actually plot the peaks when the output argument is not given finally I removed from the findpeaks function the part related to plotting and it worked.
Ah, yeah, that could do it. I would suggest copying the findpeaks file into your own folder and modifying it, rather than modifying the installed version of findpeaks, just in case.
Would just requesting an output argument be enough to avoid the issue?
I did so, no it was not enough because it loaded the libraries for plotting even when you are not using them so I had to commet out everything that contained something related to the plotting

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!