Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Nov 18, 2018 9:58 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Can't compile spine 1.2
PostPosted: Mon Aug 06, 2018 2:52 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 298
Hello,
I try to compile spine 1.2, and it's not working:
After having a message telling me that aclocal-1.15 is missing, and doing a autoreconf -f -i
now I have a automake-1.15: command not found

And all I do was replace the source of cacti 1.1.38 with the one from 1.2, and do again a sh config

And aclocal as autoconf are present in my system
$ autoconf -V
autoconf (GNU Autoconf) 2.69

_________________
CentOS
Production
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3, Map 0.4

Test
Cacti 1.2beta2
Spine 1.2
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Thu Aug 09, 2018 6:57 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1693
What OS are you running this on?

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Thu Aug 09, 2018 7:44 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 298
centos 7
and no problem with spine 1.1.38

_________________
CentOS
Production
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3, Map 0.4

Test
Cacti 1.2beta2
Spine 1.2
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Thu Aug 09, 2018 2:44 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1693
Let me spin up my CentOS 7 box and see what I can do with it.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Thu Aug 09, 2018 4:14 pm 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1693
Check this out: https://github.com/netniV/cacti/wiki/Te ... ent:-Spine

It should have the necessary instructions for you.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Fri Aug 10, 2018 1:16 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 298
I have all I need
And as I said it's working with spine since 1.x
So it has to do with a change in 1.2, but I can't figure out why/what
my automake is 1.13 and spine is complaining about 1.15, but I have no clue where it request 1.15

I find it, it's inside aclocal.m4, where the am_api_version is specified 1.15, and since I have only 1.13 i'm stuck
but still I not suppose to ne do rebuild any m4 file, so something change in cacti 1-2 that request that action

_________________
CentOS
Production
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3, Map 0.4

Test
Cacti 1.2beta2
Spine 1.2
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Sun Aug 12, 2018 8:59 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1693
Clear out the directory, extract fresh, follow my instructions and it will work under CentOS 7 as that's what I did.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Sun Aug 12, 2018 5:07 pm 
Offline
Cacti User
User avatar

Joined: Wed Jul 20, 2016 8:00 pm
Posts: 174
I can't exactly recall what I've done but it was something around autoconf clean or something like that. Centos7 with cacti 1.2 and spine.

_________________
Cacti - 1.1.37
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
Code:
SYSTEM STATS: Time:17.7383 Method:spine Processes:1 Threads:10 Hosts:279 HostsPerProcess:279 DataSources:7309 RRDsProcessed:3718

Code:
WEATHERMAP STATS: Weathermap 0.98 run complete - Thu, 16 Nov 17 08:42:56 +1300: 39 maps were run in 23.22 seconds with 0 warnings.


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Mon Aug 13, 2018 12:42 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 298
Yup thanks with your help it's working

_________________
CentOS
Production
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3, Map 0.4

Test
Cacti 1.2beta2
Spine 1.2
thold 1.0.6
monitor 2.3.5
php 7.2.11
mariadb 5.5.56
Own plugin:
ExtendDB 1.1.2
LinkDiscovery 1.2.4
Map 1.2.5


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Mon Oct 29, 2018 6:04 am 
Offline

Joined: Tue Sep 04, 2012 8:20 pm
Posts: 19
sorry for jumping in midway, I was trying to compile spine 1.1.38 on Centos 7, was getting error, found this thread, did the 'yum install ...' from https://github.com/netniV/cacti/wiki/Te ... ent:-Spine,
then, bootstrap, then, ./config, seemed OK, but failed on make with:

mv -f .deps/error.Tpo .deps/error.Po
/bin/sh ./libtool --tag=CC --mode=link gcc -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -L/usr/lib64 -L/usr/lib64 -lpthread -lssl -lm -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -lmysqlclient -lcrypto -lz -lpthread -lm
libtool: link: gcc -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o -L/usr/lib64 -lssl -lmysqlclient -lcrypto -lz -lpthread -lm
/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
make: *** [spine] Error 1

