LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 07-23-2013, 04:44 PM   #1
funboy
Member
 
Registered: Jul 2011
Posts: 49

Rep: Reputation: Disabled
[SOLVED] libz.so.1 download


Hello,

I tried to start skype or other program, but all error messages are related to libz.so.1 cannot be find.

Actually I have such library but in /usr/lib64
Code:
-rw-r--r-- 1 root root 118602 Mar 19  2012 libz.a
lrwxrwxrwx 1 root root     13 Mar 11 02:52 libz.so -> libz.so.1.2.6*
lrwxrwxrwx 1 root root     13 Mar 11 02:52 libz.so.1 -> libz.so.1.2.6*
lrwxrwxrwx 1 root root     25 Mar 11 02:52 libz.so.1.2.6 -> ../../lib64/libz.so.1.2.6*
I have no such file in /usr/lib.
My slackware is 64bits, can someone tell me which packet should I install in order to be able to start the applications?

Last edited by funboy; 07-27-2013 at 08:45 AM.
 
Old 07-23-2013, 04:51 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,563

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Try running a quick ldconfig to rebuild your links. Usually almost all libraries are backwards compatible and links are created to the various different arch /lib/ folders. This library comes from zlib, so you can also try and do an upgrade/re-install on your zlib and see if that resolves the issue.
 
Old 07-23-2013, 04:55 PM   #3
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 3,640

Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
skype is a 32 bit application, so you will need to go multilib, see here on SlackDocs.
 
Old 07-23-2013, 04:57 PM   #4
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.1
Posts: 658

Rep: Reputation: 38
Quote:
Originally Posted by funboy View Post
Hello,

I tried to start skype or other program, but all error messages are related to libz.so.1 cannot be find.

Actually I have such library but in /usr/lib64
That's normal, because you run SW 64 bits
Quote:
Originally Posted by funboy View Post
Code:
rw-r--r-- 1 root root 118602 Mar 19  2012 libz.a
lrwxrwxrwx 1 root root     13 Mar 11 02:52 libz.so -> libz.so.1.2.6*
lrwxrwxrwx 1 root root     13 Mar 11 02:52 libz.so.1 -> libz.so.1.2.6*
lrwxrwxrwx 1 root root     25 Mar 11 02:52 libz.so.1.2.6 -> ../../lib64/libz.so.1.2.6*
I have no such file in /usr/lib.
My slackware is 64bits, can someone tell me which packet should I install in order to be able to start the applications?
If I do a slocate on that library, it looks like this:
Code:
root@Slackware:/home/adri# slocate libz.so
/usr/lib64/libz.so.1
/usr/lib64/libz.so
/usr/lib64/libz.so.1.2.6
/usr/lib/vmware-installer/2.1.0/lib/lib/libz.so.1
/usr/lib/vmware-installer/2.1.0/lib/lib/libz.so.1/libz.so.1
/usr/lib/vmware/lib/libz.so.1
/usr/lib/vmware/lib/libz.so.1/libz.so.1
/lib64/libz.so.1
/lib64/libz.so.1.2.6
You can forget about VMware, but the rest should be the same as with you.

ldd shows this:
Code:
root@Slackware:/home/adri# ldd /usr/lib64/libz.so
        linux-vdso.so.1 (0x00007fff919b9000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fc7bb963000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fc7bbf6a000)
Did you do a full install?


EDIT:
Didier Spaier is right, Skype is 32 bits, I didn't think about that, sorry.

Last edited by adriv; 07-23-2013 at 05:04 PM.
 
Old 07-23-2013, 05:00 PM   #5
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,563

Rep: Reputation: 410Reputation: 410Reputation: 410Reputation: 410Reputation: 410
Yes, my answer is not correct for Slack as I often forget that 0 reply threads show up from Slack forums heh. With rhel or debian the steps would have been correct to look at library links.

For instance, a rhel system with just a simple "yum intall zlib":

/usr/lib/libz.so.1
/usr/lib/libz.so.1.2.3
/usr/lib64/libz.so.1
/usr/lib64/libz.so.1.2.3


Follow Didier steps. Ignore mine. Although once you make Slack multi-lib you will have an understanding of how yum and the other systems do it for you which is 100 times better.
 
Old 07-23-2013, 07:12 PM   #6
funboy
Member
 
Registered: Jul 2011
Posts: 49

