Why do I receive MathWorks Licensing Error 5?

조회 수: 2,345 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2013년 8월 20일
편집: MathWorks Support Team 대략 23시간 전
Why do I receive the following error:
MathWorks Licensing Error 5
Unable to find a license for <PRODUCTNAME>.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2025년 12월 10일 0:00
편집: MathWorks Support Team 대략 19시간 전
There are multiple reasons why you might be receiving this error:
  • The product is not in the Network License Manager's license file
    • If you are not using a network license, then the product is not in your local license file
  • Formatting error within the license file on the Network License Manager
    • If you are not using a network license, then there could be a formatting error in your local license file.
  • Formatting error within the license file used by the client on network-based license
  • The client is pointing to a different Network License Manager than intended
    • If you are not using a network license, then you may not be using the license you are intending to use. If you are using multiple, make sure they are all setup correctly.

 

The product is not in the license file

This message usually indicates that you are trying to use a product for which you are not licensed. To verify if the product is licensed, you may inspect the license file (license.lic) located within your MATLAB installation to see if you are licensed to use this product. If you are using a network license, then you need to inspect the license file on the Network License Manager.
To determine where your license file is located, please refer to MATLAB Answer linked below.
Where can I find MATLAB license files?
If you only have a network.lic file, instead of a license.lic file, you are using a network license. In this case contact your license administrator to check the license.dat file on the License Manager server machine.

Formatting error within the license file on the Network License Manager

If you are licensed for this product, this error may be the result of formatting problems in your license file. In order to avoid this, ensure that the following strings all begin on a left justified line: #, SERVER, DAEMON, or INCREMENT. Sometimes an INCREMENT line can get wrapped on the end of the preceding INCREMENT line causing it to be omitted.
For Individual or Designated Computer licenses, you can also try to re-activate MATLAB to resolve the issue. That will automatically update the license file on your system.

Formatting error within the license file used by the client on network-based license

If the client on a network-based license is using a license file to point to the license server and that file is improperly formatted, then this can cause an error 5. If you're using a license.dat instead of network.lic, try using a network.lic instead. Additionally, make sure the SERVER information is correct, including the Host ID (likely MAC address.) If you're unsure how to make a network.lic from a license.dat file, see the MATLAB Answer linked below.
What does the format of the network.lic file look like?

A different license/Network License Manager than intended is being used

If the MathWorks Licensing Error 5 appears in an UNSUPPORTED line in a License Manager Log file and the hash code quoted in log line does not match the hash from the INCREMENT line from the current license file on the server, the client machine either:
  • Has an old license file on the MATLAB license path containing INCREMENT lines from a previous license. The old license file(s) should be removed.
  • Has INCREMENT lines in the network.lic file. The affected user should remove all INCREMENT lines from the network.lic.
  • Has an old MATLAB process running on their machine that was running while the license file on the server was updated. The user should kill the process to resolve the error.
  댓글 수: 1
Walter Roberson
Walter Roberson 2016년 8월 5일
편집: James 2023년 6월 9일
There is an oddity in Simulink that most varieties of fi objects require the Fixed Point Toolbox, but there are a couple of fi objects that do not require that toolbox. Because of that you can end up in the situation where your model has an fi object that does not need the toolbox. When you try to load that model Simulink would try to look for the toolbox anyhow, and will warn if it finds it.
This is a confusing design, and the documentation about this is confusing.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Manage Products에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R14SP2

Community Treasure Hunt

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

Start Hunting!

Translated by