Notice
Recent Posts
Recent Comments
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
05-03 11:19
Today
Total
관리 메뉴

해킹공주의 일상

WebtoB 에러 : error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory 본문

인프라진단/인프라 지식

WebtoB 에러 : error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory

7.3.7 2025. 1. 18. 16:02
반응형

1. 개요

webtob 설치까지 갓벽하게 됐는데 갑자기 라이브러리 없다고 드러눕는다. 아마존 리눅스라서 그런가 암튼 GPT박사가 전해드립니다

 

* 실행 환경 : Amazon Linux

 

문제 상황은 아래와 같다. 설치 잘해놓고 무슨무슨 라이브러리가 없댄다 기계가 그런건 알아서 해야지 . . 

[root@aaaaaa]# wsboot

Booting WebtoB on node (ip-111111111)
Welcome to WebtoB Demo system. It will expire on 2025-03-16
Today is 2025-01-16
Starting WSM at Thu Jan 16 08:12:37 2025
Starting HTL at Thu Jan 16 08:12:37 2025
Starting HTH at Thu Jan 16 08:12:37 2025
hth: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
[BOOT-00010] Failed to start process (/root/webtob/bin/hth). exec failed. status=127 errno=4(Interrupted system call)
Starting DOWN(wsdown) at Thu Jan 16 08:12:37 2025
[root@ip-172-31-40-54 bin]#
WSDOWN for node(ip-1111111111) is starting:
        WSDOWN: HTL downed: Thu Jan 16 08:12:37 2025
        WSDOWN: WSM downed: Thu Jan 16 08:12:37 2025
        WSDOWN: WebtoB is down

 

 

2. 해결방법

1) glibc 및 libxcrypt-compat 패키지 설치

Amazon Linux에서는 glibc와 libxcrypt-compat을 설치해야 한다

sudo yum install -y glibc libxcrypt-compat #설치
ls -l /lib64/libcrypt.so.1 #설치 후 있는지 확인

 

만약 파일이 존재하면 설치가 성공한 것

 

2) ldconfig 실행 (라이브러리 캐시 업데이트)

라이브러리 파일을 인식하도록 ldconfig를 실행

sudo ldconfig
ldd /root/webtob/bin/hth | grep libcrypt
# 성공적 결과 예시 : libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f8c...)

 

3) Webtob 다시 실행

wsboot #webtob 실행

 

 

 

해결완료! 

반응형
Comments