필터 지우기
필터 지우기

How to fix a libcrypto.so.1.0.0 error?

조회 수: 20 (최근 30일)
CAROL GARRITTY
CAROL GARRITTY 2018년 6월 21일
댓글: Giacomo Rebonato 2021년 1월 31일
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?

답변 (2개)

AM
AM 2018년 10월 27일
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.

Clémence VAST
Clémence VAST 2019년 2월 4일
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
Agnieszka Wegrzyn
Agnieszka Wegrzyn 2019년 2월 28일
I have the same issue, even after renaming the file (I am working with Ubuntu 18.04 and Matlab2018b).
Giacomo Rebonato
Giacomo Rebonato 2021년 1월 31일
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?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by