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

[OpenFOAM.org] Stuck installing OpenFoam231

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 1 Post By alexeym
  • 1 Post By SurfMagic
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2015, 15:55
Default Stuck installing OpenFoam231
  #1
New Member
 
Bjorn
Join Date: Jan 2015
Posts: 4
Rep Power: 11
SurfMagic is on a distinguished road
Hi!

This is the first time Im attempting to use Open Foam and got stuck.

Following the instruction exactly I got the error messages that they talked about and did what Im supposed to do att those error messages so I thought everything was ok, but then at>
mkdir -p $FOAM_RUN

The computer responds, missing operand.

icoFoam -help


computer responds, unknown comand


so how did I pass everything so far and then it doesnt understand the command?

Any suggestions?

Last edited by SurfMagic; January 21, 2015 at 16:34. Reason: spelling
SurfMagic is offline   Reply With Quote

Old   January 22, 2015, 02:44
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You've got problems with environment. It was not set up (using 'source /path/to/openfoams/etc/bashrc').

Quote:
mkdir -p $FOAM_RUN

The computer responds, missing operand.
As your environment is not set up, FOAM_RUN environment variable is empty and command expands into

Code:
mkdir -p
and there's really no folder name.

Quote:
icoFoam -help


computer responds, unknown comand
The same problem. icoFoam is not on your PATH.

Please provide more details about the way you've installed the software. Also this - "Following the instruction exactly" - is rather cryptic. What instruction? Where did you find the instruction?
nepomnyi likes this.
alexeym is offline   Reply With Quote

Old   January 22, 2015, 06:09
Smile
  #3
New Member
 
Bjorn
Join Date: Jan 2015
Posts: 4
Rep Power: 11
SurfMagic is on a distinguished road
Thanks for the reply,

About instructions, I mean what is said on how to install from OpenFoam download page. Not that I call this a download Ive never seen such a "download" where you actually dont download, you seem to be programing in a window.
When I mean exactly, I mean I copied every command, with my mouse in the OpenFoam instructions, and pasted it in the command window.

I did EXACTLY as said on this page. to avoid spelling mistakes I copy-past everything. http://www.openfoam.org/download/ubuntu.php

I hope that actuall program, If Im able to ever activate it, is more user friendly that this Alien code im a user, not a developer and I hope this is a program is for people to use as well, not only to forever develop and not be able to be used by others than developer hehe. Well since this was cheeky I probably wont ge replies. We will see, but I hope people understand I just spent 2 days trying........my 5 year old daughter is pist off I dont have time with her. my wife is going to divorce me... I wonder when programs going to start become user friendly so computers can save humans time instead of waste our time....hehe
SurfMagic is offline   Reply With Quote

Old   January 22, 2015, 15:30
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 SurfMagic View Post
I hope that actuall program, If Im able to ever activate it, is more user friendly that this Alien code
Quick answer:
  1. Perhaps you should read the User Guide, before continuing... that way you won't be caught off-guard: http://www.openfoam.org/docs/user/
  2. Looking for user friendly interfaces for using OpenFOAM? http://openfoamwiki.net/index.php/GUI
  3. Trying to install OpenFOAM 2.3.1 on Ubuntu and need detailed installation instructions: http://openfoamwiki.net/index.php/In...M-2.3.1/Ubuntu
  4. Feeling lost when it comes to OpenFOAM? Here's some reading material: http://openfoamwiki.net/index.php/Tu...etting_Started
  5. Don't feel like this is the CFD toolbox you're looking for? Have a look at the "Alternative software" chapter for the OpenFOAM article at Wikipedia: http://en.wikipedia.org/wiki/OpenFOA...ative_software
Quote:
Originally Posted by SurfMagic View Post
I wonder when programs going to start become user friendly so computers can save humans time instead of waste our time....
Complexity is only in the eye of the beholder Simplicity is only a matter of dividing complex things into several simple things
wyldckat is offline   Reply With Quote

Old   January 22, 2015, 17:09
Default
  #5
