linux centos 7 ¿¡·¯ Áú¹®

   Á¶È¸ 2856   Ãßõ 0    

 실행 파일에 대해 ./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)

 어떻게 해결 할 수 있을까요?..

필요한 정보 말씀해주시면 바로 올리겠습니다

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
Noname1 2022-02
±× ½ÇÇàÆÄÀÏÀº ¸î ¹öÀüÀÇ openssl À» ¿ä±¸ÇÏ´ÂÁö¿ä

·¹µåÇÞ 7 ¹öÀü¿¡¼­ Á¦°øÇÏ´Â opensslÀº 0¹öÀü ´ë°¡ ¾Æ´Ñ°É·Î ¾Ë°íÀÖ½À´Ï´Ù
     
DB´ººñ 2022-02
º¸¾È ÇÁ·Î±×·¥À̶ó Á¦°¡ Àß ¸ð¸£´Âµ¥ Ȥ½Ã ½ÇÇàÆÄÀÏÀÌ ¸î ¹öÀüÀÇ opensslÀ» ¿ä±¸ÇÏ´ÂÁö ¾î¶»°Ô È®ÀÎÇÒ ¼ö ÀÖÀ»±î¿ä ¤Ð¤Ð
dateno1 2022-02
Ȥ½Ã OpenSSLÀ̳ª °ü·Ã ÆÐÅ°Áö ¼öµ¿À¸·Î °Çµé°Å³ª ÄÄÆÄÀÏÇؼ­ ±ñ°Í ¾Æ´Ñ°¡¿ä?

¾Æ´Ï¸é ¹ÙÀ̳ʸ®ÀÚü°¡ ¾²´Â ¶óÀ̺귯¸®³ª Àڽſ¡ ³»ÀåµÈ ¶óÀ̺귯¸® ¹öÀüÅ¿ÀÔ´Ï´Ù
     
DB´ººñ 2022-02
Ȥ½Ã ¸ô¶ó »õ·Î OS ¼³Ä¡ ÈÄ¿¡ Ãʱ⠻óÅ¿¡¼­ ÁøÇàÇß½À´Ï´Ù

[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 °Ë»öÇÏ´Ï ÀÌ·¸°Ô ¹öÀüÀÌ ³ª¿À³×¿ä

ÇØ´ç ½ÇÇà ÆÄÀÏÀÇ ¹öÀüÀº ¾î¶»°Ô È®ÀÎÇÏ´ÂÁö ¸ð¸£°Ú½À´Ï´Ù ¤Ð
          
dateno1 2022-02
1.0.2·Î ÅëÀϵǾîÁ®Àֳ׿ä (Á¤»ó)

ÇØ´ç ¼ÒÇÁÆ®°¡ ¾î´À ¹öÀü ±â¹ÝÀÎÁö ºÁ¾ß°Ú³×¿ä

¾Æ´Ï¸é /usr/lib64/libcrypto.so.6ÀÇ »çº» ÀÛ¼ºÈÄ È¤½Ã libcrypto.soÀÇ 1.0.2°¡ ÀÖ´Ù¸é °Å±â ºÙ¿©º¸¼¼¿ä
               
DB´ººñ 2022-02
ln -sf ·Î ºÙ¿©µµ ¾ÈµÇ³×¿ä ¤Ð¤Ð
                    
dateno1 2022-02
¸ÕÀú mv /usr/lib64/libcrypto.so.6 /usr/lib64/1libcrypto.so.6°°Àº°É Á༭ ¹Ù²Ù¼Å¾ßÁÒ

ÀÌÈÄ ln -s·Î ´Ù½Ã ¿¬°áÇغ¸¼¼¿ä

¿©ÀüÈ÷ ¾È µÇ¸é ¹ÙÀ̳ʸ® elf Á¤º¸ ÀçÈ®ÀÎÇغ¸¼¼¿ä
±¸Â÷´Ï 2022-02
½ÇÇàÆÄÀÏÀ̶ó´Â°Ô openssl À¯Æ¿¸®Æ¼ Àΰ¡¿ä?
/usr/lib64/libcrypto.so.6 -> libcrypto.so.0.9.8e ¶ó°í ½Éº¼¸¯ ¸µÅ© µÇ¾îÀִµ¥
ls -al /usr/lib64/libcrypto.so* ·Î Àüü soµéÀÌ Á¸ÀçÇÏ´ÂÁö È®ÀÎÇÏ½Ã¸é µÉ °Í °°½À´Ï´Ù.
     
DB´ººñ 2022-02
-rwxr-xr-x  1 root root 1440256  3¿ù  9  2016 /usr/lib64/libcrypto.so.0.9.8e
-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 À¯Æ¿¸®Æ¼¸¦ È®ÀÎÇÏ´Â ¹æ¹ýÀÌ µû·Î ÀÖ³ª¿ä?
          
±¸Â÷´Ï 2022-02
½ÇÇàÇÏ·ÁÇÏ´Â ÆÄÀÏÀÌ opensslÀΰ¡¿ä ¾Æ´Ï¸é
µû·Î ÀÛ¼ºÇؼ­ ºôµåÇÑ ÇÁ·Î±×·¥Àΰ¡¿ä?

0.9.8e·Î °Ë»öÇغ¸´Ï openssl 32bit ¶óÀ̺귯¸®.¼³Ä¡ÇÏ°í ÇØ°áÇߴٴµ¥ ºôµåÇÑ ÇÁ·Î±×·¥ÀÇ 32,64ºñÆ® ¿©ºÎ¿Í
ÂüÁ¶ÇÏ´Â ¶óÀ̺귯¸®µéÀÇ 32,64 ºñÆ®.¿©ºÎ¸¦ ¼ø¼­´ë·Î È®ÀÎÇغ¸¼Å¾ß ÇÒ °Í °°½À´Ï´Ù
               
DB´ººñ 2022-02
µû·Î ÀÛ¼ºÇÑ ÆÄÀÏÀ̾ú½À´Ï´Ù!!

ÇØ´ç 64bit ÆÄÀÏÀ̾ú°í ÂüÁ¶ ¶óÀ̺귯¸®µµ 64bit ¿´½À´Ï´Ù ¤Ð¤Ð
´öºÐ¿¡ ÇØ°áÇÒ ¼ö ÀÖ¾ú½À´Ï´Ù °¨»çÇÕ´Ï´Ù!
Ÿ¿Í¸® 2022-02
"file [½ÇÇàÆÄÀÏ]" ¸í·É¾î·Î ELF Á¤º¸ È®ÀÎ ÇÊ¿äÇá º¸ÀÔ´Ï´Ù.

ÇöÀç openssl098e°¡ 32ºñÆ® ¹× 64ºñÆ® ¼³Ä¡µÇ¾î Àִµ¥
¾î´À°ÍÀ» ÂüÁ¶ÇÏ´ÂÁö È®ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù
     
DB´ººñ 2022-02
[root@localhost ~]# file /usr/lib/libcrypto.so.6
/usr/lib/libcrypto.so.6: symbolic link to `libcrypto.so.0.9.8e'
 ÀÌ·¸°Ô ÂüÁ¶ µÇ°í ÀÖ½À´Ï´Ù
Shell# ldconfig
Çѹø ³»¸®¸é ´ëºÎºÐ ÇØ°áµË´Ï´Ù. ÇØ´ç ¶óÀ̺귯¸®°¡ ±âº»À§Ä¡¿¡ Á¸ÀçÇÒ¶§ ¾µ¼ö·Ï ÀÖ½À´Ï´Ù


QnA
Á¦¸ñPage 563/5687
2015-12   1527197   ¹é¸Þ°¡
2014-05   4991203   Á¤ÀºÁØ1
2003-11   10415   ±è°æ¶ô
2003-11   10415   ±èÀçÆò
2003-06   10414   ¼³¿µ¼ö
2012-08   10414   º´¸ÀÆù
2003-06   10414   ±èÈ¿¼ö
2002-09   10413   ÀÓ»óÈÆ
2003-10   10413   ±è¿µ¼ö
2014-11   10412   ÁÖ¼¼È«
2002-11   10412   Á¤ÀºÁØ
2004-01   10411   ·ùÀçÇÏ
2013-08   10411   ¾Æ¸§´Ù¿î³ëÀ»
2015-11   10410   °Ü¿ï³ª¹«
2003-06   10410   Á¶¼ö¿µ
2003-02   10410   ÃÖ¿µÃ¶
2013-05   10410   ±èÈ¿¼ö
2013-11   10410   ¹ÎÅä
2003-11   10410   ±èÁøÀÏ
2003-07   10410   ±è¼º±¹
2003-06   10410   ±è±â¹ü
2013-09   10409   ±èÁ¦¿¬