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

Problems installing foam-extend 3.0

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

Like Tree1Likes
  • 1 Post By aylalisa

Reply
 
LinkBack Thread Tools Display Modes
Old   April 10, 2014, 13:34
Default Problems installing foam-extend 3.0
  #1
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 144
Rep Power: 4
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, 15:11
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Aylalisa,

I've moved your post from the thread ChannelOodles in OpenFOAM 2.2.2 - 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, 10:48
Default
  #3
Senior Member
 
Join Date: Nov 2012
Location: Bavaria
Posts: 144
Rep Power: 4
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.

Problems installing OpenFOAM 2.3.0, 1.6-ext and foam-extend 3.0

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, 06:55
Default
  #4
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 54
Rep Power: 2
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, 09:34
Default
  #5
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 54
Rep Power: 2
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, 10:35
Default
  #6
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 54
Rep Power: 2
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, 04:21
Default
  #7
Member
 
Join Date: Jun 2011
Posts: 52
Rep Power: 6
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 online now   Reply With Quote

Old   April 23, 2015, 04:28
Default
  #8
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 54
Rep Power: 2
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, 04:54
Default
  #9
Member
 
Stephanie
Join Date: Feb 2015
Location: Magdeburg, Germany
Posts: 54
Rep Power: 2
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, 16:17
Default
  #10
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

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
non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Native Meshers: blockMesh 7 April 17, 2013 05:42
mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 12 December 12, 2011 05:16
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
Installation problems shellbell1999 OpenFOAM Installation 9 April 6, 2006 13:29
Problems installing CFX on Sun Unix Platform Haley CFX 2 November 9, 2001 10:52


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