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

Error Compiling icoFoam of OpenFOAM-1.6.ext on Ubuntu 10.04

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 19, 2011, 21:22
Default Error Compiling icoFoam of OpenFOAM-1.6.ext on Ubuntu 10.04
  #1
Member
 
zakir
Join Date: Nov 2011
Posts: 43
Rep Power: 5
zakir hussain is on a distinguished road
hello everyone
I have installed OpenFOAM-1.6.ext and OpenFOAM2.0.0 on my computer.when i copy the solver icoFoam to my desktop ,then run:

startOF160ext
cd icoFoam/
wmake

the result is:

Making dependency list for source file icoFoam.C
SOURCE=icoFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/icoFoam.o
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:8: warning: unused variable ‘momentumPredictor’
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:11: warning: unused variable ‘transonic’
/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable ‘nOuterCorr’
g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC Make/linuxGccDPOpt/icoFoam.o -L/usr/lib/OpenFOAM-1.6-ext/lib \
-lfiniteVolume -llduSolvers -lOpenFOAM -ldl -lm -o /usr/lib/OpenFOAM-1.6-ext/applications/bin/icoFoam
/usr/bin/ld: cannot open output file /usr/lib/OpenFOAM-1.6-ext/applications/bin/icoFoam: Permission denied
collect2: ld returned 1 exit status
make: *** [/usr/lib/OpenFOAM-1.6-ext/applications/bin/icoFoam] error 1

what is the problem?

Thank you very much!
zakir
zakir hussain is offline   Reply With Quote

Old   December 20, 2011, 09:27
Default
  #2
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 6
stevenvanharen is on a distinguished road
It seems you don't have write permission in the folder you try to write the solver.

Try changing FOAM_APPBIN into FOAM_USER_APPBIN in the Make/files file.
stevenvanharen is offline   Reply With Quote

Old   December 20, 2011, 21:48
Default
  #3
Member
 
zakir
Join Date: Nov 2011
Posts: 43
Rep Power: 5
zakir hussain is on a distinguished road
Thank you for your help. I try again with your advice on another computer which installed openFOAM1.6-ext only.but this time the result is:

Making dependency list for source file icoFoam.C
SOURCE=icoFoam.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/usr/lib/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude -IlnInclude -I. -I/usr/lib/OpenFOAM-1.6-ext/src/OpenFOAM/lnInclude -I/usr/lib/OpenFOAM-1.6-ext/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/icoFoam.o
/bin/sh: g++: not found
make: *** [Make/linuxGccDPOpt/icoFoam.o] Error 127

i am new to linux, i don't know what should i do.

best regards
zakir
zakir hussain is offline   Reply With Quote

Old   December 21, 2011, 05:34
Default
  #4
Senior Member
 
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 6
stevenvanharen is on a distinguished road
Looks like it cannot find your compiler on this machine. (g++ not found)
stevenvanharen is offline   Reply With Quote

Old   April 12, 2012, 12:56
Default Compiling Your Solver in OpenFOAM 210 Ubuntu 10.04
  #5
New Member
 
Wagner de Campos Galuppo
Join Date: Feb 2012
Location: Calgary
Posts: 9
Rep Power: 5
wagnergaluppo is on a distinguished road
I created a folder in my home/user section named as "mySolversOpenFoam"
I am using the OpenFoam210 you need to change this to your OpenFoam version.

cd /opt/openfoam210/
cp -r --parents applications/solvers/incompressible/icoFoam ~/mySolversOpenFOAM/
cd ~/mySolversOpenFOAM/applications/solvers/incompressible
mv icoFoam myNewSolverName
cd myNewSolverName
wclean
mv icoFoam.C myNewSolverName.C


Modify "Make/files" to like something this:
"
myNewSolverName.C

EXE = $(FOAM_USER_APPBIN)/myNewSolverName

"

take a look to this web site too (http://www.tfd.chalmers.se/~hani/kur...lenceModel.pdf)

Now if you Open your folder ~/OpenFOAM/UserName/platforms/linux64GccDPOpt/bin/
you will find there your new solvers.
Hope it works for you
Best reagards,
Wagner
wagnergaluppo is offline   Reply With Quote

Old   April 30, 2012, 08:10
Default
  #6
New Member
 
Adam Sitko
Join Date: Apr 2012
Posts: 12
Rep Power: 5
sitekss is on a distinguished road
Hi everyone,
I passed through the compilation process, I have in bin folder the file, but I don't know how to change it in fully running case it means how to tanslate it to "0" "System" and "Constant' folders.
sitekss is offline   Reply With Quote

Reply

Tags
error compiling

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
OpenFoam 1.7.1 in Ubuntu 10.04 won't start working Leech OpenFOAM Installation 8 August 10, 2014 20:42
OpenFOAM 1.7 Ubuntu 10.04 stark22 OpenFOAM Installation 2 July 24, 2011 11:22
OpenFOAM Installation Errors on Ubuntu 10.04 ozzythewise OpenFOAM Installation 1 June 19, 2010 05:59
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


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