View Issue Details

IDProjectCategoryView StatusLast Update
0002231OpenFOAMBugpublic2016-09-04 15:56
Reportersatari_ir Assigned Tochris  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
OSUbuntuOS Version16.04 
Summary0002231: when I compile, I see this fault
DescriptionInterFoam.C:44:29: fatal error: twoPhaseMixture.H: No such file or directory
compilation terminated.
/root/OpenFOAM/OpenFOAM-4.0/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/InterFoam.o' failed
make: *** [Make/linux64GccDPInt32Opt/InterFoam.o] Error 1
TagsNo tags attached.



2016-09-03 20:50

updater   ~0006809

At the last section of the instructions given here: - it states that you should exit from root/administrator mode.

Given the error message you've provided, it means that you didn't do this step.

If you wish to move the files you've downloaded already into the "/root" folder back to your own home folder, then you can use something like the following commands (while in root mode):

  mv /root/OpenFOAM /home/your_user_name/OpenFOAM
  chown -r your_user_name:your_user_name /home/your_user_name/OpenFOAM

Please don't forget to replace "your_user_name" with your own user name, namely the one when you first start the terminal/console command line.

Then log out from system administrator by running the following command:


Then continue following the instructions given here:


2016-09-03 21:56

reporter   ~0006815

Last edited: 2016-09-03 22:07

My 2ยข, what is wrong with "sudo apt-get ..." and "su -c '...'"?

Also there is [ "$(id -u)" -eq 0 ] check.


2016-09-04 15:54

manager   ~0006816

Alexey, I have gone with your suggestion for using sudo apt-get... Thanks, it avoids confusion.


2016-09-04 15:55

manager   ~0006817

Apart from improving documentation, there is no issue here.

Issue History

Date Modified Username Field Change
2016-09-03 19:15 satari_ir New Issue
2016-09-03 20:50 wyldckat Note Added: 0006809
2016-09-03 21:56 alexeym Note Added: 0006815
2016-09-03 22:07 alexeym Note Edited: 0006815
2016-09-04 15:54 chris Note Added: 0006816
2016-09-04 15:55 chris Note Added: 0006817
2016-09-04 15:55 chris Status new => resolved
2016-09-04 15:55 chris Resolution open => fixed
2016-09-04 15:55 chris Assigned To => chris