codegen can't build the simplest demo

조회 수: 7 (최근 30일)
Xingwang Yong
Xingwang Yong 2021년 3월 22일
댓글: Xingwang Yong 2021년 6월 19일
I am using codegen to build the 1st example in its doc, i.e. mcadd.m, it did not work.
I am running Maltab2020a on CentOs 8.3. When I first install matlab, I ran into an error as described in here. I followed the advice there and managed to install matlab. But after installing, when I open coder, it says 'Bundle#290 start failed: /lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b' in the command window. When I try to build something, it keeps saying the error message. So I can not use coder.
I tried to delete the two aforementioned .so files, libcrypto.so.1.1 and libssl.so.1.1, from the bin path (/usr/local/......./bin/glnxa64), surprisingly I can open coder. But when I try to build mcadd.m, it errored and says 'FAILED: mcadd_mex.mexa64 , ............. /usr/bin/ld: cannot find -lstdc++'.
It is probably due to corrupted installtion. I reached out to Mathworks support, they suggest me to switch to other operating systems beacause CentOs is not offically supported by matlab or switch to a newer version of matlab.
Is there any way to fix this without switching OS or matlab version?

답변 (1개)

AnnQ
AnnQ 2021년 6월 18일
Hello,
I understand that you are having trouble usding MATLAB Coder in R2020a release on CentOS 8.3
This is a known issue on Red Hat based distributions including CentOS 8.2 and later. This is a link to the External Bug Report: https://www.mathworks.com/support/bugreports/2294497
This issue has been fixed in R2021a Update 1. If upgrading is not an option, you can try this workaround in a terminal:
LD_PRELOAD="/usr/lib64/libcrypto.so.1.1 /usr/lib64/libssl.so.1.1"
  댓글 수: 1
Xingwang Yong
Xingwang Yong 2021년 6월 19일
Thank you, Ann. I switched my OS to Debian, and it worked.
As for the LD_PRELOAD method, the Mathworks Support Team also suggest that, but it did not help. For me, switching to R2021a is not a good idea, since the new graphics system is considerably slow and buggy.

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

카테고리

Help CenterFile 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!

Translated by