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

problem with wmake

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

Like Tree3Likes
  • 1 Post By wyldckat
  • 1 Post By Hagen
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   November 5, 2010, 14:13
Default problem with wmake
  #1
New Member
 
Hagen Müller
Join Date: Nov 2010
Posts: 18
Rep Power: 5
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, 07:01
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,997
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
amolrajan likes this.
wyldckat is offline   Reply With Quote

Old   November 7, 2010, 00:41
Default
  #3
New Member
 
Hagen Müller
Join Date: Nov 2010
Posts: 18
Rep Power: 5
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: 3
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
Member
 
Join Date: Mar 2010
Posts: 62
Rep Power: 6
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 6,997
Blog Entries: 32
Rep Power: 69
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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

Reply

Thread Tools
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 On
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 05:32.