CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   wmake error in compiling icoFoam (https://www.cfd-online.com/Forums/openfoam-programming-development/118041-wmake-error-compiling-icofoam.html)

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:
Code:

EXE = $(FOAM_USER_APPBIN)/icoFoam
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: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam - from it you should be able to learn how to create a modified OpenFOAM based solver.

Best regards,
Bruno

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.:)

Cheers
Reza


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