Original Poster
Rep: Reputation: Disabled
Thank you guys for your answers but my slack is multilib. I the beginning I have the same links in /usr/lib as /usr/lib64. But I deleted by mistake two of them : (.
The packets I have installed are 64 bits. You can see the output bellow:

Code:
root@slackbox:/usr/lib64# ls -la /usr/lib/libz*
-rw-r--r-- 1 root root 99282 Mar 24  2012 /usr/lib/libz.a
lrwxrwxrwx 1 root root    13 Mar 17 01:49 /usr/lib/libz.so -> libz.so.1.2.6
root@slackbox:/usr/lib64# slackpkg file-search libz.so

Looking for libz.so in package list. Please wait... DONE

The list below shows the packages that contains "libz\.so" file.

[ installed ] - aaa_elflibs-14.0-x86_64-4
[ installed ] - zlib-1.2.6-x86_64-1

You can search specific packages using "slackpkg search package".

root@slackbox:/usr/lib64#
 
Old 07-23-2013, 07:54 PM   #7
glorsplitz
Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 241

Rep: Reputation: 25
Quote:
Originally Posted by Didier Spaier View Post
skype is a 32 bit application, so you will need to go multilib, see here on SlackDocs.
or you can do this, I did works fine

so I has

slocate libz.so.1
/usr/lib64/libz.so.1
/usr/lib64/libz.so.1.2.6
/usr/share/skype/lib32/libz.so.1
/usr/share/skype/lib32/libz.so.1.2.6
/lib64/libz.so.1.2.6
/lib64/libz.so.1
 
Old 07-23-2013, 08:58 PM   #8
funboy
Member
 
Registered: Jul 2011
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by glorsplitz View Post
or you can do this, I did works fine

so I has

slocate libz.so.1
/usr/lib64/libz.so.1
/usr/lib64/libz.so.1.2.6
/usr/share/skype/lib32/libz.so.1
/usr/share/skype/lib32/libz.so.1.2.6
/lib64/libz.so.1.2.6
/lib64/libz.so.1
Thanks, but the problem is not only for skype, wine, teamviewer also. The error message is also related to libz. I am sure they all worked fine before one unexpected reboot due to power outage.
 
Old 07-24-2013, 01:29 AM   #9
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 3,640

Rep: Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827Reputation: 827
Quote:
Originally Posted by funboy View Post
The error message is also related to libz. I am sure they all worked fine before one unexpected reboot due to power outage.
We missed that important information. You can check that all lbraries and symklink that should be there are still accessible as they are listed in /var/log{packages,scripts}. On my system (Slackware 14.0 32 bits, so your output should be different) I have this:
Code:
bash-4.2$ grep libz.so.1 /var/log/{packages,scripts}/*
/var/log/packages/aaa_elflibs-14.0-i486-4:lib/libz.so.1.2.6
/var/log/packages/zlib-1.2.6-i486-1:lib/libz.so.1.2.6
/var/log/scripts/aaa_elflibs-14.0-i486-4:( cd lib ; rm -rf libz.so.1 )
/var/log/scripts/aaa_elflibs-14.0-i486-4:( cd lib ; ln -sf libz.so.1.2.6 libz.so.1 )
/var/log/scripts/zlib-1.2.6-i486-1:( cd lib ; rm -rf libz.so.1 )
/var/log/scripts/zlib-1.2.6-i486-1:( cd lib ; ln -sf libz.so.1.2.6 libz.so.1 )
/var/log/scripts/zlib-1.2.6-i486-1:( cd usr/lib ; ln -sf libz.so.1.2.6 libz.so )
/var/log/scripts/zlib-1.2.6-i486-1:( cd usr/lib ; rm -rf libz.so.1.2.6 )
/var/log/scripts/zlib-1.2.6-i486-1:( cd usr/lib ; ln -sf ../../lib/libz.so.1.2.6 libz.so.1.2.6 )
/var/log/scripts/zlib-1.2.6-i486-1:( cd usr/lib ; rm -rf libz.so.1 )
/var/log/scripts/zlib-1.2.6-i486-1:( cd usr/lib ; ln -sf libz.so.1.2.6 libz.so.1 )
bash-4.2$
If a file is listed there, but is not present in your system then you've a real problem (unless you removed one of the listed packages, but of course you shouldn't). In that case, usually you could try reinstalling, but don't do that with aaa_elflibs!

A thorough check of your hard disk is recommended. If it's in really bad shape, better replace it. Also, if you can't solve easily your missing libraries problem, it could be simpler to reinstall Slackware.
 
Old 07-24-2013, 12:17 PM   #10
funboy
Member
 
Registered: Jul 2011
Posts: 49

Original Poster
Rep: Reputation: Disabled
The fsck of the FS shows no errors. According to me the problem is that I have no lib - libz.so.1.2.6
Code:
bash-4.2# ls -latr /usr/lib/libz.so*
lrwxrwxrwx 1 root root 13 Mar 17 01:49 /usr/lib/libz.so -> libz.so.1.2.6
bash-4.2# ls -la libz.so.1.2.6
ls: cannot access libz.so.1.2.6: No such file or directory
Can someone send me this lib from 32 bit system to testi it ? Before I am sure, that I have libz.so.1.2.6 in /usr/lib && /usr/lib64
and then I created symlink in /usr/lib for libz.so.1 to libz.so.1.2.6 and that was the magic which I used.
If someone is OK to share it with me I would be thankful.
 
Old 07-27-2013, 08:49 AM   #11
funboy
Member
 
Registered: Jul 2011
Posts: 49

Original Poster
Rep: Reputation: Disabled
Hello,

Thank you to all who helped. Just want to share with you that I fixed my problem by installing 32 bits slackware on virtual machine and I sync-ed the needed libs. I said libS because not only libz was required. I think 4 or 5 libs more was required but when I transfer them my applications has started working again.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libz, libfam, libpng - for distribution kite10linux Linux - Software 2 09-05-2008 12:29 PM
libz can't be found vbraun Linux - Software 9 06-20-2005 10:06 AM
libz for guarddog linuxfond Linux - Newbie 0 03-06-2003 03:50 PM
Which libz...? t1mc00per Linux - General 3 02-13-2003 06:51 AM
Libz RhettDewey Linux - Software 1 03-12-2002 05:53 AM


All times are GMT -5. The time now is 07:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration