Problem Installing OF 1.6 Ubuntu 9.10 (64 bit) - How to use GCC 4.4.1
I followed everything as suggested on the OpenFOAM website for the current release (1.6), but I have a problem with the installation.
With order: I've downloaded: - OpenFOAM-1.6.General.gtgz - ThirdParty-1.6.General.gtgz I am trying to install OpenFOAM 1.6 on Ubuntu 9.10 Karmic Koala, 64 bit version. When I update the environment variables by sourcing the $HOME/.bashrc file by typing in the terminal: Code:
* . $HOME/.bashrc Code:
Warning in /home/MyUserName/OpenFOAM/OpenFOAM-1.6/etc/settings.sh: What actions/commands should I use? |
You have to edit the file etc/settings.sh:
# Select compiler installation # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # compilerInstall = OpenFOAM | System compilerInstall=System Ali |
Thank you, I followed your suggestion, I continued with the installation process and I also this the following points:
Code:
mkdir -p $FOAM_RUN/run Then I went a step back and I tried with: Code:
foamInstallationTest But I received 2 critical errors: Code:
Checking basic setup... So the base configuration is OK, but if I try with
What should I do next? Thanks in advance! |
As you tried to insyall once, you have to first go to OpenFOAM-1.6.x directory and execute wallClean file which can be found on wmake directory, then you have to change what I mentioned and execute ./Allwmake in OpenFOAM-1.6.x directory.
|
Quote:
PS Should I edit again the etc/settings.sh file? I mean, I've already edited the way you told me, so I didn't touch it again. |
Did you succeed in doing it? I am also trying to set up openfoam in gcc 4.4.1.
Would you like to give me some tips? Quote:
|
gcc-4.4 and above...
Greetings to all,
To get gcc-4.4.? working with OpenFOAM, will depend on which version of OpenFOAM you want:
In case you want to use a non-system gcc, then after setting up a gcc folder in ThirdParty, you'll need the following steps:
Oh, and my advice, add to your bashrc script, this: Code:
# If you want a makeGcc script for the new gcc, get the makeGcc44 from these patches. I copied makeGcc to makeGcc44 and changed it to work with gcc-4.4.2. Best regards, Bruno |
I too am having troubles getting OpenFOAM to install on my Kubuntu
09:10 box. I am new to OpenFOAM. I noticed when reading (somewhere, it seems like a long time ago now) that vs 1.6 had problems with this linux version, so I went to the following site and followed their instructions to install 1.6.x http://openfoamwiki.net/index.php/Howto_install_OpenFOAM-1.6.x_(git_repository_version) I unpacked without any trouble. At the end of Sec. 1.2 I was told to: . ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc When I executed this line from a bash shell, no output was written to the screen, so I'm assuming it worked. Shouldn't this make an entry in my $HOME/.bashrc file? I see no entry added. (Forgive me, it has been 20 years since I had to edit a .bashrc file.) I move onto Section 1.3 and run export WM_NCOMPPROCS=2 from my command line, and again nothing. Shouldn't this change my .bashrc file, too? Nothing. Moving on, assuming it had worked, I cd ~/OpenFOAM/ ln -s ThirdParty-1.6 ThirdParty-1.6.x cd ThirdParty-1.6.x This all went smoothly, the link points to where it should, but when I ran the next line ./Allwmake bash replied with: bash: ./Allwmake: No such file or directory I was in the appropriate directory "ThirdParty-1.6.x" when I ran this command. Any ideas? Thanks |
Hi guys and girls:)
I am new in town and need some help......worked with Linux for some time now but not a maths wiz..... I usually give general support and build computers...etc. I have a customer who I have built a computer for now but I am not getting any where with openfoam... I have installed it on Ubunutu Karmic 64 bit and followed the advice I can find but just can't understand the advice from your link...wyldckat Quote:
Sorry, just don't understand what I need to do at the "here" link you provided...can you elaborate for an idiot ..PLEASE! bookie56 |
Quote:
|
Greetings VNPenguin,
Quote:
I'm just kidding ;) I saw your post the other day "Error compiling 1.6.x on Fedora 12", but since Fedora 12 wasn 't on my list of "conquered Linux distros" and since chandramurthy provided you with a working solution, I let the question pass. But now that you've stated my statement wasn't true, I had to find the truth and prove my statement :) So, I downloaded Fedora 12 686 LiveCD and installed it in a virtual machine with 1.5GB of RAM and 20GB of virtual disk. Also, I installed the required packages for OpenFOAM to build properly (I didn't waste time trying to build Paraview), so the following command should do the trick, when signed in as root: Code:
yum install gcc gcc-c++ binutils-devel flex git-core wget cmake qt4-devel python-devel readline-devel bison Then followed the instruction given in this thread's post #2: Quote:
After sourcing the bashrc file, I ran ./Allwmake at OpenFOAM-1.6.x and saw after a while that there was a strange issue going around. Searched in google for "*** missing separator OpenFOAM" and landed on this page: wmake error: file 'Make/linux64Gcc44DPOpt/objectFiles' could not be created After reading through the thread, and jumped to the other threads therein shown, thus leading me to editing the file OpenFOAM-1.6.x/wmake/rules/linuxGcc/general as stated in "OpenFOAM-1.5-dev SVN15xx with gcc-4.4.2": Quote:
Now, since I had let Allwmake run for a while, I had to make a cleanup of the stuff that had already been tried to built but failed, due to the same issue stated on the latest thread I mentioned. So, to make a good cleanup, I ran the following commands, at the folder OpenFOAM-1.6.x: Code:
wcleanAll And so, running ./Allwmake now builds the whole OpenFOAM package, including the Third Party libraries that were missing :) As I said before, I left out Paraview, but it should build OK too :) Therefore, I can only assume that these steps should also apply to Fedora 12 x86_64! Thus proving that I spoke the truth :cool: You spoke the truth too, but if you had posted the full build log, we might have noticed it earlier ;) TIPS:
Best regards, Bruno |
Quote:
Sorry for my bad english. I mean "I can not build OpenFOAM 1.6.x with Fedora compiler" only. I don't want to say about "liar" at all. Sorry! Thank you for your explains. I'll try it soon on my Fedora box. Cheers, |
Quote:
By the way, I'm happy to report that the building process just finished with no errors and it took (with dual VM cores): Code:
real 129m32.075s Best regards, Bruno |
Hi Bruno,
By following your thread, I can build 1.6.x with Fedora gcc compiler now. It's super :) Thank you, |
Greetings VNPenguin,
I'm glad to know that it worked :) And with this, Fedora is now on my virtual "conquered that Linux" list :D Best regards, Bruno |
1.6-x still not working
Hi Bruno,
You pointed me here from another thread. I was having problems making interFoam work in parallel (for one case. It had worked fine - up to 24 procs for previous cases). You suggested I download the dev version, and pointed me to this thread. So. I'm on Fed 12, 64-bit. I've tried on two different machines. :) I've followed your instructions, changing the compiler to system, and adding the -P, and here are the errors I'm getting (I get quite a lot of these): make[1]: *** [surfaceRedistributePar] Error 1 linux64GccDPOpt/options:6: *** missing separator. Stop. wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created make[1]: *** [surfaceRefineRedGreen] Error 1 linux64GccDPOpt/options:6: *** missing separator. Stop. wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created make[1]: *** [surfaceSmooth] Error 1 linux64GccDPOpt/options:6: *** missing separator. Stop. wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created make[1]: *** [surfaceSplitByPatch] Error 1 linux64GccDPOpt/options:6: *** missing separator. Stop. Looking at some of the options files, I see things like: # 1 "options" # 1 "<built-in>" # 1 "<command-line>" # 1 "options" EXE_INC = -I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/dynamicMesh/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude (.....) which seems like it would be the origin of the missing separator error, and that the -P option (in CPP) isn't being used. So, any idea on how to fix this? Thanks very much. |
Hi Bunni,
Quote:
Code:
OpenFOAM-1.6.x/wmake/rules/linuxGcc/general Code:
OpenFOAM-1.6.x/wmake/rules/linux64Gcc/general If you did change the second one... then I'm stumped :( If it was the second one you changed, then we'lll have to try and isolate the problem step by step :( Best regards, Bruno |
it did compile, it did not solve the problem. I'll post in the other thread to be more on topic.
|
Hi,
I'm also having problems installing OpenFOAM-1.6.x. I'm using Ubuntu Lucid Lynx 64 bit. I've tried to change the files etc/settings.sh and OpenFOAM-1.6.x/wmake/rules/linux64Gcc/general as described above, but it still doesn't install properly. Running the foamInstallationTest I get the following: Code:
Checking basic setup... Thanks -Jesper |
Greetings Jesper,
Uhm... the -P argument change in the rule files is for Fedora and similar distributions. And if you had followed the instructions in post #11 you might have managed to build OpenFOAM in Ubuntu while using instructions for Fedora ;) As for installing OpenFOAM 1.6.x in Ubuntu 10.04, might I suggest the install script I've been helping out with: http://code.google.com/p/openfoam-ubuntu/ The support thread for it is this one: http://www.cfd-online.com/Forums/ope...-ubuntu-5.html Best regards, Bruno |
All times are GMT -4. The time now is 02:17. |