LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [SOLVED] libz.so.1 download (https://www.linuxquestions.org/questions/slackware-14/%5Bsolved%5D-libz-so-1-download-4175470671/)

funboy 07-23-2013 04:44 PM

[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?

Kustom42 07-23-2013 04:51 PM

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.

Didier Spaier 07-23-2013 04:55 PM

skype is a 32 bit application, so you will need to go multilib, see here on SlackDocs.

adriv 07-23-2013 04:57 PM

Quote:

Originally Posted by funboy (Post 4995503)
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 (Post 4995503)
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.

Kustom42 07-23-2013 05:00 PM

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.

funboy 07-23-2013 07:12 PM

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#


glorsplitz 07-23-2013 07:54 PM

Quote:

Originally Posted by Didier Spaier (Post 4995509)
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

funboy 07-23-2013 08:58 PM

Quote:

Originally Posted by glorsplitz (Post 4995571)
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.

Didier Spaier 07-24-2013 01:29 AM

Quote:

Originally Posted by funboy (Post 4995587)
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.

funboy 07-24-2013 12:17 PM

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.

funboy 07-27-2013 08:49 AM

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.


All times are GMT -5. The time now is 09:29 AM.