RRDTool cacti error on Solaris 10

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
cenilkelapa
Posts: 6
Joined: Sun Jun 19, 2011 8:01 pm

RRDTool cacti error on Solaris 10

Post by cenilkelapa »

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
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: RRDTool cacti error on Solaris 10

Post by noname »

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
At a glance.. Did you install Cairo & Pango?
To check:

Code: Select all

% ldd `which rrdtool`
cenilkelapa
Posts: 6
Joined: Sun Jun 19, 2011 8:01 pm

Re: RRDTool cacti error on Solaris 10

Post by cenilkelapa »

Yes, i've already install Pango and Cairo.

# pkginfo | grep -i pango
application SMCpango pango
# pkginfo | grep -i cairo
application SMCcairo cairo
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: RRDTool cacti error on Solaris 10

Post by noname »

Then, what do you see in this?
To check:

Code: Select all

% ldd `which rrdtool`
Does your rrdtool load these libraries properly?
Here is my sample:
% 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
...
I installed rrdtool from source.
cenilkelapa
Posts: 6
Joined: Sun Jun 19, 2011 8:01 pm

Re: RRDTool cacti error on Solaris 10

Post by cenilkelapa »

# 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
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: RRDTool cacti error on Solaris 10

Post by noname »

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:

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
cenilkelapa
Posts: 6
Joined: Sun Jun 19, 2011 8:01 pm

Re: RRDTool cacti error on Solaris 10

Post by cenilkelapa »

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
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: RRDTool cacti error on Solaris 10

Post by noname »

Hmm, then I have no idea any more, sorry.
I recommend to install rrdtool from source.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests