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

recompiling solver issue with wmake

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

Like Tree1Likes
  • 1 Post By peterhess

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2020, 13:48
Default recompiling solver issue with wmake
  #1
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 112
Rep Power: 3
joshmccraney is on a distinguished road
Hi FOAMers!

I am trying to recompile a solver in OF6 on Ubuntu 18.04, specifically interFoam.C. This file is located here: /opt/openfoam6/applications/solvers/multiphase/interFoam

Now after editing I execute "wclean" and have no issues. When I execute "wmake" I get the error
Code:
mkdir: cannot create directory ‘/opt/openfoam6/platforms/linux64GccDPInt32Opt/applications’: Permission denied
/bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/interFoam/options: Directory nonexistent
make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/interFoam/options'.  Stop.
/bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/interFoam/options: Directory nonexistent
make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/interFoam/options', needed by 'all'.  Stop.
wmake error: file '/opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/interFoam/sourceFiles' could not be created in /opt/openfoam6/applications/solvers/multiphase/interFoam
If I run as root, the command is not found. Any idea what is happening? And if I go to /opt/openfoam6 and execute ./Allmake I get the error

Code:
Allwmake /opt/openfoam6
make: Nothing to be done for 'all'.
Allwmake: no ThirdParty directory found - skipping
Allwmake src
no git description found
Allwmake src/Pstream
wmake dummy
mkdir: cannot create directory ‘/opt/openfoam6/platforms/linux64GccDPInt32Opt/src’: Permission denied
/bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options: Directory nonexistent
make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options'.  Stop.
/bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options: Directory nonexistent
make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options', needed by 'all'.  Stop.
wmake error: file '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/sourceFiles' could not be created in /opt/openfoam6/src/Pstream/dummy
joshmccraney is offline   Reply With Quote

Old   March 23, 2020, 16:37
Default
  #2
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 215
Rep Power: 11
peterhess is on a distinguished road
Hello!

You need to change the premission to be able to add/modifi files in the folder.

The most easy but "dirty" way is to change the permission for the whole folder

- Go to root folder

- Type: sudo chmod -R 777 /opt/openfoam6/

- Give the password

- If that did not works then try:

sudo chmod -R 777 /opt/

Regards

Peter
joshmccraney likes this.
peterhess is offline   Reply With Quote

Old   March 23, 2020, 16:46
Default
  #3
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 112
Rep Power: 3
joshmccraney is on a distinguished road
Quote:
Originally Posted by peterhess View Post
Hello!

You need to change the premission to be able to add/modifi files in the folder.

The most easy but "dirty" way is to change the permission for the whole folder

- Go to root folder

- Type: sudo chmod -R 777 /opt/openfoam6/

- Give the password

- If that did not works then try:

sudo chmod -R 777 /opt/

Regards

Peter
Two questions: what is the root folder? Would that be /opt/openfoam6?

Also, in opt/openfoam6 when I run ./Allmake I get the error

Code:
Allwmake /opt/openfoam6
make: Nothing to be done for 'all'.
Allwmake: no ThirdParty directory found - skipping
Allwmake src
no git description found
Allwmake src/Pstream
wmake dummy
mkdir: cannot create directory ‘/opt/openfoam6/platforms/linux64GccDPInt32Opt/src’: Permission denied
/bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options: Directory nonexistent
make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options'.  Stop.
/bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options: Directory nonexistent
make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options', needed by 'all'.  Stop.
wmake error: file '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/sourceFiles' could not be created in /opt/openfoam6/src/Pstream/dummy
Is there a way I can fix this or should I uninstall-reinstall OpenFOAM? Given the Coronavirus I have very slow internet and would prefer not to reinstall if you know a way to fix the issue?
joshmccraney is offline   Reply With Quote

Old   March 23, 2020, 17:29
Default
  #4
Senior Member
 
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 215
Rep Power: 11
peterhess is on a distinguished road
Quote:

what is the root folder? Would that be /opt/openfoam6?
Go to /opt

Type: cd ..

You are now in root!

Regards

Peter
peterhess is offline   Reply With Quote

Old   March 24, 2020, 11:03
Default
  #5
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 112
Rep Power: 3
joshmccraney is on a distinguished road
Quote:
Originally Posted by peterhess View Post
Go to /opt

Type: cd ..

You are now in root!

Regards

Peter
You're the man Peter! Thanks so much; you've no idea what a headache you've saved me from!
joshmccraney is offline   Reply With Quote

Reply

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
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 06:29
[OpenFOAM.org] Errors compiling OpenFOAM-5.0 renardf OpenFOAM Installation 1 January 12, 2018 08:35
[OpenFOAM.org] wmake problem vville OpenFOAM Installation 1 October 8, 2015 05:01
Patches for OpenFOAM 1.7 on MacOS X gschaider OpenFOAM Installation 101 September 21, 2011 05:37
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26


All times are GMT -4. The time now is 00:34.