Hi,
   I've a Ubuntu 8.04.1 Linux machine and cmake version 2.4-patch 7 in /usr/bin/
Due to project requirement, I installed cmake version 2.6-patch 4 under 
/usr/local/

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
to invoke cmake version 2.6 should explicitly use the full path.
To ensure this I renamed the cmake 2.6 executable under /usr/local/bin/cmake to
/usr/local/bin/cmake-2.6

But this renaming is causing problems as follows.

r...@linux:/usr/local/bin#  ./cmake-2.6 --version
CMake Error: CMake executable cannot be found at /usr/local/bin/cmake
Segmentation fault

mla...@linux:~/bld] /usr/local/bin/cmake-2.6 ..
CMake Error: CMake executable cannot be found at /usr/local/bin/cmake
CMake Error: Error executing cmake::LoadCache(). Aborting.

I did the renaming so that plain 'cmake' always refers to version 2.4 under 
/usr/bin
irrespective of PATH setting.

What could be the reason for choosing above behaviour by cmake implementors ?

Thank you,
Mahendra




      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to