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

[OpenFOAM.org] OpenFOAM installation problem (of7 not working)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Krao

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2019, 08:04
Default OpenFOAM installation problem (of7 not working)
  #1
New Member
 
anonymous
Join Date: Sep 2019
Location: North Carolina
Posts: 25
Rep Power: 6
tenichols19 is on a distinguished road
I recently downloaded OpenFOAM on an Ubuntu 18 machine and it has been working great until I tried to run the alias "of7" which I needed for a tutorial I'm following.

After I ran "of7" I got the following message "(pathNo such file or directory"

When I downloaded I followed https://openfoam.org/download/7-ubuntu/

Any help would be greatly appreciated.
tenichols19 is offline   Reply With Quote

Old   September 19, 2019, 08:52
Default
  #2
Senior Member
 
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 7
Krao is on a distinguished road
Hi Tenichols,

Did you add this line 'source /opt/openfoam7/etc/bashrc' at the end of your bashrc? How you have defined your alias? If you post that, it would be easy to look into your problem.

Krao
Krao is offline   Reply With Quote

Old   September 19, 2019, 09:33
Default
  #3
New Member
 
anonymous
Join Date: Sep 2019
Location: North Carolina
Posts: 25
Rep Power: 6
tenichols19 is on a distinguished road
Krao

Yes I have executed the following:
"gedit ~/.bashrc"
and added "source /opt/openfoam7/etc/bashrc" at the bottom of that file and saved.

I am curious though, when I go to my bashrc file manually "gedit /opt/openfoam7/etc/bashrc" The file looks different than when I use ""gedit ~/.bashrc", what is going on here?

What do you mean by How you defined your alias?

Sorry I'm new to all this. I appreciate your help.
tenichols19 is offline   Reply With Quote

Old   September 20, 2019, 02:24
Default
  #4
Senior Member
 
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 7
Krao is on a distinguished road
You have mentioned that you have executed of7 and it is not working. Here in your case 'of7' is the alias (short name or nick name) for 'source /opt/openfoam7/etc/bashrc'. So if you have not mentioned alias, add this following line at the end of your gedit ~/.bashrc
Quote:
alias of70='source /opt/openfoam7/etc/bashrc'
''

If you want to know more about, how to define alias go to this following link and refer section 2.2.2https://openfoamwiki.net/index.php/I...with_the_Shell

If you have installed in a different directory then check out this link, it might help you bash: /opt/openfoam230/etc/bashrc: No such file or directory

Hope this is clear for you,

Krao
wyldckat likes this.

Last edited by Krao; September 20, 2019 at 10:09.
Krao is offline   Reply With Quote

Reply

Tags
alias, installation, openfoam


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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 zordiack OpenFOAM Installation 1 October 26, 2013 13:08
compiler problem with OpenFOAM installation belkadi OpenFOAM Installation 4 May 22, 2013 10:26
Problem? with Installation of OpenFOAM 2.1.0 on to Ubuntu 10.4.4 VirtualBox Stubby OpenFOAM Installation 8 March 5, 2012 15:12
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48


All times are GMT -4. The time now is 19:24.