CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   wmake error in compiling icoFoam (

haghgoo_reza May 20, 2013 04:48

wmake error in compiling icoFoam
Hello All,

I am a new user of OpenFOAM and I have already installed OpenFOAM 2.2.0 on ubuntu.
I'm trying to run the command "wmake" for icoFoam but it does not work. the out put is:

mkdir: cannot create directory `linux64GccDPOpt': Permission denied
/bin/sh: 1: cannot create linux64GccDPOpt/options: Directory nonexistent
make: *** [linux64GccDPOpt/options] Error 2
/opt/openfoam220/wmake/MakefileFiles:40: linux64GccDPOpt/options: No such file or directory
make: *** No rule to make target `linux64GccDPOpt/options'. Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /opt/openfoam220/applications/solvers/incompressible/icoFoam

could you please help me understand what is wrong with it?

nimasam May 20, 2013 08:45

Dear Reza

you installed a deb package, so your source files are in /opt address.
in opt you dont access to writing permission;) you should be root,
so you can go to Make folder, and in file and change the address where binary file is going to be created to user it would be like

this would solve your problem

wyldckat May 20, 2013 16:59

Greetings to all!

@Reza: To add to the answer by Nimasam, I suggest that you have a look into this tutorial: - from it you should be able to learn how to create a modified OpenFOAM based solver.

Best regards,

haghgoo_reza May 20, 2013 20:44

wmake error
Thank you both Nima and Bruno for your reply.
I uninstalled the Deb pack and installed source pack on my system. Apparently, it does work well.:)


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