CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Cmake 243 not 242

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   August 28, 2006, 12:49
Default Hi, I downloaded cmake-2.4.
Posts: n/a

I downloaded cmake-2.4.3 and compiled it but OF thinks I have cmake-2.4.2. I think the newest version should be the better one, so how to get the right environment variables?

martin@laptop:~/OpenFOAM/linux> ls -l
total 30462
drwxr-xr-x 6 martin users 144 2006-08-28 19:47 cmake-2.4.3
drwxr-xr-x 9 martin users 216 2006-08-28 19:22 gcc-4.1.1
-rw-r--r-- 1 martin users 31160295 2006-08-28 19:23 gcc-4.1.1.bin.tgz
drwxr-xr-x 8 martin users 192 2006-08-28 19:34 gdb-6.4

martin@laptop:~/OpenFOAM/linux> set | grep -i cmake

Note: version mismatch.
  Reply With Quote

Old   August 28, 2006, 14:20
Default It looks like CMAKE_HOME is se
Posts: n/a
It looks like CMAKE_HOME is set in the following two files:


Changing the value there (in whichever file is appropriate to the shell you're using, though updating both is probably good policy) should fix things.
  Reply With Quote

Old   August 29, 2006, 01:29
Default Great, thanks a lot... It seem
Posts: n/a
Great, thanks a lot... It seem to work... BTW: Did you grep through all the source code from ~/OpenFOAM (guess it takes a long time) or were you clever enough just to know where to look? Could be I could learn some hints here...
  Reply With Quote

Old   August 29, 2006, 01:43
Default It doesn't take that long, may
Posts: n/a
It doesn't take that long, maybe five minutes or so. I've done it rather a few times.

In this case, I was a little more clever. The main bashrc/cshrc files -- which are what set up the environment variables -- for OpenFOAM are in the .OpenFOAM-1.3 subdirectory (note the leading dot!) of the main OpenFOAM-1.3 directory. Those reference the .bashrc/.cshrc files in the main directory, as well as bashrc/cshrc files in the various subdirectories of the apps subdirectory of .OpenFOAM-1.3. So I knew it had to be in one of those, and it didn't take long to look.
  Reply With Quote

Old   August 29, 2006, 12:30
Default Ok, thanks... I also knew that
Posts: n/a
Ok, thanks... I also knew that but got confused by the long scripts as I'm not too experienced with them and I didn't think of looking in the paraview-bashrc-file... The good thing is:

I think I now successfully got myself a compiled debug-version of OF with the newest tools:

j2sdk-1_4_2_12-linux-i586 and cmake-2.4.3

The cavity-case runs fine. So does paraview. But I'm astonished over how huge my OF directory is now:

475M ./linux
46M ./martin-1.3
2.8G ./OpenFOAM-1.3
1.8G ./linuxSrc
5.0G .

Now I just have to debug something and test if it works completely... I'm not sure whether or not I can delete everything inside linuxSrc in order to save some space, but so far it isn't that important (I have 10 gigs free space)...
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
buildParaView33cvs cmake ERROR bjr OpenFOAM Installation 8 February 24, 2009 00:49
CMake Error about testCCompilerc wu_wen OpenFOAM Installation 3 September 19, 2008 23:06

All times are GMT -4. The time now is 10:16.