LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2017, 11:54 AM   #1
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Rep: Reputation: Disabled
error getting zlib package for linux


Please suggest,

I am on RHEL 6.8 and need zlib 1.2.5 or later version. currently have 1.2.3

when I try to install,

$ rpm -i zlib-1.2.5-8.1.x86_64.rpm
warning: zlib-1.2.5-8.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
********file /lib64/libz.so.1 from install of zlib-1.2.5-8.1.x86_64 conflicts with file from package zlib-1.2.3-29.el6.x86_64

:/lib64 $ ll libz*

-rwxr-xr-x 1 root root libz.so.1.2.3
lrwxrwxrwx 1 root root*libz.so.1 -> libz.so.1.2.3
Rm libz.so.1 for the libz 1.2.5 install

now, when I try to remove the link, it seems breaking rpm and yum.

# ls -l libz*
lrwxrwxrwx 1 root root libz.so.1 -> libz.so.1.2.3
-rwxr-xr-x 1 root root libz.so.1.2.3

# unlink libz.so.1
# pwd
/lib64
lib64]# rpm -qa |grep -i libz
rpm: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory


I desperately need new zlib version, any work around I can perform?
 
Old 04-26-2017, 12:25 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,828

Rep: Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783
Quote:
Originally Posted by woolawson123 View Post
Please suggest,
I am on RHEL 6.8 and need zlib 1.2.5 or later version. currently have 1.2.3 when I try to install,

$ rpm -i zlib-1.2.5-8.1.x86_64.rpm
warning: zlib-1.2.5-8.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
********file /lib64/libz.so.1 from install of zlib-1.2.5-8.1.x86_64 conflicts with file from package zlib-1.2.3-29.el6.x86_64

:/lib64 $ ll libz*

-rwxr-xr-x 1 root root libz.so.1.2.3
lrwxrwxrwx 1 root root*libz.so.1 -> libz.so.1.2.3
Rm libz.so.1 for the libz 1.2.5 install

now, when I try to remove the link, it seems breaking rpm and yum.

# ls -l libz*
lrwxrwxrwx 1 root root libz.so.1 -> libz.so.1.2.3
-rwxr-xr-x 1 root root libz.so.1.2.3

# unlink libz.so.1
# pwd
/lib64
lib64]# rpm -qa |grep -i libz
rpm: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Right...because if you read the message you got, you didn't actually INSTALL it...it told you it conflicted and exited. Never installed the new zlib. You then removed the one you DID have installed manually, which broke things. An RPM file can be manually extracted...make a directory somewhere in your $HOME, copy the RPM file to it, and run
Code:
 rpm2cpio ./<some file name>.rpm | cpio -idmv
Then copy the ONE file back to the location where you removed it, and see if you can then run RPM commands. After that, do not use RPM to install packages...yum exists for a reason, because it takes care of dependencies for you. Without telling rpm to forcibly update/upgrade a package (see the man page on the rpm command), it won't. Yum asks, and takes care of housekeeping for you...removing files manually is bad.

And didn't you say before that you are not the system admin?
http://www.linuxquestions.org/questi...5/#post5696115

...and you were advised to call Red Hat support, since RHEL 6.8 is a commercial, pay for distro:
http://www.linuxquestions.org/questi...6/#post5660462
Quote:
I desperately need new zlib version, any work around I can perform?
The best thing to avoid such problems is to pay for the commercial distros you use, let your admins do their jobs and use the right tools for the job.
 
Old 04-26-2017, 12:27 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.6 + 50+ other Linux OS, for test only.
Posts: 17,251

Rep: Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564Reputation: 3564
You can always install a later version to a hidden location.
And export the location when you start the application requiring v1.2.5

zlib compiles in seconds.
$ configure --prefix=/opt/zlib && make
 
1 members found this post helpful.
Old 04-26-2017, 01:11 PM   #4
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
yes, I am not sys admin and most probably shouldn't be matter for most people in community, never had any hidden or misleading purpose. Since we have new sys admin, we try to help any possible way. for us, its one person/sys. admin issue, its group/team issue and we will continue doing it.

Thanks all for commenting...
 
Old 04-26-2017, 01:33 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,828

Rep: Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783
Quote:
Originally Posted by woolawson123 View Post
yes, I am not sys admin and most probably shouldn't be matter for most people in community, never had any hidden or misleading purpose. Since we have new sys admin, we try to help any possible way. for us, its one person/sys. admin issue, its group/team issue and we will continue doing it. Thanks all for commenting...
If you're not the systems admin, you are not helping the person who is. If it's not your job, and you don't have the knowledge to do it, you shouldn't. If you worked as an accountant at a garage, you wouldn't just go out and start trying to fix cars would you?? Would you appreciate it if one of the mechanics came in and started trying to do the accounts??

You 'helped' the person that was hired, by breaking a working server, giving them one more thing to fix. Again, if you have RHEL 6.8 you need to be paying for it, which would let you have used the correct "yum" command to do the installation. Your system, so you're free to do what you'd like, of course. But consider how things have turned out by doing so.

"yum upgrade zlib" should have been all you had to do. Reading the man page on RPM.."rpm -Uvh <file>" would have forced it in, and probably broken something else.

