Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-00589 // Views: 11661 // Created: 2010-03-15 05:00:00 // Last Updated: 2015-10-28 19:26:51
Q&A
Intel License Compilation Error (error #10052: could not check FLEXlm license)

Question

I am compiling on RedHat and I am getting an Intel License compilation error during the "Building the generated C code" part. It mentions that I have no such license. The error message is:

Error: A license for CCompL could not be obtained (-1,359,2).

Is your license file in the right location and readable?
The location of your license file should be specified via
the $INTEL_LICENSE_FILE environment variable.

License file(s) used were (in this order):
    1.  Trusted Storage
    2.  /opt/intel/Compiler/11.1/056/licenses
    3.  /opt/intel/licenses/*.lic
    4.  /intel/licenses
    5.  /opt/intel/Compiler/11.1/056/Licenses
    6.  /Users/Shared/Library/Application Support/Intel/Licenses

Please visit http://support.intel.com/support/performancetools/support.htm if you require technical assistance.

icc: error #10052: could not checkout FLEXlm license
make: *** [benchmark_rts_rt_1_sm_master.o] Error 1 

Answer

This error message indicates that there is no Intel license installed on your RedHat target. 

Some customer choose not to purchase the Intel license, if it is your case you need to deactivate the Intel compiler on RT-LAB by forcing the variable RTLAB_INTEL_COMPILER to 0 in the menu Window > Preferences as shown below.


If you purchased the Intel license, it is provided by Opal-RT at delivery and is already properly installed on a target. If this error occurs, it is possible to reinstall the license, which can be found on the CD delivered with your system. In order to install the license again:

1.Open a ftp connection to the target and copy the Intel license file found on the CD (please refer to this article: FTP connection with RT-LAB.

2.Open a telnet session on the target. Login as root.

3.Go to the /home/ntuser directory. You should find the license file you just copied.

4.Move the file to the /opt/intel/licenses directory with the following command: mv /home/ntuser/name_of_license /opt/intel/licenses

5.Reboot the target and try to compile your model again.