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

Error "cannot find -lz"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2010, 10:53
Default Error "cannot find -lz"
  #1
New Member
 
Yu
Join Date: Mar 2009
Location: USA
Posts: 11
Rep Power: 17
athlonshi is on a distinguished road
Hi,

I encountered compilation error when installing OpenFOAM 1.7.1 on my ubuntu 9.0.4
The error message was shown when entering the src/OpenFOAM folder, which is "cannnot find -lz"
This was also shown when compiling Scotch decomposition library

I am not sure what the z library is. I assumed it is zlib as I noticed that in my ThirdParty-1.7.1, there was not zlib-1.2.3 folder originally when unpacking the downloaded zip file. So, I manually installed z library. This solved other compilation errors when zlib.h was missing. However, the error due to "cannot find -lz" is still there.

Does anyone have suggestion? Thanks very much in advance!
athlonshi is offline   Reply With Quote

Old   September 19, 2010, 11:19
Default
  #2
New Member
 
Yu
Join Date: Mar 2009
Location: USA
Posts: 11
Rep Power: 17
athlonshi is on a distinguished road
Problem solved after copy libz.so to /usr/local/lib
athlonshi is offline   Reply With Quote

Old   September 19, 2010, 15:59
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Yu Shi,

The package you were missing for libz is this:
Code:
zlib1g-dev
This will install both the library and the headers for it!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


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
YPlus nowhere to be find Daniel CFX 3 May 1, 2006 16:22
How to find & view location of a node in CFX? Bill CFX 2 December 6, 2005 13:18
Can U find this Solution Report N°229 Mohamed FLUENT 5 June 19, 2003 03:28
a way to find out wall-neighboring cells? Christian FLUENT 4 May 10, 2002 08:30
Where can find airfoil data with pressure distribution or aerodynamic data Ahlo Main CFD Forum 5 January 12, 1999 22:45


All times are GMT -4. The time now is 11:04.