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

Error "cannot find -lz"

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

Reply
 
LinkBack Thread Tools 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: 8
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: 8
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

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
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 14:18
Can U find this Solution Report N229 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 23:45


All times are GMT -4. The time now is 01:34.