<div dir="ltr">Hi, <div><br></div><div style>/usr/local/bin being before /usr/bin in the path, the cmake located locate there will be used. </div><div style>See also:</div><div style>  <a href="http://unix.stackexchange.com/questions/8656/usr-bin-vs-usr-local-bin-on-linux">http://unix.stackexchange.com/questions/8656/usr-bin-vs-usr-local-bin-on-linux</a></div>

<div style><br></div><div style><br></div><div style>The use of &quot;which&quot; can also be helpful. See <a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?which">http://unixhelp.ed.ac.uk/CGI/man-cgi?which</a></div><div style>

<br></div><div style><br></div><div style>Hth</div><div style>Jc</div><div style>  </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 20, 2013 at 3:58 PM, Alain Aupeix <span dir="ltr">&lt;<a href="mailto:alain.aupeix@wanadoo.fr" target="_blank">alain.aupeix@wanadoo.fr</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Le 20/02/2013 21:35, Jean-Christophe
      Fillion-Robin a écrit :<br>
    </div><div class="im">
    <blockquote type="cite">
      <div dir="ltr">Hi Alain, 
        <div><br>
        </div>
        <div>Instead, in a terminal you could simply do the
          following:</div>
        <div><br>
        </div>
        <div><font face="courier new, monospace"> cd &amp;&amp;
            mkdir Support &amp;&amp; cd Support &amp;&amp; \</font></div>
        <div><font face="courier new, monospace"> wget <a href="http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Linux-i386.tar.gz" target="_blank">http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Linux-i386.tar.gz</a>
            &amp;&amp; \</font></div>
        <div><font face="courier new, monospace"> tar -xzvf
            cmake-2.8.10.2-Linux-i386.tar.gz &amp;&amp; \</font></div>
        <div><font face="courier new, monospace">./cmake-2.8.10.2-Linux-i386/bin/cmake
            -version</font></div>
        <div><br>
        </div>
        <div>This will create a directory named &quot;Support&quot; in
          your home folder, download and extract CMake 2.8.10. Finally
          it invokes cmake with the &quot;-version&quot; param to check that cmake
          run.</div>
        <div><br>
        </div>
        <div>You can then create symlinks into your
          /usr/local/bin folder to ensure you could simply call cmake,
          ctest, ...  without having to specify the full path.</div>
        <div><br>
        </div>
        <div>
          <font face="courier new, monospace">sudo ln -s
            ~/Support/cmake-2.8.10.2-Linux-i386/bin/cmake
            /usr/local/bin/cmake &amp;&amp; \</font></div>
        <div><font face="courier new, monospace">sudo ln -s
            ~/Support/cmake-2.8.10.2-Linux-i386/bin/ccmake /usr/local/bin/ccmake
            &amp;&amp; \<br>
          </font></div>
        <div><font face="courier new, monospace">sudo ln -s
            ~/Support/cmake-2.8.10.2-Linux-i386/bin/cpack /usr/local/bin/cpack
            &amp;&amp; \<br>
          </font></div>
        <div><font face="courier new, monospace">sudo ln -s
            ~/Support/cmake-2.8.10.2-Linux-i386/bin/ctest /usr/local/bin/ctest<br>
          </font></div>
        <div><br>
        </div>
        <div>Hth</div>
        <div>Jc</div>
      </div>
      <div class="gmail_extra"><br>
      </div>
    </blockquote></div>
    Thanks, I see what you want me to do, but I have another question:<br>
    <br>
    Actually, cmake is in /usr/bin<br>
    If I put my symlink in /usr/local/bin, which version will be used ?
    <br>
    Is there an order to execute programs in path ? /usr/local/bin
    before /usr/bin ?<div class="im"><br>
    <br>
    A+<br>
    <div>-- <br>
      <hr>
      Alain Aupeix<br>
      <a href="http://jujuland.pagesperso-orange.fr/" target="_blank">http://jujuland.pagesperso-orange.fr/</a><br>
      <a href="http://pissobi-lacassagne.pagesperso-orange.fr/" target="_blank">http://pissobi-lacassagne.pagesperso-orange.fr/</a>
      <hr>
      U.buntu 12.04 | G.ramps 3.5.0-0.SVN20055 | H.arbour 3.2.0dev (Rev
      18833) | HbIDE (Rev.168)
      <hr></div>
  </div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br>
</div>