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

[OpenFOAM.org] error in installation OpenFOAM 2.4.0 in Ubuntu 14.04

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2018, 05:28
Default error in installation OpenFOAM 2.4.0 in Ubuntu 14.04
  #1
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Hi foamers


I want to install OF2.4.0 on HOME directory of ubuntu 14.04 according to this address:

https://openfoamwiki.net/index.php/I...u#Ubuntu_14.04

but it gave this error:



when I write this command:

Code:
source $HOME/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc WM_NCOMPPROCS=4
I don't know what the problem is!

Thanks
alimea is offline   Reply With Quote

Old   August 8, 2018, 13:24
Default
  #2
Member
 
Fatih Ertinaz
Join Date: Feb 2011
Location: Istanbul
Posts: 64
Rep Power: 15
fertinaz is on a distinguished road
Hello

In fact you can see the problem in the err msg. You're sourcing:
Code:
$HOME/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc
However OpenFOAM complains:
Code:
/opt/OpenFOAM-2.4.0/......
Your OF directory is in your $HOME folder but when you source bashrc, environment seeks /opt and naturally cannot find any files.

Either modify OF/etc/bashrc to set the correct path or move OF directory to /opt. I'd do the former.

Last edited by fertinaz; August 8, 2018 at 16:53.
fertinaz is offline   Reply With Quote

Old   August 9, 2018, 08:12
Default
  #3
Senior Member
 
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12
alimea is on a distinguished road
Quote:
Originally Posted by fertinaz View Post
Hello

In fact you can see the problem in the err msg. You're sourcing:
Code:
$HOME/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc
However OpenFOAM complains:
Code:
/opt/OpenFOAM-2.4.0/......
Your OF directory is in your $HOME folder but when you source bashrc, environment seeks /opt and naturally cannot find any files.

Either modify OF/etc/bashrc to set the correct path or move OF directory to /opt. I'd do the former.

Dear Fatih

I solved the problem with deleting this line in my .bashrc file (in HOME directory):
Quote:
“source /opt/.bashrc"
The recent version was "sourced" in .bashrc file. I deleted it and compile it correctly.

Thank you my friend
alimea is offline   Reply With Quote

Reply

Tags
install, 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
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[OpenFOAM.org] OpenFOAM 2.4.x installation script for ubuntu p0kerus OpenFOAM Installation 0 June 1, 2015 16:52
[OpenFOAM.org] Installation of OpenFOAM 2.3.1 on Ubuntu 14.04 stephie OpenFOAM Installation 5 February 14, 2015 12:05
[Other] Problem in Open foam installation in ubuntu 14.04 zannatul OpenFOAM Installation 2 November 3, 2014 21:56
openFOAM installation in ubuntu 11.10 kirubhakaran OpenFOAM Installation 5 February 17, 2012 03:16


All times are GMT -4. The time now is 11:40.