LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-01-2004, 04:38 PM   #1
quordandis
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Rep: Reputation: 0
zlib not found when running ./configure


Hi All,

Okay, so I'm having this strange problem. I downloaded the source for Celestia at celestia.sourceforge.net and I'm attempting to compile it. I followed the instructions, and typed "./configure --with-kde" at the prompt, and it was going through the configure when it abruptly ended ends. Here's a paste of the latest few lines, ending in the error "zlib not found":

-----------------------
checking whether to be pedantic... no
checking whether to do profiling... no
checking whether to enable GLUT... no
checking whether to enable GTK... no
checking whether to enable Gnome... no
checking whether to enable KDE... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether we are using the GNU C++ compiler... (cached) no
checking whether g++ accepts -g... (cached) no
checking dependency style of g++... (cached) none
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
checking whether g++ supports -frepo... no
checking whether g++ supports -instances=explicit... no
checking for X... no
checking for deflate in -lz... no
configure: error: zlib not found.
----------------------

At first I thought that zlib wasn't installed, so I downloaded it from www.zlib.org and compiled it and even ran the test program that came included with it and everything seems to be running properly on the zlib end. So, my question is, what is going wrong? How can I get this program to compile properly? I'm still relatively new at Linux so please understand if I'm missing something crucial here. If it's relevant, i'm running on the StartCom Multimedia distribution (based on RH9).

ALSO: Please note the following thread for the latest info regarding this issue: http://www.linuxquestions.org/questi...43#post1269243

Thank you,
Quordandis
 
Old 11-01-2004, 04:52 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you need to install the zlib-devel rpm from your distro cd's.
 
Old 11-01-2004, 07:31 PM   #3
quordandis
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Ok,

So I downloaded and installed the zlib-devel rpm.....it installed ok... I tried to compile again, and got the SAME freakin error "zlib not found"

What SHOULD I DO?!?
 
Old 11-02-2004, 01:06 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hmmm, ok. what i'd do next is (after ensuring that running "rpm -qa | grep zlib" returns reference to zlib-devel) open up the ./configure script in an editor and see what the test is actually doing. then try to replicate it on the command line.
 
Old 11-02-2004, 07:50 PM   #5
quordandis
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Original Poster
Rep: Reputation: 0
When I typed the rpm -qa | grep zlib command, it listed both zlib and zlib-devel...as for the second part of the post about looking into the ./configure script....I don't really know what I'm looking at... I mean, I can open it and all...but it's all gibberish to me.... I don't know how to interpret the script....

--Quordandis
 
Old 11-02-2004, 08:02 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
You might find the configure.log slightly more legible. In any case, post the last couple dozen lines of it or so here -- it will show you exactly what test it ran and where it failed.
 
Old 11-02-2004, 08:15 PM   #7
quordandis
LQ Newbie
 
Registered: Aug 2003
Posts: 13

Original Poster
Rep: Reputation: 0
Well, here's a paste of the last few lines....

