|December 6, 2012, 06:55||
Fail to compile OpenFoam
Join Date: Dec 2012
Posts: 2Rep Power: 0
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 :
mkdir: cannot create directory `linux64GccDPDebug': Permission denied /bin/sh: cannot create linux64GccDPDebug/options: Directory nonexistent
Did I miss something ?
|December 6, 2012, 07:38||
Join Date: Mar 2012
Location: Munich, Germany
Posts: 67Rep Power: 6
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.
|August 6, 2015, 10:37||
Join Date: Jul 2015
Location: West Lafayette, USA
Posts: 34Rep Power: 3
Hi Frank and Treima,
I'm dealing with the same problem as Frank did. How did it work Frank ?
I'm working in the option of getting permission in the folder opt/openfoam### (240 in my case) but it still doesn't work.
I introduce the command:
sudo chmod 755 ./opt/openfoam240
to give the user read/write/execute permissions (7) and the group and the world read+execute permissions (5 in both digits). I took this info from http://www.linux.org/threads/file-pe...ns-chmod.4094/.
When I run ./Allmake again (with the new permissions) the programm faces the same problem to create "linux64GccDPDebug".
Now I'm not even able to run my OpenFoam because the command (in this case pimpleDyMFoam) is not found. I tried to change the Compiler_options back to Opt and it didn't work either.
What should I do Know ? I would appreciate any help.
|August 10, 2015, 16:36||
Join Date: Mar 2009
Location: Lisbon, Portugal
Blog Entries: 39Rep Power: 103
Mmmm... OK, you want to build the Debug version, based on the Deb package for OpenFOAM.
Very well, to avoid a situation where you might damage your system, then run the following command:
sudo chown -R $USER:$USER /opt/openfoam240
I say "as a normal user", because the other way would be for you to build as root (super user), but in such a situation, you risk accidentally damaging your whole system, in case you accidentally erase/change the wrong file(s).
|Thread||Thread Starter||Forum||Replies||Last Post|
|Superlinear speedup in OpenFOAM 13||msrinath80||OpenFOAM Running, Solving & CFD||18||March 3, 2015 06:36|
|Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64||wyldckat||OpenFOAM Announcements from Other Sources||7||January 19, 2010 16:39|
|Can someone PLEASE document the development version installation||bernd||OpenFOAM Installation||76||November 14, 2008 22:51|
|Adventure of fisrst openfoam installation on Ubuntu 710||jussi||OpenFOAM Installation||0||April 24, 2008 14:25|
|OpenFOAM Debian packaging current status problems and TODOs||oseen||OpenFOAM Installation||9||August 26, 2007 13:50|