In the past one could register at Intel and obtain a non-commercial licence for their C/C++ and Fortran compilers. Currently, you must download and install the software as well, amounting to several gigabytes. If your compiler is already installed, e.g. because it is part of your Linux distribution as in the case of Gentoo, here’s how to get the licence file without downloading too much data.
Register and download the installer script
- Go to Intel’s Non-Commercial Software Development page
- Choose the Intel Fortran or C++ Composer and accept the conditions
- Register with your email address and continue
- You will receive an email with a serial number, and a link to download the software — open that link in your browser
- Download the online installer script and save it. Whereas the whole package is several gigabytes, the online-installer script is only a few (tens of) kilobytes.
Run the installer script
- Run the installer script in a terminal as a normal user, e.g.:
$ chmod u+x l_ccompxe_online_etc.sh $ ./l_ccompxe_online_etc.sh
- Then:
- choose “install as current user”
- ignore the ‘unsupported OS’ message
- accept the licence agreement
- enter the serial number you obtained through email
- your licence file should now be in ~/intel/licenses/, where icc can find it
- optionally, move the file to e.g. /opt/intel/licenses/ (and give it root ownership)
- the licence is valid for a year
I tried this only for the C++ compiler, but I suspect that this works similarly for the Intel Fortran compiler.