Last edited by TB0ne; 04-26-2017 at 01:41 PM.
 
Old 04-26-2017, 01:54 PM   #6
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
Trust me that is really bad example, if I am an accountant at garage and mechanic need some help, i would do it as I have some knowledge of car. I am on planet earth where people helps people. And guess what, we didn't break anything, we still have older version zlib - its just not compatible with 3rd party tool, so we just trying to get new version of zlib on board.

And "WE" will fix this,

Thanks again for your comment (of-course about zlib).
 
Old 04-26-2017, 02:05 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,828

Rep: Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783
Quote:
Originally Posted by woolawson123 View Post
Trust me that is really bad example, if I am an accountant at garage and mechanic need some help, i would do it as I have some knowledge of car. I am on planet earth where people helps people.
Good for you. Replace it with whatever you'd like, ok??? It was an example.

Yes you should help folks...if you know how to help them. Otherwise, you cause the people who DO know more trouble than you wind up helping. This is a good example.
Quote:
And guess what, we didn't break anything, we still have older version zlib - its just not compatible with 3rd party tool, so we just trying to get new version of zlib on board. And "WE" will fix this,
You didn't break anything??? Then how come in your first post you said that after you messed with it, you couldn't then run yum or rpm commands??? You say you have the old version....how do you have it, after you said (again in your first post), that you deleted it, causing the yum/rpm commands to stop working???

According to you, you broke the system.

Last edited by TB0ne; 04-26-2017 at 05:43 PM.
 
Old 04-26-2017, 02:09 PM   #8
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
Actually you do too much guessing...good luck...!!!
 
Old 04-26-2017, 02:23 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,828

Rep: Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783Reputation: 5783
Quote:
Originally Posted by woolawson123 View Post
Actually you do too much guessing...good luck...!!!
Not guessing at all. YOU SAID:
  • You weren't the system administrator: http://www.linuxquestions.org/questi...5/#post5696115
  • You ran the wrong command to perform an update (post #1)
  • You removed files (post #1)
  • You then could not run rpm or yum commands (post #1) AFTER...
  • ...you botched the installation of a package, because...
  • ...you didn't use the right commands, syntax, or contact support
What, exactly, is guesswork?? Can you point to a single thing you've done to 'help' your systems admin??? You don't have the skills or knowledge to be doing things like this, obviously, and ignored the advice from months ago about contacting RHEL support, because they could have easily walked you through this on the phone CORRECTLY, which would actually have helped.

You didn't. Your system is broken. Mine aren't....tell your systems admin good luck instead.
 
Old 04-26-2017, 05:22 PM   #10
wl
LQ Newbie
 
Registered: Jan 2017
Posts: 22

Original Poster
Rep: Reputation: Disabled
what you doing here not helping anyone (you knows that). But its really funny, entertainment for sure...(like 5 year old kid fighting in school...omg you did this, you did that...but you didn't that...tell me what you did...haha)...keep doing...
 
Old 04-26-2017, 10:37 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,452

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
at this point your OS is " FUBAR "
-- google it !!!

call redhat tech support

and reinstall the operating system and restore data from the good Back up . You did make one ?

yum and rpm need certain programs to be installed that have been built with specific options

if both are broken then the easiest and FASTEST fix is to reinstall from an original image and restore the data

now it might be fixable ???
this might be rather easy or nearly impossible

Last edited by John VV; 04-26-2017 at 10:40 PM.
 
Old 04-27-2017, 04:09 PM   #12
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,018
Blog Entries: 13

Rep: Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462Reputation: 3462
Quote:
Originally Posted by wl View Post
Actually you do too much guessing...good luck...!!!
Quote:
Originally Posted by wl View Post
what you doing here not helping anyone (you knows that). But its really funny, entertainment for sure...(like 5 year old kid fighting in school...omg you did this, you did that...but you didn't that...tell me what you did...haha)...keep doing...
wl, regarding these two posts, please refer to the LQ Rules And please take note of the following specific ones:
Quote:
  • Do not post any messages that are obscene, vulgar, sexually-orientated, hateful, threatening, hostile or insulting.
  • Personal attacks on others will not be tolerated.
  • Do not post if you do not have anything constructive to say in the post.
  • Challenge others' points of view and opinions, but do so respectfully and thoughtfully ... without insult and personal attack. Differing opinions is one of the things that make this site great.
It is obviously more helpful for everyone to remain civil in these threads.
 
  


Reply

Tags
zlib


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
[SOLVED] About Zlib (1.2.6) package in Linux From Scratch Andrew_Kaunchy Linux From Scratch 2 05-02-2012 09:46 PM
Unable to find -lz (zlib). Developer package is already installed :? volsung Linux - Software 3 08-21-2011 10:01 AM
32-current 2010-08-27 - segfaults - zlib. glew package version 4Strings Slackware 6 08-28-2010 07:59 PM
no matching comp found: client zlib none, zlib@openssh.com lost connection jorge_ivan Linux - Networking 0 08-14-2006 07:09 PM
zlib error jurp5 Linux From Scratch 2 12-21-2005 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 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