--------------------------------
## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=no
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_have_x=have_x=no
ac_cv_header_dlfcn_h=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_lib_z_deflate=no
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_CXXCPP=/lib/cpp
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=no
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu
am_cv_CC_dependencies_compiler_type=gcc3
am_cv_CXX_dependencies_compiler_type=none
lt_cv_deplibs_check_method=pass_all
lt_cv_file_magic_cmd='$MAGIC_CMD'
lt_cv_file_magic_test_file='/lib/libc.so.6 /lib/libc-2.3.3.so'
lt_cv_ld_reload_flag=-r
lt_cv_objdir=.libs
lt_cv_path_LD=/usr/bin/ld
lt_cv_path_NM='/usr/bin/nm -B'
lt_cv_path_SED=/bin/sed
lt_cv_prog_compiler_c_o=yes
lt_cv_prog_compiler_c_o_CXX=no
lt_cv_prog_compiler_c_o_GCJ=no
lt_cv_prog_compiler_rtti_exceptions=yes
lt_cv_prog_gnu_ld=yes
lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGISTW][ABCDGISTW]*\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p'\'''
lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\'''
lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\'''
lt_cv_sys_max_cmd_len=32768
lt_lt_cv_prog_compiler_c_o='"yes"'
lt_lt_cv_prog_compiler_c_o_CXX='"no"'
lt_lt_cv_prog_compiler_c_o_GCJ='"no"'
lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ ]\\([ABCDGISTW][ABCDGISTW]*\\)[ ][ ]*\\(\\)\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2\\3 \\3/p'\''"'
lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'\''"'
lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "celestia"
#define PACKAGE_TARNAME "celestia"
#define PACKAGE_VERSION "1.3.2"
#define PACKAGE_STRING "celestia 1.3.2"
#define PACKAGE_BUGREPORT "celestia-developers@lists.sf.net"
#define PACKAGE "celestia"
#define VERSION "1.3.2"
#ifdef __cplusplus
void exit (int);
#endif
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#ifdef __cplusplus
void exit (int);
#endif
#define X_DISPLAY_MISSING 1

configure: exit 1
--------------------------------

If anyone could make heads or tails of this.....please let me know... :-)

Thanks,
Quordandis
 
Old 08-08-2008, 05:48 PM   #8
viklahan
LQ Newbie
 
Registered: Aug 2008
Distribution: Ubuntu/Fedora/Mandriva
Posts: 7

Rep: Reputation: 0
Try without zlib

./configure --without-zlib
 
Old 08-08-2008, 08:12 PM   #9
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I ran into a similar problem where zlib-devel was installed. Turns out it was looking for perl-Compress-Zlib .
 
Old 11-28-2010, 07:51 AM   #10
R03L
Member
 
Registered: Feb 2008
Location: Emmer-compascuum
Distribution: redhat* debian* arch* slack*
Posts: 216

Rep: Reputation: 31
Post

i configured afther a litte fight celestia
[code] ~]$ whereis zlib
zlib: /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz
[/code[

Code:
]$ sh ./configure --prefix=/usr/ --with-gtk
--with-gtk becouse i am using KDE4 and not kde3

Code:
***************************************************************
** Celestia configuration complete. Now do a 'make' followed **
** by 'make install'                                         **
***************************************************************

Front-End: GTK
Use Cairo: yes
Use Lua: yes
Use Theora: no
now i needed to set up some cpp x86_64 binary's and lib's to get make running to make celestia at the c++ compilers and some other lib's and tools added to gcc
Code:
gcc --version
gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Code:
~]$ rpm -qa | grep gcc
msp430-gcc-3.2.3-4.20100805cvs.fc14.x86_64
gccxml-0.9.0-0.3.20100715.fc14.x86_64
compat-gcc-34-c++-3.4.6-20.fc14.x86_64
compat-gcc-34-g77-3.4.6-20.fc14.x86_64
gcc-objc-4.5.1-4.fc14.x86_64
gcc-4.5.1-4.fc14.x86_64
libgcc-4.5.1-4.fc14.x86_64
gcc-gnat-4.5.1-4.fc14.x86_64
avr-gcc-c++-4.5.1-2.fc14.x86_64
gcc-java-4.5.1-4.fc14.x86_64
gcc-gfortran-4.5.1-4.fc14.x86_64
mingw32-gcc-4.5.0-1.fc14.x86_64
gcc-c++-4.5.1-4.fc14.x86_64
mingw32-gcc-objc++-4.5.0-1.fc14.x86_64
mingw32-gcc-objc-4.5.0-1.fc14.x86_64
mingw32-gcc-gfortran-4.5.0-1.fc14.x86_64
avr-gcc-4.5.1-2.fc14.x86_64
mingw32-gcc-c++-4.5.0-1.fc14.x86_64
gcc-objc++-4.5.1-4.fc14.x86_64
compat-gcc-34-3.4.6-20.fc14.x86_64
libgcc-4.5.1-4.fc14.i686
and i needed to download
https://celestia.svn.sourceforge.net...runk/celestia/

the svn version of celestia to get rid of the EOF Error whit the latest GCC version

Code:
-DLUA_VER=0x050100 -DCELX  -MT command.o -MD -MP -MF .deps/command.Tpo -c -o command.o command.cpp
In file included from ../celestia/celestiacore.h:18:0,
                 from command.cpp:12:
../celengine/overlay.h:30:26: error: ‘EOF’ was not declared in this scope
make[3]: *** [command.o] Error 1
make[3]: Leaving directory `/home/****/*(trash)*bin/celestia-1.6.0/src/celengine'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/****/*(trash)*bin/celestia-1.6.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/****/*(trash)*bin/celestia-1.6.0'
make: *** [all] Error 2
so started configureing again first the svn version has no configure file at standart
http://en.wikibooks.org/wiki/Celesti...Linux_platform

here they recommend to dir to the basic celestia build folder of your svn version
than
Code:
autoreconf -iv
now there is a nice configure file
so i can start building from configure

Code:
sh ./configure --with-gtk

***************************************************************
** Celestia configuration complete. Now do a 'make' followed **
** by 'make install'                                         **
***************************************************************

Front-End: GTK
Use Cairo: yes
Use Lua: yes
Use Theora: no
so the svn version does change the zlib error and niceley configures celestia
so ather i type
Code:
make
****************
Making all in scripts
make[2]: Entering directory `/home/****/*(trash)*bin/celestia_svn/scripts'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/*****/*(trash)*bin/celestia_svn/scripts'
make[2]: Entering directory `/home/****/*(trash)*bin/celestia_svn'
make[2]: Leaving directory `/home/****/*(trash)*bin/celestia_svn'
make[1]: Leaving directory `/home/****/*(trash)*bin/celestia_svn'
configure says like above to do a make install afther finishing make
but it cannot permit
so i do a
Code:
sudo make install
***************
test -z "/usr/local/share/celestia" || /bin/mkdir -p "/usr/local/share/celestia"
 /usr/bin/install -c -p -m 644 celestia.cfg controls.txt COPYING start.cel demo.cel guide.cel '/usr/local/share/celestia'
test -z "/usr/local/share/celestia/splash" || /bin/mkdir -p "/usr/local/share/celestia/splash"
 /usr/bin/install -c -p -m 644 splash.png '/usr/local/share/celestia/splash'
make  install-data-hook
make[3]: Entering directory `/home/****/*(trash)*bin/celestia_svn'
if [ "" -a -d //celestia -a ! -h //celestia ] ; then \
        mv -f -b //celestia/* //usr/local/share/celestia/ ; \
        rmdir //celestia ; \
fi
if [ "" -a ! -h //celestia ] ; then \
        ln -s /usr/local/share/celestia //celestia ; \
fi
make[3]: Leaving directory `/home/****/*(trash)*bin/celestia_svn'
make[2]: Leaving directory `/home/****/*(trash)*bin/celestia_svn'
make[1]: Leaving directory `/home/****/*(trash)*bin/celestia_svn'
and it runs fine

Code:
]$ celestia
Initializing ARB vertex programs . . .
Loading ARB vertex program: shaders/diffuse_arb.vp
Loading ARB vertex program: shaders/specular_arb.vp
Loading ARB vertex program: shaders/haze_arb.vp
Loading ARB vertex program: shaders/bumpdiffuse_arb.vp
Loading ARB vertex program: shaders/bumphaze_arb.vp
Loading ARB vertex program: shaders/shadowtex_arb.vp
Loading ARB vertex program: shaders/diffuse_texoff_arb.vp
Loading ARB vertex program: shaders/rings_arb.vp
Loading ARB vertex program: shaders/ringshadow_arb.vp
Loading ARB vertex program: shaders/night_arb.vp
Loading ARB vertex program: shaders/glossmap_arb.vp
Loading ARB vertex program: shaders/diffuse2_arb.vp
Loading ARB vertex program: shaders/haze2_arb.vp
Loading ARB vertex program: shaders/diffuse_texoff2_arb.vp
Loading ARB vertex program: shaders/specular2_arb.vp
Loading ARB vertex program: shaders/night2_arb.vp
Loading ARB vertex program: shaders/star_arb.vp
Loading ARB vertex program: shaders/multishadow_arb.vp
Loading ARB vertex program: shaders/texphong_arb.vp
Loading ARB vertex program: shaders/texphong_alpha_arb.vp
Loading ARB vertex program: shaders/ell_galaxy_arb.vp
All ARB vertex programs loaded successfully.
Initializing NV fragment programs . . .
Loading NV fragment program: shaders/shadow_on_rings_nv.fp
Loading NV fragment program: shaders/eclipse1_nv.fp
Loading NV fragment program: shaders/eclipse2_nv.fp
Loading NV fragment program: shaders/diffuse_nv.fp
Loading NV fragment program: shaders/bumpdiffuse_nv.fp
Loading NV fragment program: shaders/texphong_nv.fp
Loading NV fragment program: shaders/texphong_alpha_nv.fp
All NV fragment programs loaded successfully.
render path: 8
WELCOME TO CELESTIA VERSION 1.6.0

Quote:
celestia 1.6.0
GTK+ Front-End
Copyright © 2001-2009 Celestia Development Team
http://celestia.sf.net
so to be nice i do a sh ./configure --with-INTERFACE afther that make afther that sudo make install and type in your root password.

but whit this i could do
Code:
sh ./configure && make && sudo make install
right?

Last edited by R03L; 11-28-2010 at 07:54 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openssh-3.6p1 configure zlib error fredward Linux - Newbie 5 12-22-2008 05:44 AM
qt-mt not found error during configure Boomba Linux - Software 4 02-15-2005 04:06 PM
xine configure error zlib does exist degraffenried13 Linux - General 2 12-13-2004 04:51 AM
'configure' command not found invinciblemk Linux - Newbie 4 02-02-2004 04:39 PM
swig not found on configure migraineboy Linux - Newbie 1 07-28-2003 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration