Installing zlib


 
Thread Tools Search this Thread
Operating Systems BSD Installing zlib
# 1  
Old 08-26-2010
Installing zlib

Is there a port or shorthand way of installing the zlib library on FreeBSD? I currently use the following:
Code:
wget http://zlib.net/zlib-1.2.5.tar.gz
tar zxf zlib*.gz
cd zlib*\.[0-9]
./configure --libdir=/usr/lib --includedir=/usr/include
make install clean

This is somewhat contrived code and for a library as common as zlib I would guess there is an easier way to install it.

Last edited by zaxxon; 08-26-2010 at 10:54 AM.. Reason: Missing words in title; zaxxon: Subject was utterly short but user noticed already.
# 2  
Old 08-30-2010
Isn't zlib included in the base system?

I don't have a FreeBSD system available right now, and I'm not certain how to find out officially otherwise, but I noticed these two lines in kernels/generic.mtree of the release notes:
Code:
    zlib.ko         size=44040 md5digest=c97349aa57182bfa8af8323d4ddc7d5a
    zlib.ko.symbols size=125040 md5digest=1b4e2145fe9a6f3a0863c518ef4d73ef

I think that mean zlib is included.
# 3  
Old 08-31-2010
# 4  
Old 08-31-2010
Hey pludi,

I quickly searched the online list of ports packages and zlib isn't there--which surprised me. That, plus the fact that I did find several packages that require zlib, made me wonder if it's part of the base system.

I think it is.
# 5  
Old 08-31-2010
Thats actually a good point and I will check it on a clean FreeBSD system and get back with any issues.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Problem compiling glib using static zlib

Hello I have been trying to compile glib 2.28 with needs Zlib. During the compilation process I received these messages Then giving a look at the configure of Zlib, there was an option to static link it and I obviously used it. So I think I can solve it by compiling a shared zlib, or by... (4 Replies)
Discussion started by: colt
4 Replies

2. Shell Programming and Scripting

zlib.h in custom path

I am trying to configure gpac. I get the error as follows. # ./configure error: zlib not found on system or in local libs I have installed zlib on custom path /usr/local/myapps. I know the above error occurs when devel package or .h file is not present. Its present on the server. # ll... (7 Replies)
Discussion started by: anilcliff
7 Replies

3. Ubuntu

Re Installing windows XP after installing KUBUNTU

Hi I have dual operating system i.e Win XP and KUBUNTU. Now my windows XP is corrupted and i want to reinstall Win XP. So i just want to know Shall i have to reinstall Linux also or i can only reinstall win xp without affecting linux installation. Thanks Sarbjit (3 Replies)
Discussion started by: sarbjit
3 Replies

4. UNIX for Advanced & Expert Users

how to compress .zlib file

Hi all, I wanted to know how to compress a .zlib file.. an working on unix so pls suggest accordingly. the file is pretty big(500 mb) also i would like to know any weblinks where i can get more info on various compressions commands in unix i have tried zip,compress commands but i have not... (1 Reply)
Discussion started by: wrapster
1 Replies

5. Linux

Installing Firefox and now ended up installing latest glibc

Hi all, I wanted to install the latest version of firefox 2 but it seems when I attempt to install it, it seems to be saying it is looking for c libraries version 2.3? I believe I currently have an older version of the c libraries. I am currently running Sun's JDS Linux 2003. My Mozilla web... (1 Reply)
Discussion started by: scriptingmani
1 Replies

6. AIX

Installing TL/ML's

Question from an AIX noob -- I recently installed an AIX box with what I thought was recent 5.3 media. After the install it was at ML 5300-00. My question is, it seems as if each ML/TL needs to be installed prior to the next - which currently makes 6(?) updates. Am I missing something - is... (4 Replies)
Discussion started by: tb0ne
4 Replies

7. Programming

problem about using zlib to uncompress gzip in memory

I wrote a function which for uncompressing data for gzip or deflate format using zlib,see followed code; source param is pointed to the compressed data,len param is the size of compressed data, dest param is for returning the address which pointed to the uncompressed data;the last gzip param tell... (0 Replies)
Discussion started by: iwishfine
0 Replies

8. Programming

uncompress of zlib

When I gzopen & gzread from a gzip file, it works OK. But I when I try to uncompress the same data from memory (either by reading to memory with fread or mmap()ing) using decompress, I get Z_DATA_ERROR. Is it because gzip file has some kind of headers that uncompress doesn't want? How can I get... (3 Replies)
Discussion started by: rayne
3 Replies

9. Debian

installing X?

I just reformatted my computer because of a bad tip I and I installed only the base-system to add what I'd want later. My question is how/where can I get a good X-server for Debian? I'm so used to gnome and don't really like it and want to try something else. I heard about something called: Xfree... (1 Reply)
Discussion started by: riwa
1 Replies

10. Linux

Help Installing RH.9

Yea, im having a little confusion towards installing red-hat using promise controllers. It was more easy with Windows cause it prompts me and i just press F6 at the beginning of the installation and then it gives me the list of the controllers i need (from a floppy). I tried using the noprobe on... (5 Replies)
Discussion started by: kyoist
5 Replies
Login or Register to Ask a Question