CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OpenFOAM-1.6 install cookbook

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2009, 09:12
Default
  #121
Xye
New Member
 
Join Date: Nov 2009
Posts: 7
Rep Power: 17
Xye is on a distinguished road
Quote:
Originally Posted by akidess View Post
It's ok, no errors.
Great.

Can't seem to get the tutorials to work though. Not sure if its anything to do with the $FOAM_RUN part of the command that it tells you to do Here
Xye is offline   Reply With Quote

Old   November 24, 2009, 13:36
Default
  #122
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Quote:
Originally Posted by Xye View Post
Can't seem to get the tutorials to work though. Not sure if its anything to do with the $FOAM_RUN part of the command that it tells you to do Here
It would help if you told us what the problems are you are having.
akidess is offline   Reply With Quote

Old   November 25, 2009, 17:22
Default icofoam
  #123
New Member
 
Join Date: Nov 2009
Posts: 1
Rep Power: 0
wenc2 is on a distinguished road
Hello,

Thanks for the script it's a great help. It solved most of the error I had. Still got one so. It looks like it's with "icoFoam"
If some now how to solve it It would be wonderfull

Code:
Third party software
-------------------------------------------------------------------------------
Software Version   Location 
-------------------------------------------------------------------------------
gcc      4.3.3     ...OAM/ThirdParty-1.6.x/gcc-4.3.3/platforms/linux/bin/gcc
gzip     1.3.12    /bin/gzip                                                
tar      1.20      /bin/tar                                                 
icoFoam           
WARNING:  Conflicting installations:
          OpenFOAM settings        : /home/wenceslas/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/icoFoam
          current path             : 
          CRITICAL ERROR
wenc2 is offline   Reply With Quote

Old   November 26, 2009, 16:05
Default error when compiling
  #124
New Member
 
Achim
Join Date: May 2009
Posts: 22
Rep Power: 17
af631717 is on a distinguished road
Hi,

i often used the skript and it always worked well even with Debian 5. But on one computer the following error message comes:

gcc -m32 -Wall -O3 -fPIC dirToString.c -o /home/timo/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linuxGcc/dirToString
flex wmkdep.l
gcc -m32 -Wall -O3 -fPIC lex.yy.c -o /home/timo/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linuxGcc/wmkdep
lex.yy.c:1393: warning: ‘yyunput’ defined but not used
lex.yy.c:1436: warning: ‘input’ defined but not used
wmkdep.l: In function ‘yy_scan_bytes’:
wmkdep.l:463: internal compiler error: Ungültiger Maschinenbefehl
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [/home/timo/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linuxGcc/wmkdep] Fehler 1
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ '[' -n '' ']'
++ cd malloc
++ ./Allwmake
+ wmake libso hoard
/bin/sh: /home/timo/OpenFOAM/OpenFOAM-1.6.x/wmake/bin/linuxGcc/wmkdep: Datei oder Verzeichnis nicht gefunden

Any hints?
A.
af631717 is offline   Reply With Quote

Old   November 27, 2009, 01:33
Default
  #125
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Achim, from what google tells me you might have a problem with your RAM.
akidess is offline   Reply With Quote

Old   November 27, 2009, 04:04
Default Ram
  #126
New Member
 
Achim
Join Date: May 2009
Posts: 22
Rep Power: 17
af631717 is on a distinguished road
Anton; thanks - will change the RAM
Achim
af631717 is offline   Reply With Quote

Old   November 28, 2009, 11:32
Default
  #127
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Hi.

From the suggestions of Bruno above (thanks, man), I have changed the scripts to support Ubuntu 9.10. Actually I have scripts now for 9.04 and 9.10 separately (link in my signature).

I have just installed a fresh Ubuntu 9.10 64-bit from scratch and used the new scripts and they worked. Please let me know about any issues you might have, and I will upgrade.

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   November 29, 2009, 18:17
Default
  #128
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17
83_Ale_83 is on a distinguished road
Hello guys,

I am a newbee of OpenFOAM, i am trying to install it on Ubuntu 9.10 x64 with the script, but when I type in terminal

Quote:
cd OpenFOAM-1.6.x/
. ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
The terminal close itself, if I re-open the terminal I got this message:

