CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [foam-extend.org] Error during the installation of foam-extend 3.1 (https://www.cfd-online.com/Forums/openfoam-installation/139153-error-during-installation-foam-extend-3-1-a.html)

shipman July 18, 2014 03:16

Error during the installation of foam-extend 3.1
 
Hi to all,

I am using openfoam version 2.2.2 with ubuntu 12.04 and tried to install foam-extend 3.1 using this instruction in this link by following the 2nd option: installation from source code: http://openfoamwiki.net/index.php/In...om_source_code

1st: i run the following command for ubuntu 12.04 at this link: http://openfoamwiki.net/index.php/In...end-3.1/Ubuntu

2nd: get the source code using following commands:

Code:

cd ~  mkdir foam cd foam git clone git://git.code.sf.net/p/openfoam-extend/foam-extend-3.1 foam-extend-3.1
Everything is ok until here. I dowloaded the foam-extend to HOME/foam.
However when i tried to compile the code as indicated here:

Code:

cd ~/foam/foam-extend-3.1 source etc/bashrc  echo "alias fe31='source \$HOME/foam/foam-extend-3.1/etc/bashrc'" >> $HOME/.bashrc
when i run the command: source etc/bashrc it gives following error:
Code:

efs@efs-desktop:~/foam/foam-extend-3.1$ source etc/bashrc
bash: /opt/foam-extend-3.1/bin/foamGetSystemInfo: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/etc/settings.sh: No such file or directory
bash: /opt/foam-extend-3.1/etc/aliases.sh: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory

i cant understand why this command search the inside /opt... if someone can help to me to install foam-extend i will be appreciated.

Thanks in advance.

B

snak July 19, 2014 02:12

Hi Baris

When you install foam-extend from a terminal with OpenFOAM settings, the error will occur.

Could you try the following steps.
1. Comment out OpenFOAM2.2.2 related part from ~/.bashrc
2. Open a terminal windows
3. compile foam-extend





Quote:

Originally Posted by shipman (Post 502095)
Hi to all,

I am using openfoam version 2.2.2 with ubuntu 12.04 and tried to install foam-extend 3.1 using this instruction in this link by following the 2nd option: installation from source code: http://openfoamwiki.net/index.php/In...om_source_code

1st: i run the following command for ubuntu 12.04 at this link: http://openfoamwiki.net/index.php/In...end-3.1/Ubuntu

2nd: get the source code using following commands:

Code:

cd ~  mkdir foam cd foam git clone git://git.code.sf.net/p/openfoam-extend/foam-extend-3.1 foam-extend-3.1
Everything is ok until here. I dowloaded the foam-extend to HOME/foam.
However when i tried to compile the code as indicated here:

Code:

cd ~/foam/foam-extend-3.1 source etc/bashrc  echo "alias fe31='source \$HOME/foam/foam-extend-3.1/etc/bashrc'" >> $HOME/.bashrc
when i run the command: source etc/bashrc it gives following error:
Code:

efs@efs-desktop:~/foam/foam-extend-3.1$ source etc/bashrc
bash: /opt/foam-extend-3.1/bin/foamGetSystemInfo: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/etc/settings.sh: No such file or directory
bash: /opt/foam-extend-3.1/etc/aliases.sh: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory
bash: /opt/foam-extend-3.1/bin/foamCleanPath: No such file or directory

i cant understand why this command search the inside /opt... if someone can help to me to install foam-extend i will be appreciated.

Thanks in advance.

B


shipman July 19, 2014 23:06

Thank you
 
1 Attachment(s)
Dear Nakagawa Sensei,

Thank you very much. Finally, i have compiled foam-extend and works well after your kind help.

I would like to ask one thing more: After running any case of tutorial in foam-extend when i try to view the result using paraview all the time it shows the attached list "open data with.." if i choose the openfoam it shows the results properly. Just i would like to ask that is there any setting not to choose all the time "openfoam" option when i view the results in foam-extend.

Thanks in advance.

Baris

behzad-cfd October 24, 2014 04:48

Quote:

Originally Posted by snak (Post 502223)
Hi Baris

When you install foam-extend from a terminal with OpenFOAM settings, the error will occur.

Could you try the following steps.
1. Comment out OpenFOAM2.2.2 related part from ~/.bashrc
2. Open a terminal windows
3. compile foam-extend

Hi
I have same problem, but i didn't get this step 1. Comment out OpenFOAM2.2.2 related part from ~/.bashrc
what should i do exactly?:confused:
I'm amateur please explain more.
I have not install any open foam version and i was trying to install extend 3.1 version on fedora 20

thegauravonline March 5, 2016 08:50

exactly

what does this mean...?

1. Comment out OpenFOAM2.2.2 related part from ~/.bashrc



confused:rolleyes:

snak March 6, 2016 04:04

Quote:

Originally Posted by thegauravonline (Post 588177)
exactly

what does this mean...?

1. Comment out OpenFOAM2.2.2 related part from ~/.bashrc



confused:rolleyes:

Please read the first post carefully. The problem was installing the foam-extend from the terminal that is already included the OpenFOAM2.2.2 settings.

If you want to use multiple versions of OpenFOAM and/or foam, you should not read automatically the setting files for specific version. Instead, you can create aliases for openfoams and execute the alias which corresponds to the version you want to use.

There are helpful pages …
http://openfoamwiki.net/index.php/In...with_the_Shell
http://www.cfd-online.com/Forums/ope...e-machine.html
http://www.cfd-online.com/Forums/blo...vironment.html

Saideep April 18, 2016 06:37

Hi guys,
I installed OF-ext 3.1 in my Home and sourced my bash with an alias.

Though the inbuilt libraries and solvers work, when I try to modify the code or use the existing code into another folder to compile that,
I get this: relocation _ has invalid symbol index error.

I guess I made a mistake somewhere but unable to find it out. Could anyone of you advice me!!

Saideep


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