Scenario : rrd library packages is installed but it is not properly linked to the Library (or) not able to found required library at the run time even though library rpm package was installed.
To Verify whether Packages Is Installed Or Not
# rpm -qa | grep rrd
rrdtool-1.4.5-10.1.4.x86_64
# ldconfig -p | grep rrd
librrd_th.so.4 (libc6,x86-64) => /usr/lib64/librrd_th.so.4
librrd.so.4 (libc6,x86-64) => /usr/lib64/librrd.so.
But while compiling Package is Not Found
checking for rrd_create in -lrrd... no
SOLUTION :
Even though library Package is installed.But it is not found while compiling.
1) create the soft link with required Library Name
Ex: #ln -s /usr/lib64/librrd.so.4 /usr/lib64/librrd.so
2)Try to install Library packagename-devel.rpm
Ex: rrdtool package is installed then try rrdtool-devel.VERSION.rpm.
For simple Testing to check whether library is found or not.
#Compiler -L(Library Location Directory) -l(name)
# gcc -L/usr/lib64/ -lrrd
To Verify whether Packages Is Installed Or Not
# rpm -qa | grep rrd
rrdtool-1.4.5-10.1.4.x86_64
# ldconfig -p | grep rrd
librrd_th.so.4 (libc6,x86-64) => /usr/lib64/librrd_th.so.4
librrd.so.4 (libc6,x86-64) => /usr/lib64/librrd.so.
But while compiling Package is Not Found
checking for rrd_create in -lrrd... no
SOLUTION :
Even though library Package is installed.But it is not found while compiling.
1) create the soft link with required Library Name
Ex: #ln -s /usr/lib64/librrd.so.4 /usr/lib64/librrd.so
2)Try to install Library packagename-devel.rpm
Ex: rrdtool package is installed then try rrdtool-devel.VERSION.rpm.
For simple Testing to check whether library is found or not.
#Compiler -L(Library Location Directory) -l(name)
# gcc -L/usr/lib64/ -lrrd
0 comments:
Post a Comment