What's new

can't load library 'libz.so.1'

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Marcelo Linardi

New Around Here
Hi All,
I am running ASUSWRT-Merlin 380.65_4 on my RT-ACC66U and I am getting this error and don´t know how to get rid of it.


admin@RT-AC66U:/tmp/opt/bin# ssh-keygen
ssh-keygen: can't load library 'libz.so.1'



admin@RT-AC66U:/# sshd
sshd: can't load library 'libz.so.1'


the file exists as shown below :

admin@RT-AC66U:/# find ./ -name libz.so.1
./tmp/opt/lib/libz.so.1


I also tried reinstalling openssh :

admin@RT-AC66U:/tmp/opt# ipkg install openssh

Package openssh (5.9p1-1) installed in /opt/ is up to date.
Configuring openssh
update-alternatives: Linking //opt/bin/scp to /opt/bin/openssh-scp
update-alternatives: Linking //opt/bin/ssh to /opt/bin/openssh-ssh

Generating RSA Key...
/opt/bin/ssh-keygen: can't load library 'libz.so.1'
Generating RSA Key...
/opt/bin/ssh-keygen: can't load library 'libz.so.1'
Generating DSA Key...
/opt/bin/ssh-keygen: can't load library 'libz.so.1'
Fixing permissions on the /tmp directory...
killall: /opt/sbin/sshd: no process killed
/opt/sbin/sshd: can't load library 'libz.so.1'
postinst script returned status 16
ERROR: openssh.postinst returned 16
Nothing to be done
Successfully terminated.
admin@RT-AC66U:/tmp/opt#


Seems to be a link issue...

admin@RT-AC66U:/tmp/opt# ldd /opt/bin/ssh-keygen
libcrypto.so.0.9.7 => /opt/lib/libcrypto.so.0.9.7 (0x2aabf000)
libdl.so.0 => /opt/lib/libdl.so.0 (0x2ac0d000)
libutil.so.0 => /opt/lib/libutil.so.0 (0x2ac20000)
libz.so.1 => not found
libcrypt.so.0 => /opt/lib/libcrypt.so.0 (0x2ac31000)
libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x2ac55000)
libc.so.0 => /opt/lib/libc.so.0 (0x2ac74000)
ld-uClibc.so.0 => /opt/lib/ld-uClibc.so.0 (0x2aaa8000)


but... how can I fix it ?

BIG THANKS !
 
Why not entware instead? You need to install zlib.

ipkg install zlib
 
Unfortunetelly, did not not work :(


admin@RT-AC66U:/tmp/home/root# ipkg install zlib
Package zlib (1.2.5-1) installed in /opt/ is up to date.
Configuring openssh
update-alternatives: Linking //opt/bin/scp to /opt/bin/openssh-scp
update-alternatives: Linking //opt/bin/ssh to /opt/bin/openssh-ssh

Generating RSA Key...
//opt/lib/ipkg/info/openssh.postinst: line 12: /opt/bin/ssh-keygen: not found
Generating RSA Key...
//opt/lib/ipkg/info/openssh.postinst: line 18: /opt/bin/ssh-keygen: not found
Generating DSA Key...
//opt/lib/ipkg/info/openssh.postinst: line 24: /opt/bin/ssh-keygen: not found
Fixing permissions on the /tmp directory...
killall: /opt/sbin/sshd: no process killed
/opt/sbin/sshd: can't load library 'libz.so.1'
postinst script returned status 16
ERROR: openssh.postinst returned 16
Nothing to be done
Successfully terminated.
admin@RT-AC66U:/tmp/home/root#



admin@RT-AC66U:/tmp/opt/bin# ldd /opt/sbin/sshd
libcrypto.so.0.9.7 => /opt/lib/libcrypto.so.0.9.7 (0x2aabf000)
libdl.so.0 => /opt/lib/libdl.so.0 (0x2ac0d000)
libutil.so.0 => /opt/lib/libutil.so.0 (0x2ac20000)
libz.so.1 => not found
libcrypt.so.0 => /opt/lib/libcrypt.so.0 (0x2ac31000)
libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x2ac55000)
libc.so.0 => /opt/lib/libc.so.0 (0x2ac74000)
ld-uClibc.so.0 => /opt/lib/ld-uClibc.so.0 (0x2aaa8000)

 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top