CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   problem with wmake (https://www.cfd-online.com/Forums/openfoam/81758-problem-wmake.html)

Hagen November 5, 2010 13:13

problem with wmake
 
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

wyldckat November 6, 2010 06:01

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

Hagen November 6, 2010 23:41

Thank you Bruno!
The second suggestion worked perfectly.

Cameron April 11, 2013 16:35

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


cutter April 12, 2013 03:45

It executes the script /opt/openfoam171/etc/bashrc. The dot is just an alias for the Linux source command.

wyldckat April 14, 2013 07:28

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

BlnPhoenix December 4, 2019 08:42

Quote:

Originally Posted by wyldckat (Post 282421)
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!


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