I followed the instruction on website to install OpenFOAM-8 with Ubuntu 18.04 LTS, every step was great until the setting of environment variables. Like the website instructed I tried to add the following code to $HOME/.bashrc file, this was what I done:
vim .bashrcand then added these code into bashrc file at the bottom,
source $HOME/OpenFOAM/OpenFOAM-8/etc/bashrcHere is where I felt somthing wrong...Without any indications or prompts after I finished. I then saved and quit the vim, and type this in the terminal window, nothing happened also:
source $HOME/.bashrcI just followed the instruction and moved to the compiling of OpenFOAM section, I typed ./Allwmake in OpenFOAM-8 directory it gived me:
./Allwmake: 22: ./Allwmake make: not foundI also tried sudo ./Allwmake, it gived me:
Allwmake error: The OpenFOAM environment is not set. Check the OpenFOAM entries in your dot-files and source them.So I think the problem must in the setting environment variables section. Could anyone tell me how to solve this please?
10 Reset to default