CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

Fail to compile OpenFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By treima

Reply
 
LinkBack Thread Tools Display Modes
Old   December 6, 2012, 06:55
Default Fail to compile OpenFoam
  #1
New Member
 
Hengjie Wang
Join Date: Dec 2012
Posts: 2
Rep Power: 0
Frank_Wang is on a distinguished road
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 ?

Thanks~
Frank_Wang is offline   Reply With Quote

Old   December 6, 2012, 07:38
Default
  #2
Member
 
Join Date: Mar 2012
Location: Munich, Germany
Posts: 67
Rep Power: 5
treima is on a distinguished road
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 likes this.
treima is offline   Reply With Quote

Old   December 7, 2012, 03:48
Default
  #3
New Member
 
Hengjie Wang
Join Date: Dec 2012
Posts: 2
Rep Power: 0
Frank_Wang is on a distinguished road
Hi, Treima.
Thanks for your advice. It works now.

Regards

Frank
Frank_Wang is offline   Reply With Quote

Reply

Tags
debug

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
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


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