Quote:
bash: /home/ale/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc: Nessun file o directory
Which is the problem?
With rRegards
Alessandro
83_Ale_83 is offline   Reply With Quote

Old   November 30, 2009, 03:27
Default
  #129
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Hi Alessandro.

We might a bit more info. Is it a fresh install of 9.10? Is it when the script executes bashrc or when you (why?) do it? It should be added automatically to your .bashrc file so there shouldn't be any need for you executing it yourself.

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   November 30, 2009, 03:54
Default
  #130
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17
83_Ale_83 is on a distinguished road
It's not proper a fresh installation of Ubuntu 9.10 (I have update it and install the driver of my quadro video card and uninstall some useless programs (the gimp in example).

It happen when I copy-paste the script from your file to my terminal.

Maybe I have to reinstall a fresh ubuntu installation and the try, If could be usefull I have a dual boot system xp/9.10 and for 9.10 3 partitions: /,/home and swap.

Thank you
Alessandro
83_Ale_83 is offline   Reply With Quote

Old   November 30, 2009, 04:45
Default
  #131
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
What if you write (just to check if the installation is where it should be, and the bashrc of OpenFOAM is present):

ls ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   November 30, 2009, 04:52
Default old Script worked with Ubuntu 9.10?!
  #132
New Member
 
Achim
Join Date: May 2009
Posts: 22
Rep Power: 17
af631717 is on a distinguished road
Hi,
on my netbook i used the old script and it worked!
Is it necessary to use the other libs?

The skript worked for Debian 5. Only the paraFoam does not work!

When you use the precompiled version with Lenny (Debian 5) then everything ist fine, but when you compile the 1.6.x, paraFoam does not work anymore - when you compile paraFoam again, it also does not work - strange!
A.
af631717 is offline   Reply With Quote

Old   November 30, 2009, 05:28
Default
  #133
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Hi Achim.

Interesting. A couple of questions:

1) so the old script worked with Ubuntu 9.10?
2) was it the 32-bit version?
3) you mention Debian 5, what script did you use and did you experience other problems than the one with paraFoam?
4) do you have any error output from paraFoam?

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   November 30, 2009, 05:41
Default
  #134
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17
83_Ale_83 is on a distinguished road
Quote:
Originally Posted by MadsR View Post
What if you write (just to check if the installation is where it should be, and the bashrc of OpenFOAM is present):

ls ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc

/Mads
This is what the terminal show:

Quote:
walk 7df9c9e09d67e226d1a409ef2dd141203701924f
walk b21a55baed3309240f84f3fc0ea91e5e41cd7277
ale@alien:~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64$ cd OpenFOAM-1.6.x/
ale@alien:~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64/OpenFOAM-1.6.x$ . ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
bash: /home/ale/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc: Nessun file o directory
ale@alien:~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64/OpenFOAM-1.6.x$ ls ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
ls: impossibile accedere a /home/ale/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc: Nessun file o directory
ale@alien:~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64/OpenFOAM-1.6.x$
__________________

83_Ale_83 is offline   Reply With Quote

Old   November 30, 2009, 05:48
Default
  #135
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
Alessandro,

Wierd. It seems that you don't have the bashrc of OpenFOAM available at all...?

Show us the output of the following commands:

1. ls ~/OpenFOAM
2. ls ~/OpenFOAM/OpenFOAM-1.6.x
3. ls ~/OpenFOAM/OpenFOAM-1.6.x/etc

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   November 30, 2009, 06:11
Default Ubuntu + Debian questions
  #136
New Member
 
Achim
Join Date: May 2009
Posts: 22
Rep Power: 17
af631717 is on a distinguished road
Hi Mads

1) so the old script worked with Ubuntu 9.10?
yes, Acer Aspire Netbook with Remix Ubuntu 9.10 (Remix is especially for the netbook - only adapted GUI for the small LCD and Wireless Lan etc. All other things should be the same. Works perfect. Also ParaFoam works with a proper performance.

2) was it the 32-bit version?
Intel Atom

3) you mention Debian 5, what script did you use and did you experience other problems than the one with paraFoam?
Only paraFoam Reader has problems, compiling the 1.6.x was correct and work proberly.

