|
[Sponsors] |
August 24, 2011, 10:37 |
./Allwmake: 39: wmakeCheckPwd: not found
|
#1 |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
Hi All,
I am trying to install OF-2.0.x as outlined from here http://www.openfoam.org/git.php but when I tried to compile ./Allwmake it gave me error PHP Code:
PHP Code:
Please help as this is getting quite frustated Thanks and regards, Robert |
|
August 24, 2011, 17:29 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Robert,
Does the folder even exist? Have you checked? Are you 100% certain that every single character is identical!? Keep in mind that "OpenFOAM" is not the same as "openFOAM"! Anyway, you can check if the file really exists by running these commands: Code:
ls -l $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc ls -l $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/ ls -l $HOME/OpenFOAM/OpenFOAM-2.0.x/ ls -l $HOME/OpenFOAM/
Best regards, Bruno
__________________
|
|
August 27, 2011, 07:12 |
|
#3 |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
Hi Bruno,
Thanks for your instant reply! I did mess up something before and got it fixed. I've tried OF.2.0.x and found some compilation error for my solver which works fine in OF.1.6.x. AFAIK, things like readSIMPLECONTROLS.H and readPIMPLECONTROLS.H are no longer exist, so I think for now I will stick with OF1.6.x. However, I encountered some discrepancy between Ubuntu Natty gcc version (4.5.2) with respect to OF1.6.x (4.3), thus I got errors in compiling it. Can you please guide me on how to solve this? or do I have to use an older Ubuntu version? Thanks very much for your time. Regards, Robert |
|
August 27, 2011, 07:28 |
|
#4 |
Senior Member
Laurence R. McGlashan
Join Date: Mar 2009
Posts: 370
Rep Power: 23 |
There are a number of differences in OF2.0. In particular there are now classes such as simpleControl and pimpleControl that take the place of readSimpleControls.H. It's really not very difficult to change to the new classes.
As for compiler errors, you can post them up here!
__________________
Laurence R. McGlashan :: Website |
|
August 27, 2011, 07:30 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Robert,
Bad idea: do not try to build OpenFOAM 1.6.x with gcc 4.5!! It's not compatible, due to some stuff that changed between 4.4 and 4.5. Gcc 4.5 can be used with OpenFOAM 1.7.1 and above. Go to the Synaptic Package Manager and search for "gcc-4.3-base" and/or "gcc-4.4-base". Install 4.4 or both, it's up to you. Install "g++-4.4" as well. Then... I know I've explained this before somewhere... Ah, here we go, see post #2: http://www.cfd-online.com/Forums/ope...tml#post278809 - but instead of replacing with gcc44 and g++44, use gcc-4.4 and g++-4.4. Best regards and good luck! Bruno
__________________
|
|
August 27, 2011, 07:47 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Laurence,
Of course I do : http://www.cfd-online.com/Forums/ope...gcc-4-5-x.html I didn't back up my claim immediately because I was feeling lazy and didn't seem very important And I know I've got a link to the repo with the necessary changes somewhere here in the forum... odd, I can't find it... I'll keep looking and post back here edit: This should be the commit that fixes the issue with gcc 4.5: 24257a08dc25c30946fb Best regards, Bruno
__________________
Last edited by wyldckat; August 27, 2011 at 07:52. Reason: see "edit:" |
|
August 27, 2011, 13:44 |
|
#9 |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
Thanks to both of you for taking time to reply
@Bruno: As you suggested, I downloaded gcc and g++ 4.4 from the synaptic manager then followed your instructions but it gave me the same compilation errors complaining about wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created. Then I looked up in ~/OpenFOAM/OpenFOAM-1.6.x/wmake/rules and found only gcc 4.2 and 4.3 are listed. I tried to search for gcc and g++ 4.3 from synaptic, however, they are not longer there. Could you please give me a little bit more hints of what to do next? @Laurence: I'd like to try out OF.2.0.x without having to re-adjust my solvers but thanks to your hints I think the changes are not very difficult to implement. Regards, Robert |
|
August 27, 2011, 15:42 |
|
#10 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Robert,
Quote:
To have more than one version available on your system, remove/comment any lines related to OpenFOAM that you have in the file "$HOME/.bashrc" and (for example) add these instead: Code:
alias of16x='. $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc' alias of20x='. $HOME/OpenFOAM/OpenFOAM-2.0.x/etc/bashrc' Keep in mind that you cannot change OpenFOAM environments when on the same terminal window or tab; this means that if you want to run solvers from both versions at the same time, you'll need two separate terminal windows/tabs for running each one. Quote:
Quote:
Best regards, Bruno
__________________
|
||||
August 28, 2011, 00:21 |
|
#11 |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
Hi Bruno,
I've only got OF-1.6.x now so there should not be any sourcing environment problems I hope. These commands gave me Code:
echo $WM_CC: gcc-4.4 echo $WM_CXX: g++-4.4 which $WM_CC: /usr/bin/gcc-4.4 which $WM_CXX: /usr/bin/g++-4.4 However it still gave me the same compilation error. Please find the attached for the make.log, bashrc and settings.sh. I'm not very sure what do you mean by search & replace sensitive data so I didn't do this I hope you don't mind Thanks and regards, Robert stuffs.tar.gz |
|
August 28, 2011, 08:27 |
OpenFOAM 1.6.x on Ubuntu 11.04 Natty
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Robert,
I installed Natty 64bit in a virtual machine and had a go at it with OpenFOAM 1.6.x. Here are my findings: Well, there is a binary not very well known as "cpp" which pre-processes code for GNU code building applications. This is a very important binary and in your system there should also exist a version for gcc 4.4 named cpp-4.4: Code:
which cpp-4.4 So edit the file "wmake/rules/linux64Gcc/general" and change the line: Code:
CPP = cpp $(GFLAGS) Code:
CPP = cpp-4.4 $(GFLAGS) Code:
sudo apt-get install bison edit: binutils-dev also has to be installed: Code:
sudo apt-get install binutils-dev Code:
foam3rdParty wcleanLnIncludeAll ./Allclean wclean libso scotch_5.1/src/libscotch wclean libso metis-5.0pre2/GKlib wclean libso metis-5.0pre2/libmetis ( cd ParMetis-3.1 && WM_OPTIONS=${WM_OPTIONS}$WM_MPLIB && wclean libso METISLib && wclean libso ParMETISLib ) wclean libso ParMGridGen-1.0/MGridGen/IMlib wclean libso ParMGridGen-1.0/MGridGen/Lib Now it's time to clean up the OpenFOAM-1.6.x folder as well and have ago at it once more (the first command will jump to there): Code:
foam wcleanAll wcleanLnIncludeAll ./Allwmake > make.log 2>&1 More notes: Ignore the errors related to "hoard" and "fsbmalloc": those are very outdated pieces of technology that are no longer supported... at least in OpenFOAM 1.7.x and 2.0.x. It's still building on my virtual machine, so I don't know if there any more errors to come by... Best regards, Bruno
__________________
Last edited by wyldckat; August 28, 2011 at 08:44. Reason: edit: binutils-dev also has to be installed |
|
August 29, 2011, 01:34 |
|
#13 |
Member
Robert Ong
Join Date: Aug 2010
Posts: 86
Rep Power: 16 |
Hi Bruno,
That solved it! Thanks very much for your time and sorry for the work/time you spent for this during the weekend Kind Regards, Robert |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 09:48 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
OpenFOAM15 installables are incomplete problem with paraFoam | tryingof | OpenFOAM Bugs | 17 | December 7, 2008 05:41 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |