Try DigitalOcean free for up to two months!

Intel® C++ Studio XE on Linux: For FREE

Discussion in 'Linux Other' started by ryanvade, May 20, 2014.

  1. ryanvade

    ryanvade Administrator Staff Member Staff Writer

    Aug 4, 2012
    Likes Received:
    Time for another article.
    Ubuntu 14.04 LTS is the focus of this article. I will add Fedora later on.

    What is this C++ Studio XE?
    Well directly from Intel...
    To learn more: Intel Composer

    ICC is a compiler for Intel systems. The Composer XE packaged also includes some very interesting libraries and parallel tools.


    Well beyond personal preference, the only other reason to use Composer XE is the libraries and Intel specific optimization. And, of course, the price. Why not try it?

    Getting Started: Registering

    To use Intel C++ Studio XE for Linux for free, users must register with Intel. Not a bad catch since the software sells for over $1600 per license.

    Head to this page to register:

    For a full list of free Software Development tools available for Linux users from Intel take a look at this page:

    I recommend registering on the Intel Software Development website as well:

    Getting Started: Dependencies

    For Ubuntu 14.04 LTS there are a few dependencies that need to be installed. However, like other compilers and libraries the architecture matters. So, the following instructions are for 64bit Ubuntu. 32bit users can tweak these instructions accordingly.

    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install build-essential libc6:i386 libstdc++6:i386 
    Download the installer:


    *note wget works just fine instead of aria2. I just prefer aria2. This WILL take a while. On my 60 up/60 down FiO connection it took over two hours. There is also an online installer:

    **Links for the installers will be found in the email sent from Intel after you register as well.

    Once the archive file has finished downloading it is time to install.
    tar xzvf cpp_studio_xe_2013_sp1_update2.tgz
    cd cpp_studio_xe_2013_sp1_update2
    sudo bash ./

    The installer should take care of the rest. You MUST register the product using the serial number you received in the registration email. The installer will ask you for it.

    If you need to install the studio without the graphical installer, use this command:

    sudo ./ --cli-mode

    Post Installation Setup:

    The installer places all the files in /opt/intel but does not modify your PATH or LD_LIBRARY path. So running

    Right after installation does not work. In order to have access to icc from any directory you must add it to your path.

    gksudo gedit /etc/profile

    Either edit or add the following:

    Export PATH
    And in order to use the built in libraries you must edit the LD_LIBRARY_PATH as follows(same file):

    export LD_LIBRARY_PATH
    There are manpages installed for the software suit, however they are not in the MANPATH. To add them:
    export MANPATH
    Now save the file and logout/login. I recommend rebooting completely just to be safe.

    Using the software:
    The easiest way I have found is with Code::Blocks. When creating a new project choose Intel C/C++ compiler. Then go to Settings --> Compiler --> Choose Intel C/C++ from the drop down --> Toolchain Executlables tab and set the Compilser's Installation Directory to /opt/intel/composerxe/
    Command line compiling is also available just like with gcc. I also believe other IDEs should be able to use ICC and IDB. Eclipse should be able to with the C/C++ addons. For a full list of options for ICC use the man page:
    man icc
    Sample code is available here:
    and here:

    ***Note: Code::Blocks may give this error:
    icpc: error : #10236 : File not found : '/EHs'
    icpc: error : #10236 : File not found : '/Zi'
    when building. A solution is available here.
    Basically: Build Options --> Compiler Settings --> Other Options and remove /Zi

    For a list of other compilers and IDE's for Linux check out this article by @DevynCJohnson

    Attached Files:

    Last edited: May 30, 2014
    MikeyD, Mitt Green and DevynCJohnson like this.

Share This Page