Linux wcr.sbt.net.au 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
mysql --version
mysql Ver 15.1 Distrib 10.2.18-MariaDB, for Linux (x86_64) using readline 5.1

cacti-spine-1.1.38]#

yum install mysqlclient
No package mysqlclient available.

what am I missing, please ?

V


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Mon Oct 29, 2018 7:50 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1693
Looks like a failure to find the mysql client libraries.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Mon Oct 29, 2018 8:46 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1693
Either mariadb-devel or mariadb-libs is missing I believe.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Mon Oct 29, 2018 3:00 pm 
Offline

Joined: Tue Sep 04, 2012 8:20 pm
Posts: 19
thanks!

getting this:

[[email protected] ~]# yum install mariadb-libs
....
Package 1:mariadb-libs-5.5.60-1.el7_5.x86_64 is obsoleted by MariaDB-compat-10.2.18-1.el7.centos.x86_64 which is already installed
Nothing to do
[[email protected] ~]# yum install mariadb-devel
....
Package 1:mariadb-devel-5.5.60-1.el7_5.x86_64 is obsoleted by MariaDB-devel-10.2.18-1.el7.centos.x86_64 which is already installed
Nothing to do

what else should I try?


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Tue Oct 30, 2018 4:33 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1693
Try running autoreconf -i but it sounds like your mysq client libraries (.so) are not in your library path.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Can't compile spine 1.2
PostPosted: Thu Nov 01, 2018 6:40 am 
Offline
Cacti User

Joined: Wed Mar 01, 2017 2:34 pm
Posts: 60
It is much easier to formalize the build and install by creating a rpm instead of compiling manually and install loose files.
This is for Centos 7.
How to create the rpm:
Code:
# install build environment
sudo yum install rpmdevtools rpm-build yum-utils
# set up build environment
rpmdev-setuptree
# get *.spec file to correct location
cd ~/rpmbuild/SPECS
cp <downloadpath>/cacti-spine.spec .
# download source
spectool -g -R cacti-spine.spec
# install build-dependencies
yum-builddep cacti-spine.spec
# build rpm
rpmbuild -ba cacti-spine


Use this spec file for creating a cacti-spine package for 1.2.0-beta2:
Save as cacti-spine.spec
Code:
Name: cacti-spine
Version: 1.2.0
%define releasetype beta2
Release: %{releasetype}.1%{?dist}
Summary: Data Collector for Cacti, an rrd based graphing tool
License: GPLv2+
URL: http://www.cacti.net/
Source0: http://www.cacti.net/downloads/beta/%{name}-%{version}%{?releasetype:-%{releasetype}}.tar.gz

Requires: cacti
Requires: mariadb
Requires: rrdtool
Requires: net-snmp, net-snmp-utils
BuildRequires: mariadb-devel, net-snmp-devel, openssl-devel, help2man, libtool, dos2unix

%description
This is the Spine Data Collector for Cacti, an rrd based graphing tool

%prep
%setup -q -n %{name}-%{version}%{?releasetype:-%{releasetype}}


%build
./bootstrap
%configure
%make_build


%install
%make_install
%{__install} -d -m 0755 %{buildroot}/%{_sysconfdir}/cacti/
mv -f %{buildroot}/%{_sysconfdir}/spine.conf.dist %{buildroot}/%{_sysconfdir}/cacti/spine.conf


%files
%doc CHANGELOG
%license LICENSE
%attr(0640,cacti,root) %config %{_sysconfdir}/cacti/spine.conf
%{_bindir}/*
%{_mandir}/man1/*

%changelog
* Thu Nov 01 2018 Alex Woick <[email protected]> - 1.2.0-beta2-1
- Update to 1.2.0-beta2

* Mon Feb 26 2018 Alex Woick <[email protected]> - 1.1.36-1
- initial package


If you want to create cacti-spine 1.1.38, change the version and remove the %releasetype definition (and change "beta" into "spine" in the Source0 definition to be able to download the 1.1.38 release source with spectool).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group