CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User 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

Like Tree11Likes
  • 10 Post By stevenvanharen
  • 1 Post By wagnergaluppo

Reply
 
LinkBack Thread Tools Search this Thread 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: 10
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: 12
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: 10
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: 12
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, 13:56
Default Compiling Your Solver in OpenFOAM 210 Ubuntu 10.04
  #5
New Member
 
Wagner C. Galuppo
Join Date: Feb 2012
Location: Portugal
Posts: 11
Rep Power: 10
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
emjay likes this.
wagnergaluppo is offline   Reply With Quote

Old   April 30, 2012, 09:10
Default
  #6
New Member
 
Adam Sitko
Join Date: Apr 2012
Posts: 12
Rep Power: 10
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

Old   September 17, 2020, 07:01
Default
  #7
New Member
 
Mohammed Atta
Join Date: Dec 2019
Posts: 3
Rep Power: 2
Liaket is on a distinguished road
Quote:
Originally Posted by stevenvanharen View Post
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.
First thanks for help as it solves my issue. Can you please go through the error, how do you find out that the problem comes from Make/files.
Thanks again
Liaket is offline   Reply With Quote

Reply

Tags
error compiling

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 21:42
OpenFOAM 1.7 Ubuntu 10.04 stark22 OpenFOAM Installation 2 July 24, 2011 12:22
OpenFOAM Installation Errors on Ubuntu 10.04 ozzythewise OpenFOAM Installation 1 June 19, 2010 06: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 15:25


All times are GMT -4. The time now is 06:43.