LinuxQuestions.org
Review your favorite Linux distribution.
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 03-03-2005, 10:38 PM   #1
MontyPY
LQ Newbie
 
Registered: Jan 2005
Location: Iowa
Distribution: Fedora Core 3
Posts: 17

Rep: Reputation: 0
Something is VERY WRONG


Okay, ive been busy setting up my LAMP server.

i didnt seem to have the libjpeg or libpng installed. So i got both of those.

And then i was missing the ZLIB and i got that.

and now for some reason, I cant even open programs. Not even the terminal. It'll just say "Starting XXXX.." on the bottom toolbar, and then dissapear



if it helps, i started getting
rpm: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

after i installed zlib/libpng/libjpeg/



ha, now that i have apache/mysql/php I cant even open programs to use it. Irony at its best, HA-HA-HA

-_-

please please help me out folks.
 
Old 03-04-2005, 12:04 AM   #2
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
My /usr/lib;

[nonzero@blacky nonzero]# cd /usr/lib
[nonzero@blacky lib]# ls libz*
libz.a libz.so libz.so.1 libz.so.1.2.1.2
[nonzero@blacky lib]# ls -l libz*
-rwxr-xr-x 1 root root 71704 Sep 12 12:13 libz.a
lrwxrwxrwx 1 root root 15 Feb 4 23:59 libz.so -> libz.so.1.2.1.2
lrwxrwxrwx 1 root root 15 Feb 4 18:48 libz.so.1 -> libz.so.1.2.1.2
-rwxr-xr-x 1 root root 63528 Sep 12 12:13 libz.so.1.2.1.2
[nonzero@blacky lib]#

I think at the very least you've got a busted symlink 'libz.so.1 -> libz.so.1.whatever' or maybe the library got
dorked. You've got a bootdisk don't you? Boot -> mount -> you know the drill -> reboot.
Note: You've seen all those gzipped files scattered all over your harddrive, libz is responsible for upacking them
for use.

nz

EDIT: Plz. don't reload the operating system, the time you take to fix this will be time WELL
spent.

Last edited by nonzero; 03-04-2005 at 12:08 AM.
 
Old 03-04-2005, 01:12 AM   #3
MontyPY
LQ Newbie
 
Registered: Jan 2005
Location: Iowa
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
Sorry, i had to reformat
i rebooted (i know i know, im so used to windows) and when i restarted, it brought me to a propt that looked exactly like my root prompt in the terminal. It didnt even load the desktop.

Now now i have it all back up and running, and im back at the PHP install that mentioned Libz, and i wanted to get some advice before i try to fix it, because last time i obviously messed it up. when i ./configure the php i get

Configuring extensions
checking for OpenSSL support... no
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined... /usr/lib
configure: error: Cannot find libz
[root@12-216-13-252 php-4.3.10]#

any ideas?

edit/ i already installed apache 1.3.33 mysql 4.1.10 successfully,

also, the full ./configure command im giving for php is :


./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--disable-debug \
--enable-ftp \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstring \
--enable-mm=shared \
--enable-safe-mode \
--enable-track-vars \
--enable-trans-sid \
--enable-wddx=shared \
--enable-xml \
--with-dom \
--with-gd \
--with-gettext \
--with-mysql=/usr/local/mysql \
--with-regex=system \
--with-xml \
--with-zlib-dir=/usr/lib

Last edited by MontyPY; 03-04-2005 at 01:14 AM.
 
Old 03-04-2005, 01:16 AM   #4
MontyPY
LQ Newbie
 
Registered: Jan 2005
Location: Iowa
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
also, here is my /usr/lib

[root@12-216-13-252 php-4.3.10]# cd /usr/lib
[root@12-216-13-252 lib]# ls libz*
libz.so.1 libz.so.1.2.1.2
[root@12-216-13-252 lib]# ls -l libz*
lrwxrwxrwx 1 root root 15 Mar 3 22:15 libz.so.1 -> libz.so.1.2.1.2
-rwxr-xr-x 1 root root 63528 Sep 12 12:13 libz.so.1.2.1.2
[root@12-216-13-252 lib]#
 
Old 03-04-2005, 07:25 PM   #5
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
Do not issue the last '--with-zlib-dir=/usr/lib' directive (in fact issue no extra directives)
and try './configure' again. If all the compiler needs is the libraries to link against, it should find libz. If it needs the header files you would need to install the libz-devel package. Only add './configure' directives if you are sure you know what you are getting. Most builds (in my experience) go with no other options then possibly '--prefix=/usr'. If './configure' completes without error, add directives back in and see where it chokes.

nz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
what' s wrong phoenix_fei Programming 4 01-18-2005 11:56 AM
my time is wrong and calender is also wrong Paxmaster Linux - General 6 12-16-2004 01:46 AM
What's wrong? whaase Linux - Software 7 10-20-2003 01:39 AM
What am I doing wrong? funkenbooty Linux - Newbie 14 07-26-2003 03:16 AM
What did I do wrong? yakko Linux - Newbie 7 05-02-2002 08:09 PM

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

All times are GMT -5. The time now is 12:38 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration