<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">In a script, you would need to write something like:<div class="">scl enable devtoolset-3 “bash run_jobs.sh”</div><div class="">-Nathan<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 3, 2016, at 5:13 PM, Mark Ito <<a href="mailto:marki@jlab.org" class="">marki@jlab.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" class="">
  
  <div text="#000000" bgcolor="#FFFFFF" class="">
    This is what I meant by probably blowing up a few users...not
    everyone is going to remember to do all of these things...<br class="">
    <br class="">
    <div class="moz-cite-prefix">On 03/03/2016 05:04 PM, Curtis A. Meyer
      wrote:<br class="">
    </div>
    <blockquote cite="mid:3F8BD961-9F3A-4EB7-BA0E-103BAE6224A7@cmu.edu" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
      Hi Nathan,
      <div class=""><br class="">
      </div>
      <div class="">  I am just thinking about when we run jobs on
        farms. It is probably easy </div>
      <div class="">enough to do this, but it needs to be incorporated
        into submission </div>
      <div class="">scripts, etc….</div>
      <div class=""><br class="">
      </div>
      <div class="">Curtis<br class="">
        <div class="">
          <span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;">
            <div class="">
              <div class="">---------</div>
              <div class="">Curtis A. Meyer<span class="Apple-tab-span" style="white-space: pre; ">                   </span>MCS Associate
                Dean for Faculty and Graduate Affairs</div>
              <div class="">Wean:    (412) 268-2745<span class="Apple-tab-span" style="white-space: pre; "> </span>Professor
                of Physics</div>
              <div class="">Doherty: (412) 268-3090<span class="Apple-tab-span" style="white-space: pre; ">   </span>Carnegie
                Mellon University</div>
              <div class="">Fax:         (412) 681-0648<span class="Apple-tab-span" style="white-space: pre; ">   </span>Pittsburgh,
                PA 15213</div>
              <div class=""><a moz-do-not-send="true" href="mailto:curtis.meyer@cmu.edu" class="">curtis.meyer@cmu.edu</a><span class="Apple-tab-span" style="white-space: pre; ">  </span><a class="moz-txt-link-freetext" href="http://www.curtismeyer.com/">http://www.curtismeyer.com/</a></div>
            </div>
            <div class=""><br class="">
            </div>
          </span><br class="Apple-interchange-newline">
        </div>
        <br class="">
        <div class="">
          <blockquote type="cite" class="">
            <div class="">On Mar 3, 2016, at 4:33 PM, Nathan Sparks <<a moz-do-not-send="true" href="mailto:nsparks@jlab.org" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:nsparks@jlab.org">nsparks@jlab.org</a>> wrote:</div>
            <br class="Apple-interchange-newline">
            <div class="">
              <meta http-equiv="Content-Type" content="text/html;
                charset=utf-8" class="">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;" class="">Hi
                Curtis,
                <div class=""><br class="">
                </div>
                <div class="">When you run</div>
                <div class="">scl enable devtoolset-3 bash</div>
                <div class="">it sets up the environment for you in that
                  new bash shell. In case you want to examine it, the
                  environment script it sources is at</div>
                <div class="">/opt/rh/devtoolset-3/enable</div>
                <div class=""><br class="">
                </div>
                <div class="">Let me know if there appears to be any
                  issues with your setup.</div>
                <div class=""><br class="">
                </div>
                <div class="">-Nathan<br class="">
                  <div class="">
                    <blockquote type="cite" class="">
                      <div class="">On Mar 3, 2016, at 4:26 PM, Curtis
                        A. Meyer <<a moz-do-not-send="true" href="mailto:cmeyer@cmu.edu" class="">cmeyer@cmu.edu</a>>
                        wrote:</div>
                      <br class="Apple-interchange-newline">
                      <div class="">
                        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
                        <div style="word-wrap: break-word;
                          -webkit-nbsp-mode: space; -webkit-line-break:
                          after-white-space;" class="">Hi Nathan -
                          <div class=""><br class="">
                          </div>
                          <div class="">when you build something with
                            gcc-4.9 using scl tools, do you have to do
                            anything</div>
                          <div class="">special with your environment to
                            run the program, or does it know about the </div>
                          <div class="">correct path for shared
                            libraries?</div>
                          <div class=""><br class="">
                          </div>
                          <div class="">Curtis<br class="">
                            <div class="">
                              <span class="Apple-style-span" style="border-collapse: separate;
                                font-family: Helvetica; font-style:
                                normal; font-variant: normal;
                                font-weight: normal; letter-spacing:
                                normal; line-height: normal; orphans: 2;
                                text-align: -webkit-auto; text-indent:
                                0px; text-transform: none; white-space:
                                normal; widows: 2; word-spacing: 0px;
                                border-spacing: 0px;
                                -webkit-text-decorations-in-effect:
                                none; -webkit-text-stroke-width: 0px;">
                                <div class="">
                                  <div class="">---------</div>
                                  <div class="">Curtis A. Meyer<span class="Apple-tab-span" style="white-space: pre; ">                       </span>MCS Associate
                                    Dean for Faculty and Graduate
                                    Affairs</div>
                                  <div class="">Wean:    (412) 268-2745<span class="Apple-tab-span" style="white-space: pre; ">     </span>Professor
                                    of Physics</div>
                                  <div class="">Doherty: (412) 268-3090<span class="Apple-tab-span" style="white-space: pre; ">       </span>Carnegie
                                    Mellon University</div>
                                  <div class="">Fax:         (412)
                                    681-0648<span class="Apple-tab-span" style="white-space: pre; ">  </span>Pittsburgh,
                                    PA 15213</div>
                                  <div class=""><a moz-do-not-send="true" href="mailto:curtis.meyer@cmu.edu" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:curtis.meyer@cmu.edu">curtis.meyer@cmu.edu</a><span class="Apple-tab-span" style="white-space: pre; ">   </span><a moz-do-not-send="true" href="http://www.curtismeyer.com/" class=""></a><a class="moz-txt-link-freetext" href="http://www.curtismeyer.com/">http://www.curtismeyer.com/</a></div>
                                </div>
                                <div class=""><br class="">
                                </div>
                              </span><br class="Apple-interchange-newline">
                            </div>
                            <br class="">
                            <div class="">
                              <blockquote type="cite" class="">
                                <div class="">On Mar 3, 2016, at 10:37
                                  AM, Nathan Sparks <<a moz-do-not-send="true" href="mailto:nsparks@jlab.org" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:nsparks@jlab.org">nsparks@jlab.org</a>>
                                  wrote:</div>
                                <br class="Apple-interchange-newline">
                                <div class="">
                                  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
                                  <div style="word-wrap: break-word;
                                    -webkit-nbsp-mode: space;
                                    -webkit-line-break:
                                    after-white-space;" class="">Devtoolset-4
                                    is not yet available for CentOS, but
                                    it is available for RedHat.
                                    <div class=""><a moz-do-not-send="true" href="https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/4/html-single/4.0_Release_Notes/index.html" class=""></a><a class="moz-txt-link-freetext" href="https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/4/html-single/4.0_Release_Notes/index.html">https://access.redhat.com/documentation/en-US/Red_Hat_Developer_Toolset/4/html-single/4.0_Release_Notes/index.html</a></div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class="">Browsing the web, it
                                      looks like CentOS folks are
                                      working on packaging Devtoolset-4,
                                      and it should be available soon
                                      (within a month or so).</div>
                                    <div class="">-Nathan<br class="">
                                      <div class="">
                                        <blockquote type="cite" class="">
                                          <div class="">On Mar 3, 2016,
                                            at 6:27 AM, Curtis A. Meyer
                                            <<a moz-do-not-send="true" href="mailto:cmeyer@cmu.edu" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:cmeyer@cmu.edu">cmeyer@cmu.edu</a>>
                                            wrote:</div>
                                          <br class="Apple-interchange-newline">
                                          <div class="">
                                            <meta http-equiv="Content-Type" content="text/html;
                                              charset=utf-8" class="">
                                            <div style="word-wrap:
                                              break-word;
                                              -webkit-nbsp-mode: space;
                                              -webkit-line-break:
                                              after-white-space;" class="">I think that if
                                              you use the -4 versions
                                              and not the -3 versions,
                                              you get gcc-5
                                              <div class=""><br class="">
                                              </div>
                                              <div class="">curtis<br class="">
                                                <div class="">
                                                  <span class="Apple-style-span" style="border-collapse:
                                                    separate;
                                                    font-family:
                                                    Helvetica;
                                                    line-height: normal;
                                                    border-spacing:
                                                    0px;">
                                                    <div class="">
                                                      <div class="">---------</div>
                                                      <div class="">Curtis
                                                        A. Meyer<span class="Apple-tab-span" style="white-space: pre; ">                      </span>MCS Associate
                                                        Dean for Faculty
                                                        and Graduate
                                                        Affairs</div>
                                                      <div class="">Wean:
                                                           (412)
                                                        268-2745<span class="Apple-tab-span" style="white-space: pre; ">      </span>Professor
                                                        of Physics</div>
                                                      <div class="">Doherty:
                                                        (412) 268-3090<span class="Apple-tab-span" style="white-space: pre; ">        </span>Carnegie
                                                        Mellon
                                                        University</div>
                                                      <div class="">Fax:
                                                                (412)
                                                        681-0648<span class="Apple-tab-span" style="white-space: pre; ">      </span>Pittsburgh,
                                                        PA 15213</div>
                                                      <div class=""><a moz-do-not-send="true" href="mailto:curtis.meyer@cmu.edu" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:curtis.meyer@cmu.edu">curtis.meyer@cmu.edu</a><span class="Apple-tab-span" style="white-space: pre; ">       </span><a moz-do-not-send="true" href="http://www.curtismeyer.com/" class=""></a><a class="moz-txt-link-freetext" href="http://www.curtismeyer.com/">http://www.curtismeyer.com/</a></div>
                                                    </div>
                                                    <div class=""><br class="">
                                                    </div>
                                                  </span><br class="Apple-interchange-newline">
                                                </div>
                                                <br class="">
                                                <div class="">
                                                  <blockquote type="cite" class="">
                                                    <div class="">On Mar
                                                      2, 2016, at 10:50
                                                      PM, Nathan Sparks
                                                      <<a moz-do-not-send="true" href="mailto:nsparks@jlab.org" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:nsparks@jlab.org">nsparks@jlab.org</a>> wrote:</div>
                                                    <br class="Apple-interchange-newline">
                                                    <div class="">
                                                      <meta http-equiv="Content-Type" content="text/html;
                                                        charset=utf-8" class="">
                                                      <div style="word-wrap:
                                                        break-word;
                                                        -webkit-nbsp-mode:
                                                        space;
                                                        -webkit-line-break:
