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

[OpenFOAM.org] OpenFOAM 3.0 install incomplete with Deb package on Ubuntu

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2016, 08:00
Default OpenFOAM 3.0 install incomplete with Deb package on Ubuntu
  #1
New Member
 
chanakya yadav
Join Date: Feb 2016
Posts: 3
Rep Power: 10
chanakya is on a distinguished road
I followed installation process. I did not get any error. A folder named opt is created with openfoam30 and paraviewopenfoam44. But when I use code
icoFoam -help
it is showing that icoFoam is not a command. I used the user configuration process first two steps exactly. with a dot for bashrc.
chanakya is offline   Reply With Quote

Old   February 27, 2016, 10:48
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: I guess you followed the instructions given here: http://www.openfoam.org/download/ubuntu.php

In the section "User Configuration" is explained in detail how to source the script that loads up the OpenFOAM environment.
Nonetheless, please run the following command, so that we can diagnose the problem:
Code:
grep "bashrc" ~/.bashrc
__________________
wyldckat is offline   Reply With Quote

Old   February 27, 2016, 23:44
Default wyldckat, I have tried your code line.
  #3
New Member
 
chanakya yadav
Join Date: Feb 2016
Posts: 3
Rep Power: 10
chanakya is on a distinguished road
Code:
source# ~/.bashrc: executed by bash(1) for non-login shells.
#source /opt/openfoam30/etc/bashrc
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
. opt/openfoam30/etc/bashrc
I got this in the terminal. thank you for quick response.

Code:
chanakya@chanakya-Inspiron-3542:~$ sudo apt-get install openfoam30
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openfoam30 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
chanakya@chanakya-Inspiron-3542:~$ sudo apt-get install paraviewopenfoam44
Reading package lists... Done
Building dependency tree       
Reading state information... Done
paraviewopenfoam44 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Last edited by wyldckat; March 6, 2016 at 12:40. Reason: Added [CODE][/CODE] markers
chanakya is offline   Reply With Quote

Old   March 6, 2016, 12:42
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by chanakya View Post
Code:
source# ~/.bashrc: executed by bash(1) for non-login shells.
#source /opt/openfoam30/etc/bashrc
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
. opt/openfoam30/etc/bashrc
I got this in the terminal. thank you for quick response.
Quick answer:
  1. You need to edit the file "~/.bashrc" with a text editor.
  2. Search for this line:
    Code:
    . opt/openfoam30/etc/bashrc
  3. There is a slash character "/" missing before the "opt" name. What I mean is that you need to change that line for this line:
    Code:
    . /opt/openfoam30/etc/bashrc
  4. Save and close the file, within the text editor.
  5. Start a new terminal window or tab and it should now work as intended.
wyldckat is offline   Reply With Quote

Reply


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
[swak4Foam] how does install swak4foam with OpenFOAM 3.0? milad653279 OpenFOAM Community Contributions 24 December 29, 2015 08:49
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
OpenFOAM install on Ubuntu Natty 11.04 bkubicek OpenFOAM 13 May 26, 2011 06:48
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30


All times are GMT -4. The time now is 09:50.