shared libraries of dig and nslookup

前端 未结 2 657
萌比男神i
萌比男神i 2021-01-29 01:52

I am using centos 6.4. While doing dig or nslookup, I got below error

dig google.com

dig: error while loading shared libr         


        
相关标签:
2条回答
  • 2021-01-29 02:28

    When you are trying

    ldd /usr/bin/dig

    Are you able to find a line like

    libcrypto.so.4 => not found

    If so Try

    locate libcrypto.so.4

    Suppose you can locate the file at /path/to/file/libcrypto.so.4

    then try the command

    export LD_LIBRARY_PATH="/path/to/file"

    Then try command dig. It should be fine. Other wise you need to search for the package that provides the libcrypto.so.4 library

    0 讨论(0)
  • 2021-01-29 02:47

    try a soft link

    ln -s /usr/lib64/libcrypto.so.10 /lib

    Let us know if that helped you.

    Or you can remove and install again using yum. Normally library files places to its apt position when installs using yum.

    yum remove dns-utils

    yum install dns-utils

    You can enable epel repositories in case you need it epel

    0 讨论(0)
提交回复
热议问题