shared libraries of dig and nslookup

前端 未结 2 715
萌比男神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

提交回复
热议问题