4) do you have any error output from paraFoam?
It looks like the old problem that no reader is found as it occurred with OF1.5 when you had the wrong Qt libraries

One Error is in the new 32 Skript. There is no lib64 in the 32 ThirdParty package.

/Achim
af631717 is offline   Reply With Quote

Old   November 30, 2009, 06:29
Default
  #137
Senior Member
 
MadsR's Avatar
 
Mads Reck
Join Date: Aug 2009
Location: Copenhagen, Denmark
Posts: 177
Rep Power: 18
MadsR is on a distinguished road
OK. So it seem to work on Debian 5 too.

Good call. linux64 changed in the new 9.10 script.

/Mads
__________________
Online free airfoil-mesher for OpenFOAM here
MadsR is offline   Reply With Quote

Old   November 30, 2009, 06:38
Default
  #138
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17
83_Ale_83 is on a distinguished road
Quote:
Originally Posted by MadsR View Post
Alessandro,

Wierd. It seems that you don't have the bashrc of OpenFOAM available at all...?

Show us the output of the following commands:

1. ls ~/OpenFOAM
2. ls ~/OpenFOAM/OpenFOAM-1.6.x
3. ls ~/OpenFOAM/OpenFOAM-1.6.x/etc

/Mads
Quote:
ale@alien:~$ ls ~/OpenFOAM
ThirdParty-1.6 ThirdParty-1.6.General.gtgz ThirdParty-1.6.linux64Gcc.gtgz ThirdParty-1.6.x
Quote:
ale@alien:~$ ls ~/OpenFOAM/OpenFOAM-1.6.x
ls: impossibile accedere a /home/ale/OpenFOAM/OpenFOAM-1.6.x: Nessun file o directory
Quote:
ale@alien:~$ ls ~/OpenFOAM/OpenFOAM-1.6.x/etc
ls: impossibile accedere a /home/ale/OpenFOAM/OpenFOAM-1.6.x/etc: Nessun file o directory
ale@alien:~$
Quote:
ale@alien:~$ ls
Documenti examples.desktop Immagini Modelli Musica nuovo file~ nuovo file.txt OpenFOAM Pubblici Scaricati Scrivania Video
Thank you for help me
__________________

83_Ale_83 is offline   Reply With Quote

Old   November 30, 2009, 06:59
Default Debian 5
  #139
New Member
 
Achim
Join Date: May 2009
Posts: 22
Rep Power: 17
af631717 is on a distinguished road
1) Yes it seems to work with Debian but in fact in does not.

2) cd ~/OpenFOAM/ThirdParty-1.6/gcc-4.3.3/platforms/linux64/lib64
does not exist in that package -> there is something wrong in the script.

A.
af631717 is offline   Reply With Quote

Old   November 30, 2009, 07:32
Default
  #140
Member
 
83_Ale_83's Avatar
 
Alessandro
Join Date: Nov 2009
Posts: 67
Rep Power: 17
83_Ale_83 is on a distinguished road
Maybe, and I say maybe, I have resolved my issue,

I have changed the git command
Quote:
git clone git://repo.or.cz/OpenFOAM-1.6.x.git
to
then I type
Quote:
cd OpenFOAM-1.6.x/
. ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
And it seems to have no problems, now I have started to compile with
Quote:
./Allwmake >make.log 2>&1
I have a question for you /Mads, in your script :
At line 51 your script create a folder OpenFOAM-1.6.x, this folder must be in OpenFOAM folder to run after
Quote:
cd OpenFOAM-1.6.x/
. ~/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
right?

Thank you
__________________

83_Ale_83 is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
install OpenFoam 1.6 by building source: how? niudie OpenFOAM Installation 13 April 26, 2011 01:48
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
install openfoam 1.6 on opensuse 11.0 andresbh OpenFOAM Installation 8 September 30, 2009 01:48
Install openFOAM 1.6 on debian 32bit - blockMesh: command not found fossy OpenFOAM Installation 1 August 28, 2009 05:06
Install of OpenFOAM 1.6 Error 1 Error 2 & run tutorial potac OpenFOAM Installation 3 August 27, 2009 10:04


All times are GMT -4. The time now is 14:50.