after-white-space;" class="">Hi All,
                                                        <div class=""><br class="">
                                                        </div>
                                                        <div class="">I
                                                          made a brief
                                                          guide on how
                                                          to install
                                                          gcc-4.9.2
                                                          using software
                                                          collections.
                                                          It follows the
                                                          instructions
                                                          from the link
                                                          provided by
                                                          Curtis.</div>
                                                        <div class=""><a moz-do-not-send="true" href="https://halldweb.jlab.org/wiki/index.php/Installing_a_Modern_GCC_Quickly_with_Software_Collections" class=""></a><a class="moz-txt-link-freetext" href="https://halldweb.jlab.org/wiki/index.php/Installing_a_Modern_GCC_Quickly_with_Software_Collections">https://halldweb.jlab.org/wiki/index.php/Installing_a_Modern_GCC_Quickly_with_Software_Collections</a></div>
                                                        <div class="">These
                                                          instructions
                                                          have been
                                                          tested by me
                                                          on CentOS 6,
                                                          but should
                                                          also work on
                                                          RHEL 6. </div>
                                                        <div class="">Please
                                                          let me know if
                                                          you have any
                                                          questions.</div>
                                                        <div class=""><br class="">
                                                        </div>
                                                        <div class="">Best
                                                          regards,</div>
                                                        <div class="">-Nathan<br class="">
                                                          <div class="">
                                                          <blockquote type="cite" class="">
                                                          <div class="">On
                                                          Mar 2, 2016,
                                                          at 9:50 PM,
                                                          Curtis A.
                                                          Meyer <<a moz-do-not-send="true" href="mailto:cmeyer@cmu.edu" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:cmeyer@cmu.edu">cmeyer@cmu.edu</a>> wrote:</div>
                                                          <br class="Apple-interchange-newline">
                                                          <div class="">
                                                          <div class="">This
                                                          looks like gcc
                                                          4.9 is
                                                          available as
                                                          part of the
                                                          devtoolset-3
                                                          packages as<br class="">
                                                          rpms for RHEL6
                                                          … The latter
                                                          link has
                                                          pretty simple
                                                          instructions
                                                          for both <br class="">
                                                          RHEL6 and
                                                          CENTOS6<br class="">
                                                          <br class="">
                                                          <a moz-do-not-send="true" href="https://rhn.redhat.com/errata/RHBA-2015-2026.html" class=""></a><a class="moz-txt-link-freetext" href="https://rhn.redhat.com/errata/RHBA-2015-2026.html">https://rhn.redhat.com/errata/RHBA-2015-2026.html</a><br class="">
                                                          <br class="">
                                                          <a moz-do-not-send="true" href="https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/" class=""></a><a class="moz-txt-link-freetext" href="https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/">https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/</a><br class="">
                                                          <br class="">
                                                          ---------<br class="">
                                                          Curtis A.
                                                          Meyer<span class="Apple-tab-span" style="white-space:pre">  </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>MCS
                                                          Associate Dean
                                                          for Faculty
                                                          and Graduate
                                                          Affairs<br class="">
                                                          Wean:    (412)
                                                          268-2745<span class="Apple-tab-span" style="white-space:pre">       </span>Professor
                                                          of Physics<br class="">
                                                          Doherty: (412)
                                                          268-3090<span class="Apple-tab-span" style="white-space:pre">       </span>Carnegie
                                                          Mellon
                                                          University<br class="">
                                                          Fax:
                                                                  (412)
                                                          681-0648<span class="Apple-tab-span" style="white-space:pre">       </span>Pittsburgh,
                                                          PA 15213<br class="">
                                                          <a moz-do-not-send="true" href="mailto:curtis.meyer@cmu.edu" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:curtis.meyer@cmu.edu">curtis.meyer@cmu.edu</a><span class="Apple-tab-span" style="white-space:pre">    </span><a moz-do-not-send="true" href="http://www.curtismeyer.com/" class=""></a><a class="moz-txt-link-freetext" href="http://www.curtismeyer.com/">http://www.curtismeyer.com/</a><br class="">
                                                          <br class="">
                                                          <br class="">
                                                          <br class="">
                                                          <br class="">
_______________________________________________<br class="">
                                                          Halld-offline
                                                          mailing list<br class="">
                                                          <a moz-do-not-send="true" href="mailto:Halld-offline@jlab.org" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:Halld-offline@jlab.org">Halld-offline@jlab.org</a><br class="">
                                                          <a moz-do-not-send="true" href="https://mailman.jlab.org/mailman/listinfo/halld-offline" class=""></a><a class="moz-txt-link-freetext" href="https://mailman.jlab.org/mailman/listinfo/halld-offline">https://mailman.jlab.org/mailman/listinfo/halld-offline</a><br class="">
                                                          </div>
                                                          </div>
                                                          </blockquote>
                                                          </div>
                                                          <br class="">
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </blockquote>
                                                </div>
                                                <br class="">
                                              </div>
                                            </div>
                                          </div>
                                        </blockquote>
                                      </div>
                                      <br class="">
                                    </div>
                                  </div>
                                </div>
                              </blockquote>
                            </div>
                            <br class="">
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br class="">
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br class="">
      </div>
    </blockquote>
    <br class="">
  </div>

</div></blockquote></div><br class=""></div></body></html>