<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br> I've a Ubuntu 8.04.1 Linux machine and cmake version 2.4-patch 7 in /usr/bin/<br>Due to project requirement, I installed cmake version 2.6-patch 4 under /usr/local/<br><br>I want to make sure that when I or other users execute cmake, by default it's always the 2.4 version in /usr/bin/cmake irrespective of PATH env var settings. Those who want<br>to invoke cmake version 2.6 should explicitly use the full path.<br>To ensure this I renamed the cmake 2.6 executable under /usr/local/bin/cmake to<br>/usr/local/bin/cmake-2.6<br><br>But this renaming is causing problems as follows.<br><br>root@linux:/usr/local/bin# ./cmake-2.6 --version<br>CMake Error: CMake executable cannot be found at /usr/local/bin/cmake<br>Segmentation fault<br><br>mladhe@linux:~/bld] /usr/local/bin/cmake-2.6 ..<br>CMake Error: CMake executable cannot be found at
/usr/local/bin/cmake<br>CMake Error: Error executing cmake::LoadCache(). Aborting.<br><br>I did the renaming so that plain 'cmake' always refers to version 2.4 under /usr/bin<br>irrespective of PATH setting.<br><br>What could be the reason for choosing above behaviour by cmake implementors ?<br><br>Thank you,<br>Mahendra<br><br></td></tr></table><br>
<!--1--><hr size=1></hr>
The INTERNET now has a personality. YOURS! <a href="http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/" target="_blank">See your Yahoo! Homepage</a>.