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

[foam-extend.org] Problems installing foam-extend 3.0

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By aylalisa

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 10, 2014, 14:34
Default Problems installing foam-extend 3.0
  #1
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 14
aylalisa is on a distinguished road
Dear Alexeym,

I've followed the installation guide from source code in open foam Wiki and did:

Quote:
cd ~ mkdir foam cd foam git clone git://git.code.sf.net/p/openfoam-extend/foam-extend-3.0 foam-extend-3.0

cd ~/foam/foam-extend-3.0 source etc/bashrc

export QT_BIN_DIR=/usr/bin/qmake
As described I wanted to start compilation by:

Code:
./Allwmake.firstInstall
and got that response:

Code:
bash: /home/lisa/OpenFOAM/foam-extend-3.0/bin/foamCleanPath: Datei oder Verzeichnis nicht gefunden
bash: /home/lisa/OpenFOAM/foam-extend-3.0/bin/foamCleanPath: Datei oder Verzeichnis nicht gefunden
bash: /home/lisa/OpenFOAM/foam-extend-3.0/bin/foamCleanPath: Datei oder Verzeichnis nicht gefunden
bash: /home/lisa/OpenFOAM/foam-extend-3.0/etc/settings.sh: Datei oder Verzeichnis nicht gefunden
bash: /home/lisa/OpenFOAM/foam-extend-3.0/etc/aliases.sh: Datei oder Verzeichnis nicht gefunden
bash: /home/lisa/OpenFOAM/foam-extend-3.0/bin/foamCleanPath: Datei oder Verzeichnis nicht gefunden
bash: /home/lisa/OpenFOAM/foam-extend-3.0/bin/foamCleanPath: Datei oder Verzeichnis nicht gefunden
bash: /home/lisa/OpenFOAM/foam-extend-3.0/bin/foamCleanPath: Datei oder Verzeichnis nicht gefunden
In foam-extend-3.0 /etc/bashrc FOAM_INST_DIR is set to /home/lisa/foam/
and I've sourced the /etc/bashrc of foam-extend-3.0, but still (after doing that) the variable FOAM_INST_DIR is set to /home/lisa/OpenFOAM (where OF-2.2.2 is compiled).

Since I work with OpenFOAM-2.2.2 (/home/lisa/OpenFOAM/OpenFOAM-2.2.2)
I guess the value of FOAM_INST_DIR was set during that installation.

Next I've compiled foam-extend-3.0 in /home/lisa/OpenFOAM/ folder. Compilation started and finished successfully but when I've tried to run the channelOodles tutorial
case I got the response that the solver is not found.

How can I solve this problem? I would like to use OF-2.2.2 and foam-extend-3.0

Could you help me?

Aylalisa
aylalisa is offline   Reply With Quote

Old   April 10, 2014, 16:11
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Aylalisa,

I've moved your post from the thread http://www.cfd-online.com/Forums/ope...m-2-2-2-a.html - to this new thread, as it was off-topic of the original thread.

Since you want to have more than one version of OpenFOAM installed, please read these instructions: http://openfoamwiki.net/index.php/In...with_the_Shell

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 11, 2014, 11:48
Default
  #3
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 145
Rep Power: 14
aylalisa is on a distinguished road
Hello Bruno!

with help of your descriptions I could successfully built and use foam-extent 3.0 and newly installed OpenFOAM-2.3.0 next to OpenFOAM-2.2.2.

http://www.cfd-online.com/Forums/ope...tml#post477908

http://openfoamwiki.net/index.php/In...ment_Variables

As you point out in your descriptions, I have to log out/ log in before I can choose the desired OpenFOAM version by typing the particular alias in a newly opened shell.

of222 --> OpenFOAM-2.2.2
of320 --> OpenFOAM-3.2.0
of30ext --> foam

I've built OF-2.2.2 and OF-3.2.0 in the same folder /OpenFOAM and foam-extend-3.0 in the folder foam/
So I can switch between of222 and of320 by alternately typing in the appropriate alias, whereas I have to open a new shell to be able to work with foam-extend-3.0.
(If I try to switch to this version there arise problems with sourcing the environment variables).

Thanks a lot for your guidance!

Aylalisa
wyldckat likes this.
aylalisa is offline   Reply With Quote

Old   April 22, 2015, 07:55
Default
  #4
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Hello everyone,

I got the task to install foam-extend 3.1 on Ubuntu 14.04 on our computer, where OpenFoam 2.3.1 is allready installed. Therefor I should use precompiled packages. I had a look on the internat and found the following page for installing: https://openfoamwiki.net/index.php/I...oam-extend-3.1

I tried to follow the commands.. but unfortunately I stope really fast. I downloaded the foam-extend_3.1_amd64.deb file and tried to run:

software-center foam-extend_3.1_amd64.precise.deb

but the software center said: not found.

I don't know, what I have to do next or instead. Do I have to unpack the deb file and how do I do this? Or do I have to move this file to an other place?

If anyone might help me again, it would be so nice. Thank you so much!

Best regards,
Stephie
stephie is offline   Reply With Quote

Old   April 22, 2015, 10:34
Default
  #5
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Hey, it's me again.. I think it become worse than before.

I downloaded the .deb file and moved it into a new order /foam/foam-extend-3.1 where I unpacked all files. Then I tried to set the environment by typing in the bashrc file:

source $HOME/foam/foam-extend-3.1/opt/foam/foam-extend-3.1/etc/bashrc

and run the command:

cd ~/foam/foam-extend-3.1/opt//foam/foam-extend-3.1
source etc/bashrc

the terminal said: no file or directory found, so I tried the next sommand

