|
[Sponsors] |
[OpenFOAM.org] Getting Started: mkdir missing operand |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 31, 2014, 06:18 |
Getting Started: mkdir missing operand
|
#1 | |||
Member
Join Date: Mar 2014
Location: Austrian abroad in Germany
Posts: 48
Rep Power: 12 |
I have exactly the same problem:
Quote:
Quote:
Quote:
|
||||
October 31, 2014, 08:07 |
|
#2 |
Senior Member
|
Hi,
variable FOAM_RUN is defined on line 204 of $WM_PROJECT_DIR/etc/config/settings.sh file. If yours is empty, it seems you've forgotten to set up environment with Code:
$ source <path to your OpenFOAM installation>/etc/bashrc |
|
October 31, 2014, 09:40 |
|
#3 |
Member
Join Date: Mar 2014
Location: Austrian abroad in Germany
Posts: 48
Rep Power: 12 |
Thanks! I need to learn more about OpenFOAM Environment Variables. That did solve my problem:
Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc |
|
May 31, 2018, 19:58 |
mkdir: missing operand
|
#4 |
Member
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 9 |
Hello,
I am new to OpenFOAM and Ubuntu. When I try to do the following: mkdir -p $FOAM_RUN I get the following error: mkdir: missing operand Try 'mkdir --help' for more information. Can someone help me please. Remember, I am new to OpenFOAM and UBuntu. So please be detailed with your help. |
|
June 1, 2018, 16:25 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick question/answer: Knowing which version of OpenFOAM and Ubuntu, as well as which installation instructions you've followed, would make it easier to diagnose the problem.
So, I'll try guessing that you installed OpenFOAM 5 Deb package(s) on Ubuntu 16.04 or 17.10, in which case, you will need to run the following command to activate this version of OpenFOAM: Code:
source /opt/openfoam5/etc/bashrc Then you should be able to run the command: Code:
mkdir -p $FOAM_RUN
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Solver for FSI strongly coupled | charbel | OpenFOAM Programming & Development | 58 | December 7, 2016 21:31 |
[OpenFOAM] Xlib: extension "GLX" missing on display | goldbeard | ParaView | 5 | March 24, 2013 13:12 |
errors when installing openfoam2.1 on ubuntu12.o4 | hewei | OpenFOAM Installation | 5 | May 29, 2012 07:43 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 18:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 06:25 |