CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Stuck installing OpenFoam231 (https://www.cfd-online.com/Forums/openfoam-installation/147452-stuck-installing-openfoam231.html)

SurfMagic January 21, 2015 14:55

Stuck installing OpenFoam231
 
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?

alexeym January 22, 2015 01:44

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?

SurfMagic January 22, 2015 05:09

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

wyldckat January 22, 2015 14:30

Quote:

Originally Posted by SurfMagic (Post 528566)
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 (Post 528566)
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 :)

SurfMagic January 22, 2015 16:09

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?

SurfMagic January 22, 2015 17:57

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

wyldckat January 23, 2015 15:06

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 July 17, 2020 23:46

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.


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