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

Problems in compiling solvers when using OpenFOAM13_11092006

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 7, 2008, 06:10
Default Hi everyone, I am using OF-
  #1
New Member
 
jin xu
Join Date: Mar 2009
Location: london, UK
Posts: 13
Rep Power: 8
jin_xu is on a distinguished road
Hi everyone,

I am using OF-1.3 and my OS is ubuntu 7.10. the OF-1.3 in my machine is working perfectly.

To use the FSI solver(icoFsiFoam), I download OpenFOAM-1.3_11092006 and extract it in the ~/OpenFOAM to replace the one used before(which is from OpenFOAM-1.3.General). At this moment, I can still compile the icoFsiFoam solver but I can not run a case for it as I need to rebuild everything(I find this method on the discussions about the balloon case),so I use ./AllMake in the main directory to
build everything(there is no error in this process). at the moment the re-build is done, I type "which g++" in the terminal, it is the one provided by OF, but when I close the terminal and re-open it, then again, I type"which g++", I get:/usr/bin/g++, and when I try to compile the modified icoFsiFoam solver, I get one error:

/usr/bin/ld: cannot find -liberty

I have read some posts in the board, and realise that if "which g++" give you the one provided by OpenFoam, this error will not appear.

so the problem confusing me is that why the enviroment variable is changed after I just replace the orginal OpenFOAM 1.3 directory and rebuild everything and I can not use the g++(or gcc) provided by OF

To find a way around it, I try to follow the buildinstructions in the website for an OF-dev, but I run into some problems:
(1) now I do not need run OF in paralle, do I need to install everything recommended in the website
(2) when I try to use "gmake", I was told this commond is not found, but intead I use "make", is that right?
(3) when I try to type "make install", I was told somthing like "permission denied when creat directory ...usr/tmp.....".

I am just getting started with OF and Linux,and some questions may sound very stupid, Could anyone pleae give me some hints on how to use/build the OpenFOAM-1.3_11092006 correctly

I will really appreciate your help!

jin
jin_xu is offline   Reply With Quote

Old   June 7, 2008, 06:17
Default My machine is 32 bit regard
  #2
New Member
 
jin xu
Join Date: Mar 2009
Location: london, UK
Posts: 13
Rep Power: 8
jin_xu is on a distinguished road
My machine is 32 bit

regards
jin_xu is offline   Reply With Quote

Old   June 9, 2008, 11:25
Default Hi Jin! I think it is written
  #3
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Jin!
I think it is written somewhere else on the Board: libiberty.a is provided by some rather "esoteric" packages on some distros and therefor not always present.

On my machines (RHEL/CentOS 5.x) it is provided by binutils-devel. On these distros I find out who provides this with the command "yum provides libiberty". What the equivalent command on Ubuntu would be: I don't know

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   June 11, 2008, 08:07
Default In Ubuntu it is: apt-cache
  #4
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 8
paulo is on a distinguished road
In Ubuntu it is:

apt-cache search libiberty

It gives nothing in my Kubuntu 7.10

Regards

Paulo
paulo is offline   Reply With Quote

Old   June 11, 2008, 08:10
Default I've read all the messages and
  #5
Member
 
Paulo Alexandre Costa Rocha
Join Date: Mar 2009
Posts: 71
Rep Power: 8
paulo is on a distinguished road
I've read all the messages and now foud the result of:

paulo@SEM:~$ apt-cache search liberty
liblasso-java - Liberty ID-FF library - Java bindings
liblasso3 - Liberty ID-FF library - runtime library
liblasso3-dev - Liberty ID-FF library - development kit
python-lasso - Liberty ID-FF library - Python bindings

So maybe installing the liblasso3 package helps.

Regards

Paulo
paulo is offline   Reply With Quote

Old   June 18, 2008, 17:24
Default Hi Paulo I fix this problem
  #6
Member
 
feng wang
Join Date: Mar 2009
Posts: 67
Rep Power: 8
fw407 is on a distinguished road
Hi Paulo

I fix this problem by installing binutils-devel.

Kind regards

feng
fw407 is offline   Reply With Quote

Old   July 2, 2010, 12:34
Default /usr/bin/ld: cannot find -liberty
  #7
Member
 
Dinesh Nath
Join Date: Dec 2009
Location: Kanpur, India
Posts: 39
Rep Power: 7
dinesh2n@gmail.com is on a distinguished road
yes that worked in ubuntu 10.04 too, when I was intalling OpenFOAM-1.7.0
when I did
$ ./Allwmake
/usr/bin/ld: cannot find -liberty
collect2: ld returned 1 exit status

....
...

I installed
$ sudo apt-get install binutils-dev

that solved my problem ...and I was able to compile

thank you

dinesh
IIT Kanpur
dinesh2n@gmail.com 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
Problems about solvers fw407 OpenFOAM Running, Solving & CFD 17 March 5, 2009 08:29
Problems with compiling roberthino OpenFOAM Installation 3 March 17, 2008 05:04
Problems while compiling source sahas OpenFOAM Installation 2 October 20, 2007 12:47
Problems compiling under 14 grtabor OpenFOAM Running, Solving & CFD 9 July 17, 2007 22:34


All times are GMT -4. The time now is 12:49.