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

Problems with compiling

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 16, 2008, 06:46
Default hi all, i am trying to compi
  #1
Member
 
robert maduta
Join Date: Mar 2009
Posts: 33
Rep Power: 8
roberthino is on a distinguished road
hi all,
i am trying to compile a modified solver with ubuntu. the error message i got looks like this:

robert@robert-laptop:~/OpenFOAM/OpenFOAM-1.4.1/applications/solvers/incompressible/simpleFoam$ wmake
g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/robert/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -I/home/robert/OpenFOAM/OpenFOAM-1.4.1/src/turbulenceModels -I/home/robert/OpenFOAM/OpenFOAM-1.4.1/src/transportModels -IlnInclude -I. -I/home/robert/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread Make/linuxGccDPOpt/simpleFoam.o -L/home/robert/OpenFOAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt \
-lincompressibleTurbulenceModels -lincompressibleTransportModels -lfiniteVolume -lmeshTools -lOpenFOAM -ldl penFOAM/linux/gcc-4.2.1/lib/libiberty.a -o /home/robert/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/simpleFoam
g++: penFOAM/linux/gcc-4.2.1/lib/libiberty.a: No such file or directory
make: *** [/home/robert/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/simpleFoam] Error 1
robert@robert-laptop:~/OpenFOAM/OpenFOAM-1.4.1/applications/solvers/incompressible/simpleFoam$

do i have to install any extra package to get rid of the problem? i hope someone canhelp me
roberthino is offline   Reply With Quote

Old   March 17, 2008, 03:04
Default Hi Robert, I never had this p
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
Hi Robert,
I never had this problem, but I know it was discussed many times on the forum. Just search for it and you'll find your solution (search: libibery, first result: Cannot find liberty).

Dragos
dmoroian is offline   Reply With Quote

Old   March 17, 2008, 04:02
Default hm, well the problem is that i
  #3
Member
 
robert maduta
Join Date: Mar 2009
Posts: 33
Rep Power: 8
roberthino is on a distinguished road
hm, well the problem is that i have already done everything what is mentioned there :-)
roberthino is offline   Reply With Quote

Old   March 17, 2008, 05:04
Default Ok, so do you have the library
  #4
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 647
Rep Power: 11
dmoroian is on a distinguished road
Ok, so do you have the library in the mentioned path OpenFOAM/linux/gcc-4.2.1/lib/libiberty.a ?
If you don't, then you need to install it. One way is to compile yourself the latest gcc.
Another way (I found this on google - search ubuntu libiberty) is to install binutils-dev. It should be included with it.

Dragos
dmoroian is offline   Reply With Quote

Reply

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
Compiling problems chris1980 OpenFOAM Installation 8 June 3, 2015 15:41
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38
Problems compiling under 14 grtabor OpenFOAM Running, Solving & CFD 9 July 17, 2007 22:34
Problems on Compiling UDF in FLUENT Strawberi-KeatKeat FLUENT 1 October 4, 2006 01:50
Problems with compiling CFD code! ravi Main CFD Forum 1 July 12, 2004 11:28


All times are GMT -4. The time now is 07:26.