Difference between revisions of "Solving missing library problems"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>System_troubleshooting|System troubleshooting</yambe:breadcrumb> =Solving missing library problems= To find dynamic libraries requred by an executable use: ...") |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System troubleshooting]] > [[Solving missing library problems]] | |||
To find dynamic libraries requred by an executable use: | To find dynamic libraries requred by an executable use: | ||
Line 12: | Line 11: | ||
</pre> | </pre> | ||
Many times on x86_64 systems the library could be installed but it may be 64-bit version installed in /lib64 or /usr/lib64. To install equivalent version of library in /lib or /usr/lib, use yum to install same package with '<tt>i686</tt>' appended to name. For example, '<tt>libstdc++-devel.i686</tt>' | Many times on x86_64 systems the library could be installed but it may be 64-bit version installed in /lib64 or /usr/lib64. To install equivalent version of library in /lib or /usr/lib, use yum to install same package with '<tt>i686</tt>' appended to name. For example, '<tt>libstdc++-devel.i686</tt>' Note that many times RPATH may include $ORIGIN which means relative to executables location. | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System troubleshooting]] > [[Solving missing library problems]] |
Latest revision as of 11:36, 28 July 2022
Home > CentOS > CentOS 6.x > System troubleshooting > Solving missing library problems
To find dynamic libraries requred by an executable use:
ldd <file_name>
To find out path where executable will look for library use:
readelf -d <file_name> | grep RPATH
Many times on x86_64 systems the library could be installed but it may be 64-bit version installed in /lib64 or /usr/lib64. To install equivalent version of library in /lib or /usr/lib, use yum to install same package with 'i686' appended to name. For example, 'libstdc++-devel.i686' Note that many times RPATH may include $ORIGIN which means relative to executables location.
Home > CentOS > CentOS 6.x > System troubleshooting > Solving missing library problems