CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Cannot compile files belonging to root

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 21, 2022, 10:32
Question Cannot compile files belonging to root
  #1
New Member
 
Join Date: Nov 2022
Posts: 3
Rep Power: 3
gneisenau10 is on a distinguished road
Hello,
I want to install a module that works with an older OpenFOAM version (specifically version 6) and am trying to compile the module that I downloaded directly from GitHub.
However, whenever I try to compile it I have an error saying I cannot create a file required for the compilation.

Looking into it, I found that the owner of that path is "root" even though it is in my home directory.


I am using a Windows 11 computer, with WSL2 and Ubuntu on Windows to have access to a Linux environment.

I found this thread : From where do I get wmake?
which depicts a somewhat similar issue, but in his case it is because he did not setup his environment correctly (I did change the bashrc files in my case).


I also logged in as root to try and compile it but root does not know the wmake command, and I am a bit afraid to risk making mistakes while being the root user (I tried to add the path to the bashrc for the root user without much success).

I copied the module file directly from my windows download file, is it why?
Any help would be appreciated.
gneisenau10 is offline   Reply With Quote

Reply

Tags
compilation error, root access

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiled library vs. inInclude Files, DSMC solver crashes after run GPesch OpenFOAM Programming & Development 8 April 18, 2013 07:17
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46
MPI PROBLEMS gtg627e OpenFOAM Running, Solving & CFD 20 October 5, 2007 04:02
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51


All times are GMT -4. The time now is 03:25.