echo "alias fe31='source \$HOME/foam/foam-extend-3.17opt/foam/foam-extend-3.1/etc/bashrc'" >> $HOME/.bashrc

sind I did the every time when I open up a new terminal the following lines are showed:

bash: alias: fe31: not found
bash: $HOME/foam/foam-extend-3.17opt/foam/foam-extend-3.1/etc/bashrc: not found
bash: source $HOME/foam/foam-extend-3.17opt/foam/foam-extend-3.1/etc/bashrc: No such file or directory

What can I do to solve this chaos? Please help me.

Thank you so much.
stephie is offline   Reply With Quote

Old   April 22, 2015, 11:35
Default
  #6
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
okay when I try to run source $HOME/foam/foam-extend-3.1/opt/foam/foam-extend-3.1/etc/bashrc I get a list with entries like:

bash: /opt/foam/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam/foam-extend-3.1/etc/settings.sh: No such file or directory

I understand now that the programm don't find the path, because WM_PROJECT_DIR searchs directly $HOME/foam/foam-extend-3.1 and this path does not exist. When I tried to change WM_PROJECT_DIR into the real path the error message disappears. But I guess, it is not the best solution to replace all WM_PROJECT_DIR's.. isn't it? Because tehre are also some expressions like WM_PROJECT_VERSION etc.

So what can I do?
Is it possible to delate the whole path and to start from scrath with the installation?
Where I have to unpack the .deb file?
stephie is offline   Reply With Quote

Old   April 23, 2015, 05:21
Default
  #7
Member
 
Join Date: Jun 2011
Posts: 53
Rep Power: 15
blacksquirrel is on a distinguished road
Hello Stephie,

Try install OF-extend from the Source Code, instead of the deb files. I think the binary packages are designed to install in /opt (please correct me, if I am wrong), so I found it always easier to install from source code.

The instruction on how to install from source code are also provided on this page: https://openfoamwiki.net/index.php/I...oam-extend-3.1

Best regards
Squirrel
blacksquirrel is offline   Reply With Quote

Old   April 23, 2015, 05:28
Default
  #8
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Hey,

thank you for your answer. For me the installation by Source Code was much easier, but I should use this time binary packages. I moved them to opt now and modified the bashrc file by source /opt/foam/foam-extend-3.1/bashrc. And now I run the command source etc/bashrc... I'm not sure what the computer does but something is working.. the output in the terminal looks a little bit strange, I hope it worke now.

Best regards,
Stephie
stephie is offline   Reply With Quote

Old   April 23, 2015, 05:54
Default
  #9
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 71
Rep Power: 11
stephie is on a distinguished road
Okay the command ist still running, but I allways read the following line:

bash: /opt/foam/foam-extend-3.1/bin/foamCleanPath: Argument list too long
bash: /bin/uname: Argument list too long

Do anyone know what it mean? And what I have to do?

Best regards and thank you,
Stephie
stephie is offline   Reply With Quote

Old   April 23, 2015, 17:17
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@stephie:
Quote:
Originally Posted by stephie View Post
bash: /opt/foam/foam-extend-3.1/bin/foamCleanPath: Argument list too long
bash: /bin/uname: Argument list too long

Do anyone know what it mean? And what I have to do?
Quick answer: From what you've described in the previous posts, I'm guessing that the script "foamCleanPath" is unable to clean the shell environment due to a very strong contamination of said shell environment.

My suggestion is to follow these steps:
  1. Study this page: http://openfoamwiki.net/index.php/In...with_the_Shell
  2. If it's not clear enough to you, then edit the file "~/.bashrc" and comment out all lines that are related to OpenFOAM and foam-extend.
    • Comments in shell scripts are done by placing a hash character at the start of the line. For example, this is a commented line:
      Quote:
      #echo /opt/foam/foam-extend-3.1
  3. Save the file, after editing it.
  4. Then start a new terminal window or tab.
  5. You should now have a clean shell environment and there shouldn't be any interferences between OpenFOAM and foam-extend versions, because they are all not active.
  6. Now, you need to properly diagnose what it the correct installation path of your foam-extend installation. Which one is it? You can verify which one it is by running (at least in theory):
    Code:
    echo $HOME/foam/foam-extend-3.1
    ls -l $HOME/foam/foam-extend-3.1
    
    echo /opt/foam/foam-extend-3.1
    ls -l /opt/foam/foam-extend-3.1
    Run one command at a time, to check which folder it is installing in.
  7. Once you've determined which one it is, run the respective source command:
    Code:
    source $HOME/foam/foam-extend-3.1/etc/bashrc
    
    source /opt/foam/foam-extend-3.1/etc/bashrc
    And please do not run both lines, without first determining which one is the one you want to use.
  8. If there were no error messages, check if it's working as intended.
  9. Once you've determined that it's working, you can now edit the file "~/.bashrc" and uncomment or add only the command lines that are strictly needed. Again, check this page: http://openfoamwiki.net/index.php/In...with_the_Shell - Specially this this section: Using aliases to help manage multiple OpenFOAM versions
  10. Save the file.
  11. Start a new terminal window or tab and you can now use ONE version of OpenFOAM or foam-extend on each terminal window or tab. You cannot use more than one version in the same terminal window or tab.
Best regards,
Bruno
__________________
wyldckat 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
[Other] Problems Installing DensityBasedTurbo library on Foam-Extend 3.0 klozes OpenFOAM Community Contributions 2 April 4, 2020 18:01
[foam-extend.org] problems with openFoam extend 3.0 installation AmirBaqa1987 OpenFOAM Installation 1 December 20, 2016 20:17
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06


All times are GMT -4. The time now is 21:40.