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

OpenFOAM-dev-1.5 from CAE Team PPA

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 15, 2010, 08:13
Default OpenFOAM-dev-1.5 from CAE Team PPA
  #1
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
Hi everybody.

Today I tried to install OF-dev-1.5 from CAE Team PPA and I followed the openfoamwiki instructions. Something went wrong because when I launch OFdev (this is my alias) I obtain:
Code:
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Nessun file o directory
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Nessun file o directory
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Nessun file o directory
bash: /opt/OpenFOAM-1.5-dev/etc/settings.sh: Nessun file o directory
bash: /opt/OpenFOAM-1.5-dev/etc/apps/ensightFoam/bashrc: Nessun file o directory
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Nessun file o directory
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Nessun file o directory
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: Nessun file o directory
The terminal is obviously right. I checked the folders above and they don't exist. How can I fix this trouble? Is it a package problem?
Thanks for your attention.

Regards,

Maurizio
vaina74 is offline   Reply With Quote

Old   December 20, 2010, 12:34
Default
  #2
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
Any idea?
vaina74 is offline   Reply With Quote

Old   December 20, 2010, 17:46
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Maurizio,

I haven't tried to replicate your steps, but it seems pretty simple. In the wiki link you posted, it talks about:
Code:
alias startOF15dev="source /usr/lib/OpenFOAM-1.5-dev/etc/bashrc"
But the error messages you posted indicate that "/usr/lib/OpenFOAM-1.5-dev/etc/bashrc" doesn't have the proper definition for the variable "foamInstall", which in this case should be:
Code:
foamInstall=/usr/lib
So, you can edit the file by running:
Code:
gksu gedit /usr/lib/OpenFOAM-1.5-dev/etc/bashrc
It will ask for the user password, because for editing that file, root powers are going to be needed"

In case it already has the proper folder path, then it's another OpenFOAM environment that has been started prior to the alias call you do, because OpenFOAM's "bashrc" script will use the previously defined variable, rather than overwriting the value.
In other words, make sure all OpenFOAM environments are made only via alias; also make sure that you start a new terminal before calling the desired alias.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 22, 2010, 05:27
Default
  #4
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
Thank you very much, Bruno.

