zlib.h not found

1,289 views
Skip to first unread message

Sparsh Mittal

unread,
Jul 20, 2013, 3:25:36 AM7/20/13
to snip...@googlegroups.com
Hello

 

The server on which I was running sniper has been recently rebuilt, so I am seeing this error:
 
zfstream.h:4:18: fatal error: zlib.h: No such file or directory
 
I have tried adding absolute path, but then some other file seems missing which is included by zlib.h
 
I tried to add -lz but it does not help.
 
I am trying to contact our IT support persons, but meanwhile, is there any workaround?

Thanks and Regards
Sparsh Mittal


Trevor Carlson

unread,
Jul 20, 2013, 1:50:59 PM7/20/13
to snip...@googlegroups.com
Sparsh,

     Which OS and version are they using? You can get this info from a file in /etc, usually /etc/issue. We can then debug the problem. It sounds like they didn't install the development headers properly.

Trevor
--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Sniper simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snipersim+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sparsh Mittal

unread,
Jul 20, 2013, 7:47:38 PM7/20/13
to snip...@googlegroups.com

Linux  2.6.32-358.el6.x86_64

Red Hat Enterprise Linux Workstation release 6.4 (Santiago)
Kernel \r on an \m
I have been using same servers for an year.
 
Thanks for your help.
 
Thanks and Regards
Sparsh Mittal




Sparsh Mittal

unread,
Jul 20, 2013, 8:11:07 PM7/20/13
to snip...@googlegroups.com
Here is the error log:

 

$ make -j16 > tempfile

In file included from sift_reader.cc:4:0:

zfstream.h:4:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make[1]: *** [sift_reader.o] Error 1
make: *** [/home/sparsh/FolderName/sift/libsift.a] Error 2
make: *** Waiting for unfinished jobs....
make[1]: *** No rule to make target `/home/sparsh/FolderName/standalone/../sift/libsift.a', needed by `/home/sparsh/FolderName/standalone/../lib/sniper'.  Stop.
make: *** [/home/sparsh/FolderName/lib/sniper] Error 2
make[1]: *** No rule to make target `/home/sparsh/FolderName/pin/../sift/libsift.a', needed by `/home/sparsh/FolderName/pin/../lib/pin_sim.so'.  Stop.
make: *** [/home/sparsh/FolderName/pin/../lib/pin_sim.so] Error 2

Thanks and Regards
Sparsh Mittal




Huan Zhang

unread,
Jul 20, 2013, 9:42:47 PM7/20/13
to snip...@googlegroups.com
Sparsh,

You can try "sudo yum upgrade && sudo yum install -y zlib-devel" to install the zlib development header.

Huan

Sparsh Mittal

unread,
Jul 20, 2013, 10:33:31 PM7/20/13
to snip...@googlegroups.com
I do not have root privileges. This is a department server.

 

Thanks for your suggestion.

Thanks and Regards
Sparsh Mittal




Sparsh Mittal

unread,
Jul 22, 2013, 10:03:54 PM7/22/13
to snip...@googlegroups.com
Would you please look into this matter. I need to complete a sniper-based work soon.
Thanks and Regards
Sparsh Mittal




Wim Heirman

unread,
Jul 23, 2013, 7:19:52 AM7/23/13
to snip...@googlegroups.com
Sparsh,

You'll need to get the zlib development libraries installed on your system to be able to compile Sniper.

If you can't install them system-wide, you can compile them from source, and add the necessary -I and -L flags to CXXFLAGS and LD_FLAGS (in common/Makefile.common) to make sure the compiler finds it.

Regards,
Wim

Sparsh Mittal

unread,
Jul 23, 2013, 7:43:10 AM7/23/13
to snip...@googlegroups.com
Thanks a lot. I will surely do that.
Thanks and Regards
Sparsh Mittal




Reply all
Reply to author
Forward
0 new messages