|
[Sponsors] |
October 25, 2013, 11:18 |
error in installation openfoam 1.6ext
|
#1 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Hi
I installed the debian pack of openfoam1.6-ext based on the instructions on openfoamwiki on Ubuntu 10.04. After I add alias in .bashrc and run startOF16ext it says that : bash: /opt/OpenFOAM-1.6-ext/bin/foamEtcFile: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/etc/settings.sh: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory There's no file named by OpenFOAM-1.6-ext in opt directory. Besides I have installed another versions of OpenFOAM 2.0.1 and OpenFOAM 2.1.0. What's the problem? I appreciate any help... Thanks |
|
October 26, 2013, 01:22 |
|
#2 | |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
type
Quote:
Also it should be noted OpenFOAM-1.6-ext is not placed in /opt directory, as i remember (im not sure) it should be in /usr
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
||
October 26, 2013, 07:45 |
|
#3 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Thanks for reply
openfoam 2.1.0 has been installed. Yes it exists in /usr/lib directory, but after I want to call it from terminal it gives the errors I mentioned in my previous post. It seems it hasn't been installed. Doesn't it need to run wmake or anything else? The instruction says it's enough to add alias... to .bashrc Regards |
|
October 26, 2013, 09:41 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Maryam: Quote:
In addition, have you started a new terminal after installing 1.6-ext? For more information, I suggest the following blog post: Advanced tips for working with the OpenFOAM shell environment Best regards, Bruno
__________________
|
||
October 26, 2013, 17:36 |
|
#5 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Hi Bruno,
As I mentioned, I followed the instructions in openfoamwiki,installation of debian pack linked by below: http://openfoamwiki.net/index.php/In...ucid_10.04_LTS For 1.6ext verision i added :alias startOF16ext="source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc" to the end of line. As well for OpenFoam2.1.0 I added . opt/openfoam210/etc/bashrc and it works. And yes. I started a new terminal after installing! How can I check that it has been installed?! Thanks, Best Regards |
|
October 26, 2013, 17:44 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maryam,
Uhm... OK. So I'm guessing you have something like this at the end of your "~/.bashrc" file: Code:
. /opt/openfoam210/etc/bashrc alias startOF16ext="source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc" Code:
alias startOF210="source /opt/openfoam210/etc/bashrc" alias startOF16ext="source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc"
Bruno
__________________
|
|
October 26, 2013, 18:39 |
|
#7 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
thanks Bruno, I changed the code as you said.
Now after entering startOF16ext it says: /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status and when I try to run 2.1.0 version it gives the same error! as in my post #1: bash: /usr/lib/openfoam210/bin/foamEtcFile: No such file or directory bash: /usr/lib/openfoam210/bin/foamCleanPath: No such file or directory bash: /usr/lib/openfoam210/bin/foamCleanPath: No such file or directory bash: /usr/lib/openfoam210/bin/foamCleanPath: No such file or directory bash: /usr/lib/openfoam210/etc/config/settings.sh: No such file or directory bash: /usr/lib/openfoam210/etc/config/aliases.sh: No such file or directory bash: /usr/lib/openfoam210/bin/foamEtcFile: No such file or directory bash: /usr/lib/openfoam210/bin/foamEtcFile: No such file or directory bash: /usr/lib/openfoam210/bin/foamCleanPath: No such file or directory bash: /usr/lib/openfoam210/bin/foamCleanPath: No such file or directory bash: /usr/lib/openfoam210/bin/foamCleanPath: No such file or directory regards |
|
October 26, 2013, 18:49 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
You can check by running: Code:
uname -m cat /etc/lsb-release
__________________
|
||
October 26, 2013, 19:00 |
|
#9 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
I started a new terminal
I don't know what happened by I once changed the line alias startOF210="source /opt/openfoam210/etc/bashrc" to alias startOF210='. /opt/openfoam210/etc/bashrc" and ran the terminal again and the following happened: maryam@maryam-desktop:~$ startOF210 /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status maryam@maryam-desktop:~$ startOF16ext bash: /opt/OpenFOAM-1.6-ext/bin/foamEtcFile: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/etc/settings.sh: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory bash: /opt/OpenFOAM-1.6-ext/bin/foamCleanPath: No such file or directory and the same is happening when I changed to the one you mentioned for alias. I'm using Ubuntu 10.04.3 LTS lucid i686. Regards |
|
October 27, 2013, 07:53 |
|
#11 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
sorry for late answer. It was time for bed and then university!
It says" # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion fi alias startOF210="source /opt/openfoam210/etc/bashrc" alias startOF16ext="source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc" Regards Maryam |
|
October 27, 2013, 08:53 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maryam,
I've finished installing the same packages on a virtual machine with an up-to-date Ubuntu 10.04 i686 and I do not get the same error as you do. But I suspect I know what the problem really is. Run the following command: Code:
ls -l $(which mpicc) /etc/alternatives/mpicc Code:
lrwxrwxrwx 1 root root 22 2012-09-28 15:10 /etc/alternatives/mpicc -> /usr/bin/mpicc.openmpi lrwxrwxrwx 1 root root 23 2012-09-28 15:10 /usr/bin/mpicc -> /etc/alternatives/mpicc Best regards, Bruno
__________________
|
|
October 27, 2013, 13:12 |
|
#13 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Hi Bruno,
It says: Code:
lrwxrwxrwx 1 root root 21 2013-10-19 16:29 /etc/alternatives/mpicc -> /usr/bin/mpicc.mpich2 lrwxrwxrwx 1 root root 23 2013-10-19 16:30 /usr/bin/mpicc -> /etc/alternatives/mpicc Best regards, Maryam |
|
October 27, 2013, 14:38 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maryam,
In theory, yes, that's the problem. Do you need MPICH2 or can it be switched to Open-MPI as the default MPI? Best regards, Bruno
__________________
|
|
October 27, 2013, 15:36 |
|
#15 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Hi Bruno,
No I don't need it.But I don't know how to change it. Besides I have another question. Does the debian pack have any difference with source installation? If not why it is said in wiki that debian installation is better for beginners? The svn and git seems not to work. So can I use the openfoamwiki.net instruction at http://openfoamwiki.net/index.php/In...1.6-ext/Ubuntu or not? If not from which repository I should use? Sorry for asking too much... Best regards, Maryam |
|
October 27, 2013, 15:59 |
|
#16 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maryam,
Quote:
And if they have, it's sort-of assumed they have some experience with that other software. Let's try taking care of fixing this problem with MPICH2. If it doesn't work, then you can try building from source. OK, it's fairly simple. Run this command: Code:
sudo update-alternatives --set mpi /usr/lib/openmpi/include Do not forget that you can only use 1 of these alias commands per terminal window!! If later on you want to switch back to MPICH2 (quoting http://stackoverflow.com/a/18728955), run: Code:
sudo update-alternatives --set mpi /usr/include/mpich2 Bruno
__________________
|
||
October 27, 2013, 17:04 |
|
#17 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Yesss. It doesn't give any error, now. Thanks so much.
But I have another problem! How can I get access to solvers and tutorial files It's different with the other version I had previously Thanks for your patiance... Best regards, Maryam |
|
October 28, 2013, 03:49 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maryam,
Run: Code:
echo $FOAM_TUTORIALS echo $FOAM_SOLVERS For more, try: Code:
export | grep FOAM Bruno
__________________
|
|
October 28, 2013, 04:07 |
|
#19 |
Member
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 13 |
Thanks Bruno
Yes I found the solvers folder but when I run echo for tutorials it says: /usr/lib/OpenFOAM-1.6-ext/tutorials But there's no such a folder in this directory. when I run : ls -a It doesn't show there's a tutorials folder Regards, Maryam |
|
October 28, 2013, 16:57 |
|
#20 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Maryam,
Sorry, I forgot that the 1.6-ext available in the PPA has a very restructured installation, with some missing parts. Almost 2 years ago I wrote this: Quote:
Best regards, Bruno
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] OpenFOAM 1.7.1 installation on LINUX UBUNTU 10.10 | electrosin | OpenFOAM Installation | 40 | May 31, 2016 06:11 |
Openfoam 2.1 installation in ubuntu 12.04 | jsm | OpenFOAM Installation | 11 | May 7, 2012 05:56 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
Installation of OpenFOAM 1.7.1 to OprnSUSE 11.2 | superfxfund | OpenFOAM Installation | 3 | November 11, 2010 03:15 |
Some Query on Installation of OpenFoam | lzgwhy | OpenFOAM Installation | 1 | July 15, 2009 04:20 |