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

problem with wmake

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 4 Post By wyldckat
  • 1 Post By Hagen
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 5, 2010, 13:13
Default problem with wmake
  #1
Member
 
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 15
Hagen is on a distinguished road
Hello,

if I run wmake libso to compile a turbulencemodel, I get the following message:

mkdir: cannot create directory `linuxGccDPOpt': Permission denied
/bin/sh: cannot create linuxGccDPOpt/options: Directory nonexistent
make: *** [linuxGccDPOpt/options] Error 2
/opt/openfoam171/wmake/MakefileFiles:39: linuxGccDPOpt/options: No such file or directory
make: *** No rule to make target `linuxGccDPOpt/options'. Stop.
wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created

Unfortunately I can't run wmake with sudo either.
It would be great if someone would be able to help,

Thank you
Hagen
Hagen is offline   Reply With Quote

Old   November 6, 2010, 06:01
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Hagen and welcome to the forum!

Is it your own modified turbulence model? Or are you modifying the original code?

Because each of these have different ways of handling. For the first method, read: 3.2.4 Compilation example: the pisoFoam application

If it's the second method, it will be a bit tricky:
  1. In the terminal window you have open, change to user root, by running:
    Code:
    su -
    The password it requests is the root's password. If you haven't set one for it yet (i.e., yours doesn't work), run:
    Code:
    sudo passwd
  2. Now run:
    Code:
    . /opt/openfoam171/etc/bashrc
  3. And now you can run "wmake libso" in the desired turbulence model library
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 6, 2010, 23:41
Default
  #3
Member
 
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 15
Hagen is on a distinguished road
Thank you Bruno!
The second suggestion worked perfectly.
amolrajan likes this.
Hagen is offline   Reply With Quote

Old   April 11, 2013, 16:35
Default
  #4
New Member
 
Cameron
Join Date: Apr 2013
Posts: 4
Rep Power: 13
Cameron is on a distinguished road
Thank you for the work around Bruno. Your comments helped me install an OF extension .

I am curious about the code in the second step. As the bashrc file is not an executable, what does the following line do?

Code:
 
. /opt/openfoam171/etc/bashrc
Cameron is offline   Reply With Quote

Old   April 12, 2013, 03:45
Default
  #5
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
It executes the script /opt/openfoam171/etc/bashrc. The dot is just an alias for the Linux source command.
cutter is offline   Reply With Quote

Old   April 14, 2013, 07:28
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

To complement cutter's answer, check the section "Variable related commands" in the following page: http://openfoamwiki.net/index.php/In...lated_commands

Best regards,
Bruno
amolrajan likes this.
__________________
wyldckat is offline   Reply With Quote

Old   December 4, 2019, 08:42
Default
  #7
Senior Member
 
Join Date: Aug 2014
Location: Germany
Posts: 292
Rep Power: 13
BlnPhoenix is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Hagen and welcome to the forum!

Is it your own modified turbulence model? Or are you modifying the original code?

Because each of these have different ways of handling. For the first method, read: 3.2.4 Compilation example: the pisoFoam application

If it's the second method, it will be a bit tricky:
  1. In the terminal window you have open, change to user root, by running:
    Code:
    su -
    The password it requests is the root's password. If you haven't set one for it yet (i.e., yours doesn't work), run:
    Code:
    sudo passwd
  2. Now run:
    Code:
    . /opt/openfoam171/etc/bashrc
  3. And now you can run "wmake libso" in the desired turbulence model library
Best regards,
Bruno
This also works for OpenFoam 6 for Windows 9 years later. So cheers for the solution!
BlnPhoenix is offline   Reply With Quote

Reply


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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
OpenFOAM installation problem. File missing in wmake shangzung OpenFOAM Installation 1 July 8, 2010 10:57
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 02:56.