CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM-3.0.1 installation problem in ubuntu-14.04.3 (https://www.cfd-online.com/Forums/openfoam-installation/172157-openfoam-3-0-1-installation-problem-ubuntu-14-04-3-a.html)

Peter Ko May 25, 2016 02:54

OpenFOAM-3.0.1 installation problem in ubuntu-14.04.3
 
Hi there,
For some reasons,
I am doing the re-install of my OF-3.0.1 and I encounter the problems as follows...

root@Linux-PC:~/OpenFOAM# uname -m
x86_64
root@Linux-PC:~/OpenFOAM# source $HOME/OpenFOAM/OpenFOAM-3.0.1/etc/bashrc WM_LABEL_SIZE=64
bash: /opt/OpenFOAM-3.0.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-3.0.1/etc/config/settings.sh: No such file or directory
bash: /opt/OpenFOAM-3.0.1/etc/config/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-3.0.1/bin/foamCleanPath: No such file or directory
root@Linux-PC:~/OpenFOAM#


How should I do to solve this problems?? I need to create the folder "opt" myself??? or the package which I download was wrong?? I very sure that I do the some command as the "https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-3.0.1/Ubuntu" told

best regards to every one,
Peter Ko

mehrdadzahir May 21, 2017 13:41

i have this problem too!!! did you find the problem??? how can i overcome this problem?

wyldckat May 27, 2017 07:54

Greetings to all!

There is a conflict of shell environments, namely another version/variant of OpenFOAM is already loaded in the shell environment and is leading the latest call to "etc/bashrc" getting confused as to where exactly the source code should be located.

@Peter Ko: My apologies, I only now noticed that you asked about this a year ago... it was around the time I was helping with things for OFW11 and I was not able to come by the forum.


Either way, all of this really depends on whether you two really want to install at "/opt" or a personal installation. Because:
  • If you want to really install at "/opt", then you need to define the environment variable "FOAM_INST_DIR" by using the following command:
    Code:

    export FOAM_INST_DIR=/opt
    then run the sourcing command:
    Code:

    source  /opt/OpenFOAM-3.0.1/etc/bashrc
  • If you want a personal installation, then get out of "root" mode and try the installation commands as a normal user.
Best regards,
Bruno


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