Friday, February 26, 2010

The ldd Linux Command

,
If you want to know what are shared library used by each program/application, you can use ldd command. For example : ldd inkscape. The command will issue a message like this :
                 linux-gate.so.1 =>  (0xffffe000)     
        libgtkmm-2.4.so.1 => /usr/lib/libgtkmm-2.4.so.1 (0xb7d7c000)
        libgiomm-2.4.so.1 => /usr/lib/libgiomm-2.4.so.1 (0xb7d1a000)
        libgdkmm-2.4.so.1 => /usr/lib/libgdkmm-2.4.so.1 (0xb7cd4000)
        libatkmm-1.6.so.1 => /usr/lib/libatkmm-1.6.so.1 (0xb7c91000)
        libpangomm-1.4.so.1 => /usr/lib/libpangomm-1.4.so.1 (0xb7c65000)
        libcairomm-1.0.so.1 => /usr/lib/libcairomm-1.0.so.1 (0xb7c45000)
        libglibmm-2.4.so.1 => /usr/lib/libglibmm-2.4.so.1 (0xb7bf1000) 
        libxslt.so.1 => /usr/lib/libxslt.so.1 (0xb7bbb000)             
        libz.so.1 => /usr/lib/libz.so.1 (0xb7ba7000)                   
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7a71000)             
        libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0xb7a6b000)     
        libgtkspell.so.0 => /usr/lib/libgtkspell.so.0 (0xb7a64000)     
        libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb76d8000)
        libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb764f000)
        libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb7635000)       
        libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb75d1000)       
        libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb75a9000)
        libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7591000)
        libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb7587000)
        libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7519000)                 
        libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb74d8000)         
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7461000)           
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7438000)       
        libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb73fe000)     
        libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb73fb000)     
        libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb73f7000)     
        librt.so.1 => /lib/librt.so.1 (0xb73ed000)                           
        libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb731a000)           
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb72d9000)                 
        libgsl.so.0 => /usr/lib/libgsl.so.0 (0xb712a000)                     
        libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0xb70f4000)           
        libpng.so.3 => /usr/lib/libpng.so.3 (0xb70b3000)                     
        libgomp.so.1 => /usr/lib/libgomp.so.1 (0xb70ab000)                   
        libpopt.so.0 => /usr/lib/libpopt.so.0 (0xb70a4000)                   
        libaspell.so.15 => /usr/lib/libaspell.so.15 (0xb6fec000)             
        libMagick++.so.2 => /usr/lib/libMagick++.so.2 (0xb6f7a000)           
        libMagickCore.so.2 => /usr/lib/libMagickCore.so.2 (0xb6b9e000)       
        libgc.so.1 => /usr/lib/libgc.so.1 (0xb6b5d000)                       
        liblcms.so.1 => /usr/lib/liblcms.so.1 (0xb6b29000)                   
        libpoppler.so.4 => not found                                         
        libpoppler-glib.so.4 => /usr/lib/libpoppler-glib.so.4 (0xb6afc000)   
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6a14000)               
        libm.so.6 => /lib/libm.so.6 (0xb69ee000)                             
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb69e0000)                 
        libpthread.so.0 => /lib/libpthread.so.0 (0xb69c8000)                 
        libc.so.6 => /lib/libc.so.6 (0xb6868000)                             
        libX11.so.6 => /usr/lib/libX11.so.6 (0xb674d000)                     
        libdl.so.2 => /lib/libdl.so.2 (0xb6749000)                           
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6728000)                 
        libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb66d7000)           
        libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb66ce000)             
        libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb66b6000)                     
        libXau.so.6 => /usr/lib/libXau.so.6 (0xb66b3000)                     
        libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb66ae000)                 
        libenchant.so.1 => /usr/lib/libenchant.so.1 (0xb66a4000)             
        libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb66a1000)       
        libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb669e000)             
        libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb6699000)               
        libXext.so.6 => /usr/lib/libXext.so.6 (0xb668a000)                   
        libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6687000)           
        libXi.so.6 => /usr/lib/libXi.so.6 (0xb667e000)
        libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb6677000)
        libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb666e000)
        /lib/ld-linux.so.2 (0xb80ca000)
        libMagickWand.so.2 => /usr/lib/libMagickWand.so.2 (0xb6559000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb6505000)
        libjasper.so.1 => /usr/lib/libjasper.so.1 (0xb64b8000)
        libdjvulibre.so.21 => /usr/lib/libdjvulibre.so.21 (0xb6319000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb62f9000)
        libXt.so.6 => /usr/lib/libXt.so.6 (0xb62a6000)
        libIlmImf.so.6 => /usr/lib/libIlmImf.so.6 (0xb61e3000)
        libImath.so.6 => /usr/lib/libImath.so.6 (0xb61de000)
        libHalf.so.6 => /usr/lib/libHalf.so.6 (0xb619b000)
        libIlmThread.so.6 => /usr/lib/libIlmThread.so.6 (0xb6194000)
        libIex.so.6 => /usr/lib/libIex.so.6 (0xb6180000)
        librsvg-2.so.2 => /usr/lib/librsvg-2.so.2 (0xb614d000)
        libgsf-1.so.114 => /usr/lib/libgsf-1.so.114 (0xb6117000)
        libbz2.so.1 => /lib/libbz2.so.1 (0xb6106000)
        libSM.so.6 => /usr/lib/libSM.so.6 (0xb60fe000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xb60fa000)
        libICE.so.6 => /usr/lib/libICE.so.6 (0xb60e2000)
        libpoppler.so.5 => /usr/lib/libpoppler.so.5 (0xb5f19000)
That means the inkscape requires those libraries. With this information, at least you will more careful if you want to remove a library from your system. More about ldd information can be obtained by running this command : ldd --help or man ldd.

0 comments to “The ldd Linux Command”

Post a Comment