|
[Sponsors] |
Error Compiling icoFoam of OpenFOAM-1.6.ext on Ubuntu 10.04 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 19, 2011, 21:22 |
Error Compiling icoFoam of OpenFOAM-1.6.ext on Ubuntu 10.04
|
#1 |
Member
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 15 |
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 |
|
December 20, 2011, 09:27 |
|
#2 |
Senior Member
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 16 |
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. |
|
December 20, 2011, 21:48 |
|
#3 |
Member
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 15 |
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 |
|
December 21, 2011, 05:34 |
|
#4 |
Senior Member
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 16 |
Looks like it cannot find your compiler on this machine. (g++ not found)
|
|
April 12, 2012, 13:56 |
Compiling Your Solver in OpenFOAM 210 Ubuntu 10.04
|
#5 |
New Member
Wagner C. Galuppo
Join Date: Feb 2012
Location: Portugal
Posts: 12
Rep Power: 14 |
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 |
|
April 30, 2012, 09:10 |
|
#6 |
New Member
Adam Sitko
Join Date: Apr 2012
Posts: 12
Rep Power: 14 |
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. |
|
September 17, 2020, 07:01 |
|
#7 | |
New Member
Mohammed Atta
Join Date: Dec 2019
Posts: 3
Rep Power: 7 |
Quote:
Thanks again |
||
July 2, 2024, 02:49 |
|
#8 |
New Member
tzh
Join Date: Jun 2024
Posts: 2
Rep Power: 0 |
Hi Steven,I have the same problem in compiling, I have changed it into WAVE_USER_APPBIN, but it does not help with my problem:
/writePatchToMatlab /usr/bin/ld: cannot open output file /writePatchToMatlab: Permission denied collect2: error: ld returned 1 exit status make: *** [/writePatchToMatlab] Error 1 |
|
Tags |
error compiling |
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |