필터 지우기
필터 지우기

matlab on WSL2 Licensing error: -9,57.

조회 수: 25 (최근 30일)
Fahad Hannan
Fahad Hannan 2023년 11월 20일
댓글: Fahad Hannan 2023년 11월 23일
Hello,
I have matlab R2021b installed on my wsl ubuntu 22.04 on windows 11. Everytime I turn on my PC and try to run matlab from the wsl ubuntu terminal, I get a licensing error. I looked online and people suggest this is due to the wsl having a dynamic mac address that changes every startup. I can resolve the issue by going through activation again using the command /usr/local/MATLAB/R2021b/bin/activate_matlab.sh. But the solution is temporary, I have to redo this everytime I turn my pc off and on.
Is there a more permenant solution available?
Thank you!

채택된 답변

Walter Roberson
Walter Roberson 2023년 11월 20일
  댓글 수: 1
Fahad Hannan
Fahad Hannan 2023년 11월 23일
Thanks, I had to scroll through the many different solutions to find one.
The newer versions of WSL2 do not have bond0 so I had to first create using the cmd: ip link add name bond0 type bond mode active-backup
Then added some commands in my .bashrc that would set the MAC address of bond0 upon boot.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by