|
[Sponsors] |
December 15, 2010, 08:13 |
OpenFOAM-dev-1.5 from CAE Team PPA
|
#1 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
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 Thanks for your attention. Regards, Maurizio |
|
December 20, 2010, 12:34 |
|
#2 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Any idea?
|
|
December 20, 2010, 17:46 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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" Code:
foamInstall=/usr/lib Code:
gksu gedit /usr/lib/OpenFOAM-1.5-dev/etc/bashrc 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
__________________
|
|
December 22, 2010, 05:27 |
|
#4 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
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" 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? |
|
December 22, 2010, 19:42 |
|
#5 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maurizio,
Quote:
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
__________________
|
||
December 23, 2010, 05:36 |
|
#6 | |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
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:
Thanks for your help |
||
December 29, 2010, 04:08 |
|
#7 |
New Member
Aljaz Osterman
Join Date: Dec 2010
Posts: 8
Rep Power: 15 |
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 Btw, I still have only previously existing ~/OpenFOAM/...-1.7.1/ directory. Best regards, Aljaz |
|
December 29, 2010, 05:13 |
|
#8 |
New Member
Aljaz Osterman
Join Date: Dec 2010
Posts: 8
Rep Power: 15 |
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 |
|
December 29, 2010, 09:29 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Aljaz,
Quote:
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 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" Best regards, Bruno
__________________
|
||
December 30, 2010, 03:04 |
|
#10 |
New Member
Aljaz Osterman
Join Date: Dec 2010
Posts: 8
Rep Power: 15 |
Thanks,
There was indeed such line that I overlooked before. Commenting solved the problem. Best regards! |
|
December 30, 2010, 04:29 |
Adding one more ...
|
#11 |
New Member
Aljaz Osterman
Join Date: Dec 2010
Posts: 8
Rep Power: 15 |
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. |
|
June 28, 2011, 07:11 |
|
#12 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
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" Code:
foamInstall=/usr/lib64 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. 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 07:33. |
|
June 28, 2011, 08:32 |
|
#13 |
Senior Member
|
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 |
|
June 28, 2011, 11:21 |
|
#14 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
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. |
|
June 28, 2011, 19:44 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maurizio,
I'm sorry, but: 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 But OK, assuming that the symbolic link does not exist - by the description you made: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
__________________
|
|
June 29, 2011, 05:08 |
|
#16 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
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 Code:
alias OFdev="source /usr/lib/OpenFOAM-1.5-dev/etc/bashrc" Code:
alias OFdev="source /usr/lib64/OpenFOAM-1.5-dev/etc/bashrc" PS there was a mistake in the previous post: first I edited, then I sourced :-) |
|
June 29, 2011, 05:27 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
June 29, 2011, 05:35 |
|
#18 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
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 :-) |
|
June 29, 2011, 17:50 |
|
#19 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
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:
So here's what is going on:
Bruno
__________________
|
|||
June 30, 2011, 06:14 |
|
#20 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
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 Best regards and THANKS. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] ParaFoam instalation in OpenFoam 1.5 dev | titio | ParaView | 2 | July 25, 2010 00:24 |
OpenFOAM 1.5 dev | LVDH | OpenFOAM | 98 | May 5, 2010 18:01 |
[OpenFOAM] ParaView/ParaFoam in OpenFoam 1.5 dev | titio | ParaView | 2 | February 27, 2010 15:02 |
[OpenFOAM] Paraview/Parafoam in OpenFoam 1.5 dev | titio | ParaView | 0 | December 9, 2009 13:13 |
[OpenFOAM] Paraview/Parafoam in OpenFoam 1.5 dev | titio | ParaView | 0 | December 9, 2009 13:12 |