Problem of setting environment variables for installation of OpenFOAM-8

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 .bashrc

and then added these code into bashrc file at the bottom,

 source $HOME/OpenFOAM/OpenFOAM-8/etc/bashrc

Here 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/.bashrc

I 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 found

I 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

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like