RRDTool cacti error on Solaris 10
Moderators: Developers, Moderators
-
- Posts: 6
- Joined: Sun Jun 19, 2011 8:01 pm
RRDTool cacti error on Solaris 10
Dear All,
Please help, i've already install Cacti on Solaris 10 with this information:
uname -a
SunOS 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5220
mysql-5.0.67-sol10-sparc-local
rrdtool-1.4.2-sol10-sparc-local
php-5.3.6-sol10-sparc-local
cacti-0-1.8.7g
netsnmp-5.6.1-sol10-sparc-local
etc with all the dependencies
After installation, cacti looks fine, but when adding device and interfaces, the graph doesn't appear. (debug mode)
RRDTool Says:
ld.so.1: rrdtool: fatal: relocation error: file /usr/local/rrdtool-1.4.2/lib/librrd.so.4: symbol cairo_create: referenced symbol not found
All dependencies include cairo has already installed. So anyone can help me please ? Thank you.
Regards,
amalia
Please help, i've already install Cacti on Solaris 10 with this information:
uname -a
SunOS 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5220
mysql-5.0.67-sol10-sparc-local
rrdtool-1.4.2-sol10-sparc-local
php-5.3.6-sol10-sparc-local
cacti-0-1.8.7g
netsnmp-5.6.1-sol10-sparc-local
etc with all the dependencies
After installation, cacti looks fine, but when adding device and interfaces, the graph doesn't appear. (debug mode)
RRDTool Says:
ld.so.1: rrdtool: fatal: relocation error: file /usr/local/rrdtool-1.4.2/lib/librrd.so.4: symbol cairo_create: referenced symbol not found
All dependencies include cairo has already installed. So anyone can help me please ? Thank you.
Regards,
amalia
Re: RRDTool cacti error on Solaris 10
At a glance.. Did you install Cairo & Pango?cenilkelapa wrote:RRDTool Says:
ld.so.1: rrdtool: fatal: relocation error: file /usr/local/rrdtool-1.4.2/lib/librrd.so.4: symbol cairo_create: referenced symbol not found
To check:
Code: Select all
% ldd `which rrdtool`
-
- Posts: 6
- Joined: Sun Jun 19, 2011 8:01 pm
Re: RRDTool cacti error on Solaris 10
Yes, i've already install Pango and Cairo.
# pkginfo | grep -i pango
application SMCpango pango
# pkginfo | grep -i cairo
application SMCcairo cairo
# pkginfo | grep -i pango
application SMCpango pango
# pkginfo | grep -i cairo
application SMCcairo cairo
Re: RRDTool cacti error on Solaris 10
Then, what do you see in this?
Here is my sample:
Does your rrdtool load these libraries properly?To check:Code: Select all
% ldd `which rrdtool`
Here is my sample:
I installed rrdtool from source.% ldd /usr/local/rrdtool-1.3/bin/rrdtool
libxml2.so.2 => /usr/local/lib/libxml2.so.2
libpthread.so.1 => /usr/lib/libpthread.so.1
librt.so.1 => /usr/lib/librt.so.1
libpangocairo-1.0.so.0 => /usr/local/lib/libpangocairo-1.0.so.0
libpangoft2-1.0.so.0 => /usr/local/lib/libpangoft2-1.0.so.0
libpango-1.0.so.0 => /usr/local/lib/libpango-1.0.so.0
libcairo.so.2 => /usr/local/lib/libcairo.so.2
libSM.so.6 => /usr/lib/libSM.so.6
...
-
- Posts: 6
- Joined: Sun Jun 19, 2011 8:01 pm
Re: RRDTool cacti error on Solaris 10
# ldd /usr/local/rrdtool-1.4.2/bin/rrdtool
librrd.so.4 => /usr/local/rrdtool-1.4.2/lib/librrd.so.4
libxml2.so.2 => /usr/local/lib/libxml2.so.2
libpthread.so.1 => /usr/lib/libpthread.so.1
librt.so.1 => /usr/lib/librt.so.1
libpangocairo-1.0.so.0 => /usr/local/lib/libpangocairo-1.0.so.0
libpangoft2-1.0.so.0 => /usr/local/lib/libpangoft2-1.0.so.0
libpango-1.0.so.0 => /usr/local/lib/libpango-1.0.so.0
libcairo.so.2 => /usr/local/lib/libcairo.so.2
libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6
libexpat.so.1 => /usr/local/lib/libexpat.so.1
libpng12.so.0 => /usr/local/lib/libpng12.so.0
libz.so => /usr/local/lib/libz.so
libXrender.so.1 => /usr/local/lib/libXrender.so.1
libSM.so.6 => /usr/openwin/lib/libSM.so.6
libICE.so.6 => /usr/openwin/lib/libICE.so.6
libX11.so.4 => /usr/openwin/lib/libX11.so.4
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libm.so.2 => /usr/lib/libm.so.2
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0
libdl.so.1 => /usr/lib/libdl.so.1
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
libintl.so.8 => /usr/local/lib/libintl.so.8
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libsec.so.1 => /usr/lib/libsec.so.1
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libaio.so.1 => /lib/libaio.so.1
libmd.so.1 => /lib/libmd.so.1
libexpat.so.0 => /usr/local/lib/libexpat.so.0
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0
libstdc++.so.6 => /usr/local/lib/libstdc++.so.6
libXext.so.0 => /usr/openwin/lib/libXext.so.0
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libavl.so.1 => /lib/libavl.so.1
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libmd_psr.so.1
librrd.so.4 => /usr/local/rrdtool-1.4.2/lib/librrd.so.4
libxml2.so.2 => /usr/local/lib/libxml2.so.2
libpthread.so.1 => /usr/lib/libpthread.so.1
librt.so.1 => /usr/lib/librt.so.1
libpangocairo-1.0.so.0 => /usr/local/lib/libpangocairo-1.0.so.0
libpangoft2-1.0.so.0 => /usr/local/lib/libpangoft2-1.0.so.0
libpango-1.0.so.0 => /usr/local/lib/libpango-1.0.so.0
libcairo.so.2 => /usr/local/lib/libcairo.so.2
libfontconfig.so.1 => /usr/local/lib/libfontconfig.so.1
libfreetype.so.6 => /usr/local/lib/libfreetype.so.6
libexpat.so.1 => /usr/local/lib/libexpat.so.1
libpng12.so.0 => /usr/local/lib/libpng12.so.0
libz.so => /usr/local/lib/libz.so
libXrender.so.1 => /usr/local/lib/libXrender.so.1
libSM.so.6 => /usr/openwin/lib/libSM.so.6
libICE.so.6 => /usr/openwin/lib/libICE.so.6
libX11.so.4 => /usr/openwin/lib/libX11.so.4
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libm.so.2 => /usr/lib/libm.so.2
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0
libdl.so.1 => /usr/lib/libdl.so.1
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0
libintl.so.8 => /usr/local/lib/libintl.so.8
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libsec.so.1 => /usr/lib/libsec.so.1
libc.so.1 => /usr/lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libaio.so.1 => /lib/libaio.so.1
libmd.so.1 => /lib/libmd.so.1
libexpat.so.0 => /usr/local/lib/libexpat.so.0
libpixman-1.so.0 => /usr/lib/libpixman-1.so.0
libstdc++.so.6 => /usr/local/lib/libstdc++.so.6
libXext.so.0 => /usr/openwin/lib/libXext.so.0
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libavl.so.1 => /lib/libavl.so.1
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
/platform/SUNW,SPARC-Enterprise-T5220/lib/libmd_psr.so.1
Re: RRDTool cacti error on Solaris 10
That seems fine.
Then, what do you see when performed same command (ldd) as cactiuser?
(Maybe it concerns with "LD_LIBRARY_PATH" environment variable)
Supplement:
If you still had problems, try to define these variables just before polling in crontab like this:
Then, what do you see when performed same command (ldd) as cactiuser?
(Maybe it concerns with "LD_LIBRARY_PATH" environment variable)
Supplement:
If you still had problems, try to define these variables just before polling in crontab like this:
Code: Select all
0,5,10,15,20,25,30,35,40,45,50,55 * * * * sh -c 'LD_LIBRARY_PATH=/usr/local/lib:/usr/lib /usr/local/bin/php /usr/local/apache/htdocs/cacti/poller.php' > /dev/null 2>&1
-
- Posts: 6
- Joined: Sun Jun 19, 2011 8:01 pm
Re: RRDTool cacti error on Solaris 10
Yes, still problem
RRDTool Says:
ld.so.1: rrdtool: fatal: relocation error: file /usr/local/rrdtool-1.4.2/lib/librrd.so.4: symbol cairo_create: referenced symbol not found
0,5,10,15,20,25,30,35,40,45,50,55 * * * * sh -c 'LD_LIBRARY_PATH=/usr/local/lib:/usr/lib /usr/local/bin/php /usr/local/apache2/htdocs/cacti/poller.php' > /dev/null 2>&1
RRDTool Says:
ld.so.1: rrdtool: fatal: relocation error: file /usr/local/rrdtool-1.4.2/lib/librrd.so.4: symbol cairo_create: referenced symbol not found
0,5,10,15,20,25,30,35,40,45,50,55 * * * * sh -c 'LD_LIBRARY_PATH=/usr/local/lib:/usr/lib /usr/local/bin/php /usr/local/apache2/htdocs/cacti/poller.php' > /dev/null 2>&1
Re: RRDTool cacti error on Solaris 10
Hmm, then I have no idea any more, sorry.
I recommend to install rrdtool from source.
I recommend to install rrdtool from source.
Who is online
Users browsing this forum: No registered users and 2 guests