08-29-2006
OK, I figured it out.
zlib function uncompress uses inflateInit(), which accepts zlib format, not gzip. I've changed inflateInit() to inflateInit2() and it worked.
However, for 2nd argument of inflateInit2(), I've tried various numbers but it worked for only 24,30,47. Which means at least 16MB of buffer! How can I get around this now?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear friends, i'm trying to uncompress an "...... tar.z" file.
I'd readen that using the "uncompress" command it could be made but............... God! I can't!!!!!
I tried a lot of times using the Terminal but the uncompress command doesn't obeys!!! :):) .
Please i need to know how to... (3 Replies)
Discussion started by: gussiglo21
3 Replies
2. UNIX for Advanced & Expert Users
Hi All,
is it possible to uncompress on another directory ? At the moment I have my file to uncompress on /u07 that has 5GB free. When uncompressed it would be more then 6G , I want to send uncompressed file on another directory where I have more free space. is it possible ? How ?
Many thanks... (3 Replies)
Discussion started by: big123456
3 Replies
3. UNIX for Advanced & Expert Users
on my suse linux, there is no compress and uncompress command. however, a program need these command to be installed properly. my question is how i can install these command and where to find them, thanks! (6 Replies)
Discussion started by: fredao
6 Replies
4. Programming
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
5. UNIX for Advanced & Expert Users
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
6. Shell Programming and Scripting
Hi,
I am restoring the database backup using compress utility(/usr/bin/compress) which takes around 1 hour.For restoration i use uncompress utility(/usr/bin/uncompress) which is taking nearly 6-7 hours.Can someone let me know how to reduce this time.I have pasted below the line from script... (2 Replies)
Discussion started by: santtarius
2 Replies
7. Solaris
I've downloaded the tomcat from http://archive.apache.org/dist/jakarta/tomcat-5/v5.0.30/bin/
at window 2000 and then ftp to Solaris 5.9 in binary mode.
gunzip -c jakarta-tomcat-5.0.30.tar.gz | tar -xvf -
tar: directory checksum error
if try this one,
gzip -d jakarta-tomcat-5.0.30.tar.gz... (2 Replies)
Discussion started by: sbox
2 Replies
8. BSD
Is there a port or shorthand way of installing the zlib library on FreeBSD? I currently use the following:
wget http://zlib.net/zlib-1.2.5.tar.gz
tar zxf zlib*.gz
cd zlib*\.
./configure --libdir=/usr/lib --includedir=/usr/include
make install clean
This is somewhat contrived code and for a... (4 Replies)
Discussion started by: figaro
4 Replies
9. Shell Programming and Scripting
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
10. UNIX for Advanced & Expert Users
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