Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686

后端 未结 3 1642
粉色の甜心
粉色の甜心 2020-12-02 07:47

CentOS 6.2 + GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)

When I debug a simple c++ code with GDB, I saw the following warning:

Missing separa         


        
3条回答
  •  余生分开走
    2020-12-02 08:14

    In case, someone else encounters the same issue,

    I had updated the glibc and somehow the old ldconfig had been flushed was facing this error while running the application

    error while loading shared libraries: libjson-c.so.2: cannot open shared object file: No such file or directory

    Even after setting the LD_LIBRARY_PATH it didn't work:

    LD_LIBRARY_PATH=/usr/local/lib
    export LD_LIBRARY_PATH
    

    Finally the commands below came to the rescue.

    // Add you library path here.
    echo /usr/local/lib >> /etc/ld.so.conf
    
    // And then Run ldconfig to reflect the path
    ldconfig
    

提交回复
热议问题