CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Fail to compile OpenFoam (http://www.cfd-online.com/Forums/openfoam-installation/110254-fail-compile-openfoam.html)

Frank_Wang December 6, 2012 05:55

Fail to compile OpenFoam
 
Hi, everyone~

I installed OpenFoam2.1.1 on Ubuntu 10.04, then I try to build a debug version of it. There is what I have done and the problem I have got.:

I modified "/opt/openfoam211/etc/bashrc" by setting WM_COMPILE_OPTION to Debug.
I soursed this bashrc file in ~/.bashrc.
I checked that both flex and bison are installed
I start ./Allwmake under directory /opt/openfoam211

There came a lot of error and the original error I found is :
Code:

mkdir: cannot create directory `linux64GccDPDebug': Permission denied
    /bin/sh: cannot create linux64GccDPDebug/options: Directory nonexistent

I tried "ln -s linux64GccDPOpt linux64GccDPDebug " and it did not make a difference.

Did I miss something ?:confused:

:)Thanks~

treima December 6, 2012 06:38

Hello,

I think, you donīt have the permission to compile and install the program in /opt.
Perhaps you try your home directory for installing OpenFOAM. I think, this might solve your problem.

Or you can change the permission rights of your OpenFOAM folder in /opt, so that you have a writing accesse without being a superuser or using sudo.


regards

treima

Frank_Wang December 7, 2012 02:48

Hi, Treima.
Thanks for your advice. It works now.

Regards

Frank


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