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

wmake error: SourceFiles could not be created in user home

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 3 Post By anuragm
  • 1 Post By Andrew.Coughtrie

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2018, 09:17
Default wmake error: SourceFiles could not be created in user home
  #1
New Member
 
Jack
Join Date: Feb 2018
Posts: 5
Rep Power: 8
JackJohnson is on a distinguished road
Hi all,

I am completing some University work using Bash on Ubuntu on Windows interface.

I am tying to modify the SimpleFoam solver. However, the following error message appears when I execute the wmake command:

/opt/openfoam5/wmake/wmake: line 409: make: command not found
/opt/openfoam5/wmake/wmake: line 412: make: command not found
wmake error: file 'Make/linux64GccDPInt32Opt/sourceFiles' could not be created in /home/Matt-ts/OpenFOAM/Matt-ts-5.0/applications/simpleFoamDev

Prior to executing this command I have completed the following steps:

1). Copy simpleFoam solver to $WM_PROJECT_USER_DIR /applications
2). Rename the simpleFoam to a new name (which I have named as simpleFoamDev).
3). Rename source code from simpleFoam.C to simpleFoamDev.C
4). Edit files file in the make folder to:

simpleFoamDev.C
EXE = $(FOAM_USER_APPBIN)/simpleFoamDev

5). Return to SimpleFoamDev folder and enter:
wclean
wmake

This is when the error message appears as per above.

I have been following the modification guide which has been alluded to on previous posts:

http://www.cloudpyme.eu/wp-content/u...on4-Slides.pdf

Does anyone know what the issue may be?
Attached Images
File Type: jpg files file.JPG (16.4 KB, 35 views)
File Type: jpg wmake error.JPG (27.1 KB, 36 views)
JackJohnson is offline   Reply With Quote

Old   February 21, 2018, 09:46
Default
  #2
Member
 
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 12
anuragm is on a distinguished road
Quote:
Originally Posted by JackJohnson View Post
/opt/openfoam5/wmake/wmake: line 409: make: command not found
/opt/openfoam5/wmake/wmake: line 412: make: command not found
This is the real problem. You are either missing the package "make" or the path to make binary is not included in the variable PATH. First, check if you have make installed

Code:
> dpkg -l make
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name             Version       Architecture  Description
+++-================-=============-=============-======================================
ii  make             4.1-6         amd64         utility for directing compilation
Code:
> which make
/usr/bin/make
You should get an output as shown above. If not, then you would have to install either the "make" or the "build-essential" packages and make sure that the path to "make" (/usr/bin for Ubuntu) is included in the environment variable PATH

Code:
> echo $PATH
/home/user/salome_7.5.1/salome_appli_7.5.1:/usr/lib64/openmpi/bin/:/home/user/bin:/usr/games:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
anuragm is offline   Reply With Quote

Old   February 21, 2018, 09:50
Default
  #3
Member
 
Andrew Coughtrie
Join Date: May 2011
Posts: 51
Rep Power: 15
Andrew.Coughtrie is on a distinguished road
Possibly make not being installed.

Try running:

which make

If no result then you'll need to install it.

Andy
JackJohnson likes this.
Andrew.Coughtrie is offline   Reply With Quote

Old   February 21, 2018, 10:00
Default
  #4
New Member
 
Jack
Join Date: Feb 2018
Posts: 5
Rep Power: 8
JackJohnson is on a distinguished road
Thanks anuragm and Andy!

I did not have the make package installed.

Many thanks both!
JackJohnson is offline   Reply With Quote

Reply

Tags
modified solver, simplefoam, wmake, wmake error, wmake problems


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
[OpenFOAM.org] wmake problem vville OpenFOAM Installation 1 October 8, 2015 06:01
Wmake as User sven82 OpenFOAM Installation 3 August 14, 2013 04:23
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26
CFX 10 User Routine NOT in Fortran Andre CFX 14 August 9, 2006 00:03
UDF with user created surfaces Henry Lee FLUENT 2 March 23, 2006 04:24


All times are GMT -4. The time now is 19:16.