실행 파일에 대해 ./filename 실행을 하게 되면
error while loading shared libraries: libcrypto.so.6: cannot dynamically load executable
다음 에러가 뜹니다 ..
ls -lart /usr/lib64/libcrypto.so.6
>lrwxrwxrwx 1 root root 19 2월 10 16:56 /usr/lib64/libcrypto.so.6 -> libcrypto.so.0.9.8e
[root@localhost bin]# ldd `which openssl`
linux-vdso.so.1 => (0x00007ffce3550000)
libssl.so.10 => /lib64/libssl.so.10 (0x00007f28c04ee000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f28c02a1000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f28bffb8000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f28bfdb4000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f28bfb81000)
libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f28bf71e000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f28bf51a000)
libz.so.1 => /lib64/libz.so.1 (0x00007f28bf304000)
libc.so.6 => /lib64/libc.so.6 (0x00007f28bef36000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f28bed26000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f28beb22000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f28be908000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f28be6ec000)
/lib64/ld-linux-x86-64.so.2 (0x00007f28c0760000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f28be4c5000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f28be263000)
어떻게 해결 할 수 있을까요?..
필요한 정보 말씀해주시면 바로 올리겠습니다
·¹µåÇÞ 7 ¹öÀü¿¡¼ Á¦°øÇÏ´Â opensslÀº 0¹öÀü ´ë°¡ ¾Æ´Ñ°É·Î ¾Ë°íÀÖ½À´Ï´Ù
¾Æ´Ï¸é ¹ÙÀ̳ʸ®ÀÚü°¡ ¾²´Â ¶óÀ̺귯¸®³ª Àڽſ¡ ³»ÀåµÈ ¶óÀ̺귯¸® ¹öÀüÅ¿ÀÔ´Ï´Ù
[root@localhost bin]# rpm -qa | grep openssl
openssl-libs-1.0.2k-24.el7_9.x86_64
apr-util-openssl-1.5.2-6.el7.x86_64
xmlsec1-openssl-1.2.20-7.el7_4.x86_64
openssl098e-0.9.8e-29.el7.centos.3.i686
openssl098e-0.9.8e-29.el7.centos.3.x86_64
openssl-libs-1.0.2k-24.el7_9.i686
openssl-1.0.2k-24.el7_9.x86_64
openssl °Ë»öÇÏ´Ï ÀÌ·¸°Ô ¹öÀüÀÌ ³ª¿À³×¿ä
ÇØ´ç ½ÇÇà ÆÄÀÏÀÇ ¹öÀüÀº ¾î¶»°Ô È®ÀÎÇÏ´ÂÁö ¸ð¸£°Ú½À´Ï´Ù ¤Ð
ÇØ´ç ¼ÒÇÁÆ®°¡ ¾î´À ¹öÀü ±â¹ÝÀÎÁö ºÁ¾ß°Ú³×¿ä
¾Æ´Ï¸é /usr/lib64/libcrypto.so.6ÀÇ »çº» ÀÛ¼ºÈÄ È¤½Ã libcrypto.soÀÇ 1.0.2°¡ ÀÖ´Ù¸é °Å±â ºÙ¿©º¸¼¼¿ä
ÀÌÈÄ ln -s·Î ´Ù½Ã ¿¬°áÇغ¸¼¼¿ä
¿©ÀüÈ÷ ¾È µÇ¸é ¹ÙÀ̳ʸ® elf Á¤º¸ ÀçÈ®ÀÎÇغ¸¼¼¿ä
/usr/lib64/libcrypto.so.6 -> libcrypto.so.0.9.8e ¶ó°í ½Éº¼¸¯ ¸µÅ© µÇ¾îÀִµ¥
ls -al /usr/lib64/libcrypto.so* ·Î Àüü soµéÀÌ Á¸ÀçÇÏ´ÂÁö È®ÀÎÇÏ½Ã¸é µÉ °Í °°½À´Ï´Ù.
-rwxr-xr-x. 1 root root 2520744 1¿ù 18 22:56 /usr/lib64/libcrypto.so.1.0.2k
lrwxrwxrwx. 1 root root 19 2¿ù 8 12:47 /usr/lib64/libcrypto.so.10 -> libcrypto.so.1.0.2k
lrwxrwxrwx 1 root root 19 2¿ù 10 16:56 /usr/lib64/libcrypto.so.6 -> libcrypto.so.0.9.8e
ÀÌ·¸°Ô µÇ¾îÀÖ½À´Ï´Ù
openssl À¯Æ¿¸®Æ¼¸¦ È®ÀÎÇÏ´Â ¹æ¹ýÀÌ µû·Î ÀÖ³ª¿ä?
µû·Î ÀÛ¼ºÇؼ ºôµåÇÑ ÇÁ·Î±×·¥Àΰ¡¿ä?
0.9.8e·Î °Ë»öÇغ¸´Ï openssl 32bit ¶óÀ̺귯¸®.¼³Ä¡ÇÏ°í ÇØ°áÇߴٴµ¥ ºôµåÇÑ ÇÁ·Î±×·¥ÀÇ 32,64ºñÆ® ¿©ºÎ¿Í
ÂüÁ¶ÇÏ´Â ¶óÀ̺귯¸®µéÀÇ 32,64 ºñÆ®.¿©ºÎ¸¦ ¼ø¼´ë·Î È®ÀÎÇغ¸¼Å¾ß ÇÒ °Í °°½À´Ï´Ù
ÇØ´ç 64bit ÆÄÀÏÀ̾ú°í ÂüÁ¶ ¶óÀ̺귯¸®µµ 64bit ¿´½À´Ï´Ù ¤Ð¤Ð
´öºÐ¿¡ ÇØ°áÇÒ ¼ö ÀÖ¾ú½À´Ï´Ù °¨»çÇÕ´Ï´Ù!
ÇöÀç openssl098e°¡ 32ºñÆ® ¹× 64ºñÆ® ¼³Ä¡µÇ¾î Àִµ¥
¾î´À°ÍÀ» ÂüÁ¶ÇÏ´ÂÁö È®ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù
/usr/lib/libcrypto.so.6: symbolic link to `libcrypto.so.0.9.8e'
ÀÌ·¸°Ô ÂüÁ¶ µÇ°í ÀÖ½À´Ï´Ù
Çѹø ³»¸®¸é ´ëºÎºÐ ÇØ°áµË´Ï´Ù. ÇØ´ç ¶óÀ̺귯¸®°¡ ±âº»À§Ä¡¿¡ Á¸ÀçÇÒ¶§ ¾µ¼ö·Ï ÀÖ½À´Ï´Ù