Linux compiler requirement

Maya is built on RHEL 6.5 which has a system default gcc 4.4.7 compiler.

Use the system default g++ compiler; or, if additional C++11 features are required, use Red Hat’s Developer Toolset 2.1.

To build on RHEL 6.5 with Red Hat DTS 2.1:

  1. Subscribe to the Red Hat Developer channel, and register your RHEL system via the RHN classic method.

    See https://access.redhat.com/site/documentation/en-US/Red_Hat_Developer_Toolset/2/html/User_Guide/sect-Red_Hat_Developer_Toolset-Subscribe.html .

  2. Install DTS 2.1.
    yum install devtoolset-2

For more information, see https://access.redhat.com/site/documentation/en-US/Red_Hat_Developer_Toolset/2/html/User_Guide/sect-Red_Hat_Developer_Toolset-Install.html.

To build on CentOS 6.5 with DTS 2.1, use CERN Scientific Linux 6 (SLC6):

  1. Save repository information as /etc/yum.repos.d/slc6-devtoolset.repo on your system:
    wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo

    For more information, see http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo.

  2. To install the developer toolset 2.1, run the following:
    yum install devtoolset-2

    For more information, see http://linux.web.cern.ch/linux/devtoolset/#dts21.

    NOTE:

    If the devtoolset-2 install produces an error indicating that the SL6 gpg key files cannot be found, you can workaround this issue by importing the file:

    rpm --import "http://pgp.mit.edu/pks/lookup?op=get&search=0x5E03FDE51D1E034B"

    If the devtoolset-2 install produces an error indicating mismatched systemtap-client/systemtap-runtimes, you can workaround this issue by temporarily removing the updated systemtap-runtime, as the base and updates may be out of sync.

  3. Once the DTS 2.1 package is installed, you can then enable the environment in a terminal shell and use the compiler as you normally would:

    Interactive:

    scl enable devtoolset-2 bash
    g++ -v

    In a bash script:

    source /opt/rh/devtoolset-2/enable
    g++ -v