So I was trying to install openfoam on ubuntu 14.04 and there are two problems I need your help with. One, a strange code appears everytime I run the terminal(I've attached a picture of it). Two, I cannot run openfoam, an error occurs, a picture of which is also attached. Please help, I am new to ubuntu.
Neither of these suggestions may work for you, but here's what I would try first:
Regarding the first issue, there's a hidden file in your home folder called
.bashrc. Open a terminal and type
ls -a which means "list files -all of them" and you should see the file. The contents of this file are executed every time you open your terminal, and I suspect that the offending line may have inadvertently been appended to it.
Again from the command line, type
gedit .bashrc to open the file in a text editor, then search (ctrl-f) for the word ELMER4.0. If it shows up, comment out the line it occurs on by preceeding it with a
#. Save the file (ctrl-s), then close the terminal and re-open it again. The error should be gone.
For the second error, the first thing I would do is to type
sudo apt-get -f install into the command line. This will list any unmet depedencies any currently installed packages may have. If anything is missing, you can attempt to install it directly with
sudo apt-get install [package-name].