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

[OpenFOAM.org] Getting Started: mkdir missing operand

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2014, 06:18
Default Getting Started: mkdir missing operand
  #1
Member
 
Join Date: Mar 2014
Location: Austrian abroad in Germany
Posts: 48
Rep Power: 12
sisi is on a distinguished road
I have exactly the same problem:

Quote:
mkdir -p $FOAM_RUN
Error:

Quote:
mkdir: missing operand
Try `mkdir --help' for more information.
How to declare the variable???

Quote:
FOAM_RUN=run
sisi is offline   Reply With Quote

Old   October 31, 2014, 08:07
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,

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
alexeym is offline   Reply With Quote

Old   October 31, 2014, 09:40
Default
  #3
Member
 
Join Date: Mar 2014
Location: Austrian abroad in Germany
Posts: 48
Rep Power: 12
sisi is on a distinguished road
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
sisi is offline   Reply With Quote

Old   May 31, 2018, 19:58
Default mkdir: missing operand
  #4
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 76
Rep Power: 9
HappyS5 is on a distinguished road
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.
HappyS5 is offline   Reply With Quote

Old   June 1, 2018, 16:25
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 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
For more details, read the respective version's section "User Configuration" here: https://openfoam.org/download/5-0-ub...-configuration

Then you should be able to run the command:
Code:
mkdir -p $FOAM_RUN
without any problems... or at least I hope so, unless something went wrong during the installation.
__________________
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
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


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