I checked /usr/lib/OpenFOAM-1.5-dev/etc/bashrc and the variable foamInstall is defined properly. Then I sourced OpenFOAM-1.5-dev and it worked. What happened? In the meantime I already created an alias for OpenFOAM-1.7 (I installed it before OpenFOAM-1.5-dev and I didn't use alias):
Code:
# OpenFOAM 1.7
alias OF17="source /opt/openfoam171/etc/bashrc"
alias OFdev="source /usr/lib/OpenFOAM-1.5-dev/etc/bashrc"
but I didn't reload bashrc - a newbie error.
Now I have another trivial question about my OpenFOAM-1.5-dev installation. I have an OpenFOAM folder in home and it contains 2 folders: OpenFOAM-1.7.1 (with subdirectory run) and OpenFOAM-1.5-dev (with subdirectories application/bin and lib). I think that's a mistake (maybe I created them when sourcing was wrong), so I'm going to delete all OpenFOAM-1.5-dev subdirectories and make only one new folder run. Am I correct?
vaina74 is offline   Reply With Quote

Old   December 22, 2010, 19:42
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Maurizio,
Quote:
Originally Posted by vaina74 View Post
Now I have another trivial question about my OpenFOAM-1.5-dev installation. I have an OpenFOAM folder in home and it contains 2 folders: OpenFOAM-1.7.1 (with subdirectory run) and OpenFOAM-1.5-dev (with subdirectories application/bin and lib). I think that's a mistake (maybe I created them when sourcing was wrong), so I'm going to delete all OpenFOAM-1.5-dev subdirectories and make only one new folder run. Am I correct?
Well, I would first check if the folders "$HOME/OpenFOAM/OpenFOAM-1.*/applications/bin" have anything in them. Because if they have nothing, then you can erase them. And check if the other versions you installed in "/opt" and "/usr/lib", to see if they have source code in them.
There is a slight possibility that you might have a custom installation designed to make things easier for users to modify OpenFOAM code... but I doubt this is the situation.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 23, 2010, 05:36
Default
  #6
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
Hi, Bruno. Thanks for your explanations. I installed OpenFOAM-1.5-dev (from CAE Team PPA) in another computer - it already included OpenFOAM-1.7.1. I correctly sourced both versions of OpenFOAM, I didn't mess anything up. I see again the two subdirectories $HOME/OpenFOAM/OpenFOAM-1.5-dev/applications/bin and $HOME/OpenFOAM/OpenFOAM-1.5-dev/lib and they are empty, so I agree with you:
Quote:
There is a slight possibility that you might have a custom installation designed to make things easier for users to modify OpenFOAM code
Anyway, I simply add a run folder.
Thanks for your help
vaina74 is offline   Reply With Quote

Old   December 29, 2010, 04:08
Default
  #7
New Member
 
Aljaz Osterman
Join Date: Dec 2010
Posts: 8
Rep Power: 6
aljaz is on a distinguished road
Hi Maurizio!
I have the same problem as you, however I lost track at post #4. I added both aliases (OF15dev and OF17 - installed previously, worked ok) to .bashrc and reloaded it. But I still got the same response:
Code:
$ OF15dev
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.5-dev/etc/settings.sh: No such file or directory
bash: /opt/OpenFOAM-1.5-dev/etc/apps/ensightFoam/bashrc: No such file or directory
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
Did I miss some steps or is there anything else I should do?
Btw, I still have only previously existing ~/OpenFOAM/...-1.7.1/ directory.

Best regards,
Aljaz
aljaz is offline   Reply With Quote

Old   December 29, 2010, 05:13
Default
  #8
New Member
 
Aljaz Osterman
Join Date: Dec 2010
Posts: 8
Rep Power: 6
aljaz is on a distinguished road
Hi!
Just a short note from me:
I checked http://www.tfd.chalmers.se/~hani/kur...OwnLaptop.html
about OpenFOAM-dev-1.5 installation and there's a note "Note that the aliases will not work with this installation."
Any comments on this one?
Best regards,
Aljaz
aljaz is offline   Reply With Quote

Old   December 29, 2010, 09:29
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Aljaz,

Quote:
Originally Posted by aljaz View Post
Just a short note from me:
I checked http://www.tfd.chalmers.se/~hani/kurser/OS_CFD/OpenFOAMonYourOwnLaptop.html
about OpenFOAM-dev-1.5 installation and there's a note "Note that the aliases will not work with this installation."
Any comments on this one?
That's absolute nonsense What I think it might mean is that there are alias commands made in the official OpenFOAM that don't work in the -dev version. For example, if you run the command "foam", it will go to the base folder of the installed "OpenFOAM-1.xxx". Run "alias" and you will see the pseudo-commands that you have available

I believe the problem you are having is the same that Maurizio had at first - there is still a line lying around in the "~/.bashrc" with something just like this:
Code:
. /opt/openfoam171/etc/bashrc
Note that it doesn't have an alias in that line.
Then, you need to start a new terminal or console window/tab for the environment to be properly clean and devoid of remnants of previous OpenFOAM definitions.
To be sure that the environment is clean, try this:
Code:
export | grep -i -e "foam"
If anything is shown after this command is executed, then there is still some remnants lying around in "~/.bashrc". Remove them (the remnants), save the file and start another tab/window of the terminal/console.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 30, 2010, 03:04
Default
  #10
New Member
 
Aljaz Osterman
Join Date: Dec 2010
Posts: 8
Rep Power: 6
aljaz is on a distinguished road
Thanks,
There was indeed such line that I overlooked before. Commenting solved the problem.
Best regards!
aljaz is offline   Reply With Quote

Old   December 30, 2010, 04:29
Default Adding one more ...
  #11
New Member
 
Aljaz Osterman
Join Date: Dec 2010
Posts: 8
Rep Power: 6
aljaz is on a distinguished road
Hi!
I was interested if the same procedure worked for OF1.6-ext so I tried to install it too. This time it seemed all went smoothly, however at the end after calling alias of16ext, no directory for 1.6-ext has been created.
I created it manually, then I tried some tutorials and they worked fine.

With best regards,
Aljaz

Last edited by aljaz; December 30, 2010 at 06:43.
aljaz is offline   Reply With Quote

Old   June 28, 2011, 06:11
Default
  #12
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
Dear Bruno (I hope you'll read this thread),

I'm sorry to annoy you again about the same, old problems. I just downloaded openFOAM 1.5-dev and 1.6-ext from CAE Team PPA and (automatically) installed all packages in /usr/lib64. Then I edited ~/.bashrc
Code:
alias OF15dev="source /usr/lib64/OpenFOAM-1.5-dev/etc/bashrc"
and sourced it, edited bashrc
Code:
foamInstall=/usr/lib64
in /usr/lib64/OpenFOAM-1.5-dev/etc.
When I launch the foamInstallationTest script in /usr/lib64/OpenFOAM-1.5-dev/bin, I get the following error
Code:
FATAL ERROR: OpenFOAM environment not configured.

    Please refer to the installation section of the README file:
    <OpenFOAM installation dir>/OpenFOAM-1.5-dev/README
    to source the OpenFOAM environment.
What's wrong with my settings? Thanks for your attention.

UPDATE

Anyway, if anyone can suggests alternative ways to easily download and install an OpenFOAM 1.5-dev version (I don't know if the CAE Team packages are old)... :-)

Last edited by vaina74; June 28, 2011 at 06:33.
vaina74 is offline   Reply With Quote

Old   June 28, 2011, 07:32
Default
  #13
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 577
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Hi,

I think the OF1.5-dev packages were made for the 2010 Gothenburg, Sweden Openfoam Workshop
So you might want to try the LiveDVD http://rcc.its.psu.edu/ofw6/ofw6_v8.iso for this years Openfoam Workshop with OF1.6-dev and 1.7.x installed side by side.

I found the LiveDVD very useful and made a permanent installation on my harddisc
elvis is offline   Reply With Quote

Old   June 28, 2011, 10:21
Default
  #14
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
Hi, Elvis.
Thanks for your reply, but I can't download anything from your link. Anyway, any idea about the problem described before? I'm quite sure it's something quite stupid about settings (folders and so on) in some files in CAE Team packages, but I can't find it.
vaina74 is offline   Reply With Quote

Old   June 28, 2011, 18:44
Default
  #15
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Maurizio,

I'm sorry, but:
Quote:
Originally Posted by vaina74 View Post
edited bashrc
Code:
foamInstall=/usr/lib64
why did you do this

I currently don't have the latest Ubuntu 11.04 64bit at hand, but my Ubuntu 10.10 64bit uses a symbolic link to do this:
Code:
ll /usr/lib64
lrwxrwxrwx 1 root root 3 20xx-xx-xx xx:xx /usr/lib64 -> lib
In other words, the installation should have worked as intended without further modifications.


But OK, assuming that the symbolic link does not exist - by the description you made:
Quote:
Originally Posted by vaina74 View Post
and sourced it, edited bashrc
You did it in the wrong order. You should have edited first (then save and close) and then source it

Try starting a new terminal window and run the desired alias again, namely OF15dev and see if it's working or not

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 29, 2011, 04:08
Default
  #16
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
You're right, I didn't realize lib64 is a symbolic link - I also use Ubuntu 10.04 LTS 64bit. Now my bahsrc file in /usr/lib64/OpenFOAM-1.5-dev/etc includes the original
Code:
foamInstall=/usr/lib
Now I'm not sure if I must add in ~/.bashrc
Code:
alias OFdev="source /usr/lib/OpenFOAM-1.5-dev/etc/bashrc"
or
Code:
alias OFdev="source /usr/lib64/OpenFOAM-1.5-dev/etc/bashrc"
Anyway, I get the same error with foamInstallationTest.

PS there was a mistake in the previous post: first I edited, then I sourced :-)
vaina74 is offline   Reply With Quote

Old   June 29, 2011, 04:27
Default
  #17
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Maurizio,

Mmm... which Ubuntu version are you using? 10.04, 10.10 or 11.04? Lucid, Maverick or Natty? Knowing that, I can install it in a VM and test this myself

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 29, 2011, 04:35
Default
  #18
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
Thanks for your attention, Bruno.
I forgot to say I use Ubuntu 10.04 LTS 64bit - I quickly edited the previous message but I wasn't enough fast :-)
vaina74 is offline   Reply With Quote

Old   June 29, 2011, 16:50
Default
  #19
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,312
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Maurizio,

I don't know if you've ever seen or read the story about the "Wizard of Oz", but there is a scene where Oz says something like this:
Quote:
Originally Posted by http://www.youtube.com/watch?v=YWyCCJ6B2WE
Pay no attention to that man behind the curtain!
In this case, Oz is foamInstallationTest.

So here's what is going on:
  1. The variable $WM_THIRD_PARTY_DIR is not set, this is why both versions won't allow foamInstallationTest to proceed peacefully.
  2. The ThirdParty folder does not exist literally in these installations because the third party applications used are installed by Ubuntu (actually, by apt-get ) from other repositories.
  3. This script is not intended to be used when installing with .deb packages! If you want to test if it works, you simply take it for a spin, i.e. run the cavity tutorial from the User Guide
    Just like the official version states:
    Quote:
    Originally Posted by http://www.openfoam.com/download/ubuntu.php#x3-10000
    Code:
    mkdir -p $FOAM_RUN
    cp -r $FOAM_TUTORIALS $FOAM_RUN
    cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity 
    blockMesh 
    icoFoam 
    paraFoam
Have fun Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 30, 2011, 05:14
Default
  #20
Senior Member
 
Join Date: Feb 2010
Posts: 213
Rep Power: 8
vaina74 is on a distinguished road
Thanks for your hint, I couldn't stop laughing for your educated quote

You're right, everything is OK with OpenFOAM 1.5-dev and OpenFOAM 1.6-ext from CAE Team PPA.
Now I'd like to change my settings, so I can use the last ParaView version. I tried to follow your great guide, but my case is slightly different. I already installed OpenFoam 2.0 via Ubuntu/Debian pack installation, so I followed your steps from point 7. I substituted .OpenFOAM with .foam in $WM_PROJECT_DIR/bin/paraFoam, but I can't find
Code:
paraview3=`$WM_PROJECT_DIR/bin/foamEtcFile apps/paraview3/bashrc` \
    && _foamSource $paraview3
unset paraview3
in $WM_PROJECT_DIR/etc/bashrc. I think I should edit something else in the file (maybe in $WM_PROJECT_DIR/etc/apps/ensightFoam/bashrc?), can you help me again please?

Best regards and THANKS.
vaina74 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
ParaFoam instalation in OpenFoam 1.5 dev titio OpenFOAM Paraview & paraFoam 2 July 24, 2010 23:24
OpenFOAM 1.5 dev LVDH OpenFOAM 98 May 5, 2010 17:01
ParaView/ParaFoam in OpenFoam 1.5 dev titio OpenFOAM Paraview & paraFoam 2 February 27, 2010 15:02
Paraview/Parafoam in OpenFoam 1.5 dev titio OpenFOAM Post-Processing 0 December 9, 2009 13:13
Paraview/Parafoam in OpenFoam 1.5 dev titio OpenFOAM Paraview & paraFoam 0 December 9, 2009 13:12


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