New Member
 
Bjorn
Join Date: Jan 2015
Posts: 4
Rep Power: 11
SurfMagic is on a distinguished road
Hi,

The wiki help on installing OpenFoam on ubuntu failed on step 2 already. I did exactly as it said only copy-past. So I copied pasted line 1

Code:
 sudo -s
then step 2 tells me to install stuff see below, all copied and pasted.
Code:
root@ubuntu:~# apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev \
> libncurses-dev libxt-dev libopenmpi-dev openmpi-bin libboost-system-dev libboost-thread-dev libgmp-dev libmpfr-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
Package gnuplot is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gnuplot' has no installation candidate
E: Unable to locate package libopenmpi-dev
E: Unable to locate package openmpi-bin
So the wiki install wasnt any good. Any other way of installing Open Foam?

Last edited by wyldckat; January 23, 2015 at 15:55. Reason: Added [CODE][/CODE]
SurfMagic is offline   Reply With Quote

Old   January 22, 2015, 18:57
Default
  #6
New Member
 
Bjorn
Join Date: Jan 2015
Posts: 4
Rep Power: 11
SurfMagic is on a distinguished road
ok, im on my 3d day try to install one simple pogram....

bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/etc/config/settings.sh: No such file or directory
bash: /opt/OpenFOAM-2.3.1/etc/config/aliases.sh: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamEtcFile: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
bash: /opt/OpenFOAM-2.3.1/bin/foamCleanPath: No such file or directory
nepomnyi likes this.
SurfMagic is offline   Reply With Quote

Old   January 23, 2015, 16:06
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
Greetings SurfMagic,

Mmm... OK, I would guess that this says it all:
Code:
E: Unable to locate package libopenmpi-dev
E: Unable to locate package openmpi-bin
This usually means either one of 3 things:
  1. Your Ubuntu installation does not have network access to the internet.
  2. One or more repositories are not turned on.
  3. The update step didn't work as intended, namely:
    Code:
    apt-get update
Possible confirmations or solutions for each one:
  1. Try running:
    Code:
    ping google.com
    If it indicates that it's not able to reach google.com, then the internet connection is not working in your Ubuntu installation.
  2. Explained here: https://openfoamwiki.net/index.php/F..._on_Ubuntu_.3F
  3. Run:
    Code:
    apt-get update
    And let us know if it gives you any error messages.


Beyond this, it would be helpful if you could indicate which Ubuntu version you're using and if you have installed it in a real machine or a virtual machine.


Best regards,
Bruno
nepomnyi likes this.
__________________
wyldckat is offline   Reply With Quote

Old   July 18, 2020, 00:46
Default
  #8
Member
 
Ivan Nepomnyashchikh
Join Date: Sep 2019
Location: USA
Posts: 30
Blog Entries: 1
Rep Power: 6
nepomnyi is on a distinguished road
Hello dear wyldckat and SurfMagic,


I've the same problem and I was wondering if you could help me to fix it please.


I am on Linux Mint 20. I've just installed OpenFOAM from the Linux Mint software manager.

I am receiving a similar error when I try
Code:
$ mkdir -p $FOAM_RUN
:


Code:
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
I tried all the 3 steps suggested by wyldckat. Doesn't help.



I'd be grateful for help.


Thank you in advance.


Ivan


P.S. I did activate $FOAM_RUN with that source thing: commands like
Quote:
icoFoam -help
started working but
Quote:
mkdir -p $FOAM_RUN
still sends me a missing operand error.
nepomnyi is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
A simple 2D simulation getting stuck with No Error Alhasan OpenFOAM Running, Solving & CFD 3 April 5, 2020 18:01
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
Install OF 1.6.ext on Arch based distribution miro2000 OpenFOAM Installation 4 October 9, 2013 15:39
My experience Installing Elmer (Open Source Multi physics programme) on Linux Ahmed Main CFD Forum 3 August 10, 2010 14:42


All times are GMT -4. The time now is 18:33.