hystrath / hyStrath

Hypersonic / Rarefied gas dynamics code developments (GPL-3.0)
https://hystrath.github.io/
GNU General Public License v3.0
219 stars 109 forks source link

Unable to install hy2Foam #125

Open Hritam2002 opened 1 year ago

Hritam2002 commented 1 year ago

I am using Ubuntu 22.04, and OpenFOAM v1706 has been installed successfully, as the test cases are running. But I am unable to install hy2Foam, a message "FAIL: check logInstall-CFD" was coming. I checked the logInstall-CFD file and it contains only "mkdir: missing operand Try 'mkdir --help' for more information."

Can anybody help me out?

logInstall-CFD.txt

vincentcasseau commented 1 year ago

Hello,

This means you had not loaded OpenFOAM before running the install command. The variable $WM_PROJECT_USER_DIR was found to be undefined. Please type the following line and try again.

source $HOME/OpenFOAM/OpenFOAM-v1706/etc/bashrc
Hritam2002 commented 1 year ago

bashrc_source logInstall-CFD_nano I have sourced the "bashrc" file, still the result is the same. That logInstall-CFD file still says the same, "mkdir missing operand". But I can access the $WM_PROJECT_USER_DIR myself, which can be seen in the screenshot attached. I have attached relevant screenshots with it. Please help me out.

vincentcasseau commented 1 year ago

Thanks.

https://hystrath.github.io/installation/

Could you please try without using sudo and set NUMPROCS to an integer value?

./install.sh NUMPROCS 2>/dev/null
Hritam2002 commented 1 year ago

did the same sir, didn't work

vincentcasseau commented 1 year ago

Please add debug statements in the install script. For example:

gedit build/install-CFD.sh

Add on line 15:

echo $currentDir
echo $sendingDir

If $sendingDir is set, please try to substitute

mkdir -p $sendingDir

for

mkdir -p "$sendingDir"

Taken from: https://stackoverflow.com/questions/2743673/mkdir-error-in-bash-script

Praneta-2401 commented 8 months ago

Hi @vincentcasseau, my name is Praneta Mahawar, and I continue to face this issue (even my friend and a professor of mine is unable to help us, though he was able to install it 4-5 years ago), would be highly obliged to get some further guidance from you on this issue. P.S: I've already tried the steps shown above, but met no success. I'm using Ubuntu 20.04 LTS...Thanks in advance