<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=160403520-08102007><FONT face=Arial 
color=#0000ff size=2>It looks like the exact same cmake is in both /bin and 
/usr/bin</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2>% md5sum 
/bin/cmake.exe /usr/bin/cmake.exe<BR>af465bc5ad9e6157a4898c476bfe62a3 
*/bin/cmake.exe<BR>af465bc5ad9e6157a4898c476bfe62a3 
*/usr/bin/cmake.exe<BR></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=160403520-08102007><FONT face=Arial 
color=#0000ff size=2>This would be expected given how cygwin sets up these 
directories:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><A 
href="http://cygwin.com/faq/faq.using.html#faq.using.directory-structure">http://cygwin.com/faq/faq.using.html#faq.using.directory-structure</A></FONT></DIV>
<DIV dir=ltr align=left><SPAN class=160403520-08102007><FONT face=Arial 
color=#0000ff size=2>( This FAQ is also&nbsp;titled: "<FONT 
face="Times New Roman" color=#000000 size=3>Why the weird directory 
structure?</FONT>" )</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=160403520-08102007><FONT face=Arial 
color=#0000ff size=2>Fred</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=160403520-08102007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff 
size=2></FONT>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> David Cole [mailto:david.cole@kitware.com] 
<BR><B>Sent:</B> Monday, October 08, 2007 4:30 PM<BR><B>To:</B> Wheeler, 
Frederick W (GE, Research)<BR><B>Cc:</B> cmake@cmake.org<BR><B>Subject:</B> Re: 
[CMake] RE: Cygwin cmake - Could not find CMAKE_ROOT<BR></FONT><BR></DIV>
<DIV></DIV>Sounds like the cmake located at "/bin/cmake" is stale/old, but it's 
in your path before the one from /usr/bin...<BR><BR>How did the one at 
"/bin/cmake" get there?<BR><BR>Maybe just deleting the cmake-related files under 
/bin and just using the officially installed ones in /usr/bin is the solution? 
<BR><BR><BR>
<DIV><SPAN class=gmail_quote>On 10/8/07, <B class=gmail_sendername>Wheeler, 
Frederick W (GE, Research)</B> &lt;<A 
href="mailto:wheeler@crd.ge.com">wheeler@crd.ge.com</A>&gt; wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">CMake 
  List:<BR><BR>Amitha and I figured out that I can run cygwin cmake if and only 
  if I<BR>use the full /usr/bin/cmake path.&nbsp;&nbsp;Neither /bin/cmake or 
  cmake work.<BR>This is good enough for me.&nbsp;&nbsp;I just want to report 
  this odd behavior. <BR><BR>Fred<BR><BR><BR>% cmake --version<BR>CMake Error: 
  Could not find CMAKE_ROOT !!!<BR>CMake has most likely not been installed 
  correctly.<BR>Modules directory not found in<BR>/bin<BR>Segmentation fault 
  (core dumped)<BR>% /bin/cmake --version<BR>CMake Error: Could not find 
  CMAKE_ROOT !!!<BR>CMake has most likely not been installed 
  correctly.<BR>Modules directory not found in<BR>/bin<BR>Segmentation fault 
  (core dumped)<BR>% /usr/bin/cmake --version <BR>cmake version 2.4-patch 
  7<BR><BR>% 
  df<BR>Filesystem&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  1K-blocks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Used Available Use% Mounted 
  on<BR>C:\cygwin\bin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  27318532&nbsp;&nbsp;22716916&nbsp;&nbsp; 4601616&nbsp;&nbsp;84% 
  /usr/bin<BR>C:\cygwin\lib&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  27318532&nbsp;&nbsp;22716916&nbsp;&nbsp; 4601616&nbsp;&nbsp;84% /usr/lib 
  <BR>C:\cygwin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  27318532&nbsp;&nbsp;22716916&nbsp;&nbsp; 4601616&nbsp;&nbsp;84% 
  /<BR>c:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;27318532&nbsp;&nbsp;22716916&nbsp;&nbsp; 
  4601616&nbsp;&nbsp;84% 
  /cygdrive/c<BR>d:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;50733268&nbsp;&nbsp;36486396&nbsp;&nbsp;14246872&nbsp;&nbsp;72% 
  /cygdrive/d<BR>h:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  3145728&nbsp;&nbsp; 1130760&nbsp;&nbsp; 2014968&nbsp;&nbsp;36% /cygdrive/h 
  <BR><BR>% mount<BR>C:\cygwin\bin on /usr/bin type system 
  (binmode)<BR>C:\cygwin\lib on /usr/lib type system (binmode)<BR>C:\cygwin on / 
  type system (binmode)<BR>c: on /cygdrive/c type system 
  (binmode,noumount)<BR>d: on /cygdrive/d type system (binmode,noumount) <BR>h: 
  on /cygdrive/h type system (binmode,noumount)<BR><BR>% type cmake<BR>cmake is 
  /bin/cmake<BR>cmake is /usr/bin/cmake<BR>cmake is /cygdrive/c/Program 
  Files/CMake 2.4/bin/cmake<BR><BR>-----Original Message-----<BR>From: Wheeler, 
  Frederick W (GE, Research) <BR>Sent: Friday, October 05, 2007 1:31 PM<BR>To: 
  '<A href="mailto:cmake@cmake.org">cmake@cmake.org</A>'<BR>Subject: Cygwin 
  cmake - Could not find CMAKE_ROOT<BR><BR><BR>I'm having trouble running cygwin 
  cmake 2.4.7-2 on two different<BR>machines, one running XP, and one Windows 
  2000.&nbsp;&nbsp;Here's the error:<BR><BR>% /bin/cmake<BR>CMake Error: Could 
  not find CMAKE_ROOT !!!<BR>CMake has most likely not been installed 
  correctly.<BR>Modules directory not found 
  in<BR>/bin<BR>&nbsp;&nbsp;&nbsp;&nbsp; 39 [main] cmake 1196 
  _cygtls::handle_exceptions: Error while<BR>dumping state (probably corrupted 
  stack) Segmentation fault (core<BR>dumped)<BR><BR>In each case I've installed 
  cmake using the cygwin setup.exe installer.<BR>On the XP machine I just did a 
  reinstall of cmake using setup.exe, but<BR>the problem 
  persists.&nbsp;&nbsp;I'm not sure when this problem began.&nbsp;&nbsp;It 
  could<BR>have started months ago without me 
  noticing.<BR><BR>/usr/share/cmake-2.4.7/Modules/ is full of .cmake and other 
  files.<BR>Looks normal to me.&nbsp;&nbsp;About 192 files dated "Jul 31 
  09:51".<BR>% ls -l /usr/share/cmake-2.4.7/Modules/|wc -l<BR>194<BR><BR>I 
  thought maybe I had an environment variable problem.&nbsp;&nbsp;But if I unset 
  <BR>every environment variable I get the same behavior.<BR><BR>I get the same 
  error in rxvt, and the usual cygwin bash shell.&nbsp;&nbsp;But<BR>cygwin cmake 
  does in fact work (!!!) when run from a DOS window 
  using:<BR><BR>&nbsp;&nbsp;c:\cygwin\bin\cmake <BR><BR>I tried running bash, 
  sh, tcsh and zsh from a DOS window and then<BR>running 
  /bin/cmake.&nbsp;&nbsp;In each case - same error.&nbsp;&nbsp;I never use tcsh 
  or<BR>zsh, so I don't have any configuration files for them.<BR><BR>cygcheck 
  thinks my cmake install is OK (and cygcheck -c says every <BR>installed 
  package is OK)<BR><BR>% cygcheck -c cmake<BR>Cygwin Package 
  Information<BR>Package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Status<BR>cmake&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.4.7-2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OK<BR><BR>I 
  updated every installed cygwin package the "current" version a couple <BR>of 
  hours ago.<BR>% md5sum /bin/cmake.exe<BR>af465bc5ad9e6157a4898c476bfe62a3 
  */bin/cmake.exe<BR><BR>I don't see anything about this problem on the cmake or 
  cygwin mailing<BR>lists, so this must be something about my personal setup on 
  these two <BR>machines.&nbsp;&nbsp;Any help or ideas for solving/debugging 
  this would be<BR>appreciated.<BR><BR>Thanks,<BR>Fred 
  Wheeler<BR><BR><BR>_______________________________________________<BR>CMake 
  mailing list<BR><A href="mailto:CMake@cmake.org">CMake@cmake.org</A><BR><A 
  href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</A><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>