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

[OpenFOAM.com] There is no bin folder inside the installation directory

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2023, 08:39
Default There is no bin folder inside the installation directory
  #1
Member
 
Foad
Join Date: Aug 2017
Posts: 58
Rep Power: 8
foadsf is on a distinguished road
Following this post, I installed OpenFOAM inside the WSL2/Ubuntu from the default repository:

Code:
sudo apt install openfoam
I found the bashrc file in

Code:
/usr/share/openfoam/etc/
directory, but when I source the bashrc file I get the error messages:

Quote:
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamCleanPath: No such file or directory
-bash: /usr/share/openfoam/bin/foamCleanPath: No such file or directory
-bash: /usr/share/openfoam/bin/foamCleanPath: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamEtcFile: No such file or directory
-bash: /usr/share/openfoam/bin/foamCleanPath: No such file or directory
-bash: /usr/share/openfoam/bin/foamCleanPath: No such file or directory
-bash: /usr/share/openfoam/bin/foamCleanPath: No such file or directory
indicating that there is no bin folder in the installation location. Please help me understand what the problem is and how I can resolve it.

P.S. for those who end up here, the OpenFOAM examples are installed in the "/usr/share/doc/openfoam-examples/" directory.

Last edited by foadsf; January 6, 2023 at 05:19.
foadsf is offline   Reply With Quote

Old   January 4, 2023, 10:00
Default
  #2
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8
s1291 is on a distinguished road
To correctly install OpenFOAM ESI versions, see the instructions here:

https://develop.openfoam.com/Develop.../debian#ubuntu
__________________
"When in doubt, use brute force." -- Ken Thompson
s1291 is offline   Reply With Quote

Old   January 6, 2023, 06:16
Default
  #3
Member
 
Foad
Join Date: Aug 2017
Posts: 58
Rep Power: 8
foadsf is on a distinguished road
Following my own instruction here, I ran the command

Code:
bash --debug /usr/share/openfoam/etc/bashrc
and realized the files "setup" and "functions", in the "/usr/share/openfoam/etc/config.sh/" directory, have several references to the above files. By commenting them out I could stop the error messages (check the modified scripts in the attachments). But please consider that this is not a solution at all.
Attached Files
File Type: zip scripts.zip (3.9 KB, 3 views)

Last edited by foadsf; January 6, 2023 at 09:37.
foadsf is offline   Reply With Quote

Old   January 6, 2023, 14:24
Default
  #4
Member
 
s1291's Avatar
 
Join Date: Aug 2017
Location: Algeria
Posts: 98
Rep Power: 8
s1291 is on a distinguished road
Unless you've got a very good reason for using an outdated version (v1906) with a potentially faulty setup, you're setting yourself up for a lot of headaches.

It's just two commands away to get a fully functioning recent version (such as v2212):


Code:
sudo apt remove openfoam  -y
wget -q -O - https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt install openfoam2212-default
__________________
"When in doubt, use brute force." -- Ken Thompson
s1291 is offline   Reply With Quote

Reply

Tags
bashrc, ubuntu, wsl2


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ansys Installation on Docker Container mohsen.shiea ANSYS 11 March 14, 2024 11:18
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 16:18
[OpenFOAM.com] Installation of OpenFOAM 1.7.1 on Ubuntu 16.04 MM_Khan OpenFOAM Installation 11 September 3, 2017 09:22
Ansys Licence Serve on Ubuntu 16.04 LTS david.pasquale ANSYS 2 January 20, 2017 11:52
meshing F1 front wing Steve FLUENT 0 April 17, 2003 12:37


All times are GMT -4. The time now is 03:02.