Reputation: 23
I installed Openfoam a couple of days ago . I could follow the instructions given here
without facing any major issues. However, when I run the command $mkdir -p $FOAM_RUN
today, I am getting this error: mkdir: missing operand
. I also tried mkdir -p "$FOAM_RUN"
(it is suggested here). Even this failed with the error message mkdir: cannot create directory `': No such file or directory
. /.bashrc file is updated as per the instructions given on Openfoam website.
Upvotes: 0
Views: 7479
Reputation: 6070
Like @unxnut said, your variable is not defined. To define the variable, you just type:
FOAM_RUN=dir_name
then your above command will create a directory called "dir_name", or whatever you assign FOAM_RUN.
Hope this helps.
Upvotes: 0
Reputation: 8839
Seems to me that your variable $FOAM_RUN
is not defined. You can confirm that by executing the command: echo $FOAM_RUN
Upvotes: 2