How to fix a libcrypto.so.1.0.0 error?
18 views (last 30 days)
Show older comments
I am running MATLAB R2017b on a Ubuntu 16.04 machine. I ran a MATLAB script that sends a command to the system level. The command in this case is a shell script called clear.sh On the main processor, where MATLAB resides, clear.sh is a shell script that calls the clearfiles.sh script at three remote Linux based Raspberry Pi processors.
MATLAB script:
% call the clear.sh script on the home computer
% this script calls the clearfiles.sh script on all 3 remote processors
pathToScript = fullfile('/home/user/clear.sh');
cmdStr = [pathToScript];
system(cmdStr);
Using the bang (shell escape) also works from the MATLAB command prompt.
!./clear.sh
clear.sh script:
#!/bin/bash
# call the clearfiles.sh script on all three remote processors
cd /home/user
echo "call clearfiles.sh on processor 1"
sshpass -p "password" ssh pi@192.168.86.201 /home/pi/clearfiles.sh
echo "call clearfiles.sh on processor 2"
sshpass -p "password" ssh pi@192.168.86.202 /home/pi/clearfiles.sh
echo "call clearfiles.sh on processor 3"
sshpass -p "password" ssh pi@192.168.86.203 /home/pi/clearfiles.sh
echo "Finished clearing"
The first time I ran this I got an error on my MATLAB command window:
ssh: /usr/local/MATLAB/R2017b/bin/glnxa64/libcrypto.so.1.0.0: no version information available (required by ssh)
The error popped up twice on each of the remote processors. Though it still ran the scripts and cleared the files...
One suggestion on Ubuntu Stack Exchange said to delete or rename the crypto file. So I renamed it with a final suffix .bak No more error. Seems like a brute force way to fix it. Did I create a problem? Yes, there’s a problem. Now MATLAB does not start.
user@user-Precision-Tower-7910:~$ matlab
/usr/local/MATLAB/R2017b/bin/glnxa64/MATLAB: symbol lookup error: /usr/local/MATLAB/R2017b/bin/glnxa64/matlab_startup_plugins/connector/openssl_initializer/../../../../../bin/glnxa64/libssl.so.1.0.0: undefined symbol: EVP_idea_cbc
So I renamed the crypto file back again. Any suggestions on a better way to solve this?
0 Comments
Answers (2)
AM
on 27 Oct 2018
Hi, I am having the same annoying issue when executing a bash script from Matlab R2018b on Ubuntu 18.04. I need to access a remote machine via ssh and I get the libcrypto error. My current naïf solution is to unset LD_LIBRARY_PATH in the shell script before calling ssh, by adding
unset LD_LIBRARY_PATH
in the bash script. This way ssh runs normally for my case. Of course this is not a definitive solution, but so far I have not found a proper alternative on the web.
0 Comments
Clémence VAST
on 4 Feb 2019
Hi ! I had the same problem when starting matlab on my terminal.
I solved it permanently by changing the name of the libssl.so.1.0.0 file in the repertory matlab/bin/glnxa64.
Here is my code :
sudo mv /usr/local/matlab/bin/glnxa64/libssl.so.1.0.0 /usr/local/matlab/bin/glnxa64/tmp-libssl.so.1.0.0
It worked perfectly after this. I spent a long time searching for a solution that was really simple. Some users say it is possible to totally remove this file as well.
Bye !
3 Comments
Agnieszka Wegrzyn
on 28 Feb 2019
I have the same issue, even after renaming the file (I am working with Ubuntu 18.04 and Matlab2018b).
Giacomo Rebonato
on 31 Jan 2021
Same error, but I am using Matlab in a dotnet library.
If I set LD_LIBRARY_PATH Matlab works, but SSL is broken.
If I unset LD_LIBRARY_PATH SSL works, but Matlab doesn't anymore.
How come there is no support for this situation?
See Also
Categories
Find more on MATLAB Support Package for Raspberry Pi Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!