Operating System - Linux
1827885 Members
1385 Online
109969 Solutions
New Discussion

Re: /bin/login: error in loading shared libraries: libcrypt.so.1

 
Pradeep_7
Occasional Advisor

/bin/login: error in loading shared libraries: libcrypt.so.1

Hi,

We have this linux machine with redhat 6.2 on it. We have oracle8i running on it. Oracle shuts down now and then very frequently, leaving some trace files. When posted a tar to oracle, they mentioned it is the issue with system virtual memory and I have increase the virtual memory.

Other than this, when this problem occurs, the system doesn't even telnet sometimes and even it telnets it is giving this follwoing error...
(when trying to telnet)

Red Hat Linux release 6.2 (Zoot)
Kernel 2.2.14-5.0 on an i686
/bin/login: error in loading shared libraries: libcrypt.so.1: cannot map zero-fi
ll pages: Cannot allocate memory

Some one please help me solving this problem. I don't know how to increase the virtual memory.


Thanks,
Deep.

I have swap memory of 500MB on this machine. Memory details on this machine as below

[root@test /proc]# cat meminfo
total: used: free: shared: buffers: cached:
Mem: 528650240 525484032 3166208 180047872 10719232 21282816
Swap: 526376960 163987456 362389504
MemTotal: 516260 kB
MemFree: 3092 kB
MemShared: 175828 kB
Buffers: 10468 kB
Cached: 20784 kB
BigTotal: 0 kB
BigFree: 0 kB
SwapTotal: 514040 kB
SwapFree: 353896 kB

Incase you need this...

[root@test fs]# ulimit -a
core file size (blocks) 0
data seg size (kbytes) unlimited
file size (blocks) unlimited
max memory size (kbytes) unlimited
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes 2048
pipe size (512 bytes) 8
open files 1024
virtual memory (kbytes) 2105343
1 REPLY 1
Jerome Henry
Honored Contributor

Re: /bin/login: error in loading shared libraries: libcrypt.so.1

Hi Pradeep,
Libcrypt.so.1 is file used by glibc. You error message seems to be truncated. 2 solutions : try to 'locate libcrypt.so.1' from /, if you find it, it means that this lib doesn't have enough swap to load its component. If you do not find it, get bacl glibc here
http://www2.linuxforum.net/RPM/libcrypt.so.1.html
Regarding your swap problem, sure that Oracle consumes a lot of it, 2 times physical RAM is often not enough. To increase your swap, well you need to find space one one hard disk (or make space). If you have space, read this :
http://www.netadmintools.com/art1.html
If you don't, you need to resize your partitions to make space, using for example parted tool. Read the howto here :
http://www.gnu.org/manual/parted-1.6.1/
RGDS
J
You can lean only on what resists you...