Issue with Spine install on Centos 7
Moderators: Developers, Moderators
Issue with Spine install on Centos 7
Hi
I'm a bit of a novice when it comes to linux but learning as I go.
I have been able to install Cacti 1.1.7 with no problems but cannot get spine to install.
When running the make command I keep getting this error:
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c
mv -f .deps/error.Tpo .deps/error.Po
/bin/sh ./libtool --tag=CC --mode=link gcc -I/usr/include/mysql -g -O2 -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/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
/usr/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
make: *** [spine] Error 1
I have used various posts and believe all necessary prerequisites(libraries) are installed but may be I'm missing something.
OS is Centos 7 and running mariadb(mysql) 10.2.x.
I'm a bit of a novice when it comes to linux but learning as I go.
I have been able to install Cacti 1.1.7 with no problems but cannot get spine to install.
When running the make command I keep getting this error:
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c
mv -f .deps/error.Tpo .deps/error.Po
/bin/sh ./libtool --tag=CC --mode=link gcc -I/usr/include/mysql -g -O2 -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/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
/usr/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
make: *** [spine] Error 1
I have used various posts and believe all necessary prerequisites(libraries) are installed but may be I'm missing something.
OS is Centos 7 and running mariadb(mysql) 10.2.x.
Re: Issue with Spine install on Centos 7
I have the same problem!
CentOS 7
MariaDB 10.2.6
All dependenses installed
When I used MariaDB 5.5, spine has been installed without any problem.
Can anyone help?
Thanks
CentOS 7
MariaDB 10.2.6
All dependenses installed
When I used MariaDB 5.5, spine has been installed without any problem.
Can anyone help?
Thanks
Last edited by izmenoff on Tue Jun 06, 2017 7:42 am, edited 1 time in total.
Re: Issue with Spine install on Centos 7
did you have the mariadb-client package instaled ?
the mariadb-common dosen't give you the client package
the mariadb-common dosen't give you the client package
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Re: Issue with Spine install on Centos 7
yes
MariaDB-common-10.2.6-1.el7.centos.x86_64
MariaDB-client-10.2.6-1.el7.centos.x86_64
MariaDB-shared-10.2.6-1.el7.centos.x86_64
MariaDB-server-10.2.6-1.el7.centos.x86_64
MariaDB-compat-10.2.6-1.el7.centos.x86_64
MariaDB-devel-10.2.6-1.el7.centos.x86_64
MariaDB-common-10.2.6-1.el7.centos.x86_64
MariaDB-client-10.2.6-1.el7.centos.x86_64
MariaDB-shared-10.2.6-1.el7.centos.x86_64
MariaDB-server-10.2.6-1.el7.centos.x86_64
MariaDB-compat-10.2.6-1.el7.centos.x86_64
MariaDB-devel-10.2.6-1.el7.centos.x86_64
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Issue with Spine install on Centos 7
I guess 10.2 doesn't ship that anymore ( see here ):
Code: Select all
libmysqlclient has been removed from the server. It has been replaced by MariaDB’s own Connector/C.
- See more at: https://mariadb.com/resources/blog/mariadb-102-beta#sthash.oEQ5t8c0.dpuf
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Issue with Spine install on Centos 7
I find this information:
libmariadbclient18 MariaDB shared client libraries (required)
libmysqlclient18 meta-package to satisfy external dependencies (required)
libmariadbclient18 MariaDB shared client libraries (required)
libmysqlclient18 meta-package to satisfy external dependencies (required)
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Re: Issue with Spine install on Centos 7
I have the same problem - CentOS 7, MariaDB 10.2 from the MaraiDB repo. Here is the output of rpm -qa | grep -i maria:
I noticed the gcc command points to /usr/lib64, so checking that directory I can see libmariadbclient.a, so I changed the gcc command so it ran against libmariadbclient but it doesn't work:
Is it possible to compile Cacti against MariaDB 10.2.6 at all? If not then might have to go back to CentOS 6 (or Cacti-EZ)
Code: Select all
MariaDB-server-10.2.6-1.el7.centos.x86_64
MariaDB-common-10.2.6-1.el7.centos.x86_64
MariaDB-client-10.2.6-1.el7.centos.x86_64
MariaDB-devel-10.2.6-1.el7.centos.x86_64
MariaDB-compat-10.2.6-1.el7.centos.x86_64
Code: Select all
[root@localhost cacti-spine-1.1.6]# gcc -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 -lmariadbclient -lcrypto -lz -lpthread -lm
/usr/bin/ld: /usr/lib64/libmariadbclient.a(ma_client_plugin.c.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib64/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Re: Issue with Spine install on Centos 7
I haven't tested against 10.2 just yet, but 10.1 works just fine.djluko wrote:Is it possible to compile Cacti against MariaDB 10.2.6 at all? If not then might have to go back to CentOS 6 (or Cacti-EZ)
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Issue with Spine install on Centos 7
You can also just go back to 10.1 using the repository provided here:
https://downloads.mariadb.org/mariadb/r ... rsion=10.1 :
https://downloads.mariadb.org/mariadb/r ... rsion=10.1 :
Code: Select all
# MariaDB 10.1 CentOS repository list - created 2017-06-08 05:08 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Issue with Spine install on Centos 7
I had the same issue on RHEL 7 and MariaDB 10.2.6.
I uninstalled MariaDB 10.2.6 and installed MariaDB 10.1.24:
Make stopped at the same spot:
I don't have much experience with GCC. Any help would be appreciated.
Am I missing something or is there a problem with compiling with MariaDB or RHEL7?
I uninstalled MariaDB 10.2.6 and installed MariaDB 10.1.24:
Code: Select all
rpm -qa | grep Maria
MariaDB-common-10.1.24-1.el7.centos.x86_64
MariaDB-server-10.1.24-1.el7.centos.x86_64
MariaDB-client-10.1.24-1.el7.centos.x86_64
MariaDB-compat-10.1.24-1.el7.centos.x86_64
MariaDB-devel-10.1.24-1.el7.centos.x86_64
Code: Select all
gcc -DHAVE_CONFIG_H -I. -I./config -I/usr/include/mysql -g -O2 -MT error.o -MD -MP -MF .deps/error.Tpo -c -o error.o error.c
mv -f .deps/error.Tpo .deps/error.Po
/bin/sh ./libtool --tag=CC --mode=link gcc -I/usr/include/mysql -g -O2 -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 -lnetsnmp -lmysqlclient -lcrypto -lz -lpthread -lm
libtool: link: gcc -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 -lnetsnmp -lmysqlclient -lcrypto -lz -lpthread -lm
/bin/ld: /usr/lib64/libmysqlclient.a(client_plugin.c.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [spine] Error 1
Am I missing something or is there a problem with compiling with MariaDB or RHEL7?
Re: Issue with Spine install on Centos 7
Yes I ran the command: rpm -qa | grep -i maria and could see the following installed.
MariaDB-server-10.2.6-1.el7.centos.x86_64
MariaDB-common-10.2.6-1.el7.centos.x86_64
MariaDB-client-10.2.6-1.el7.centos.x86_64
MariaDB-devel-10.2.6-1.el7.centos.x86_64
MariaDB-compat-10.2.6-1.el7.centos.x86_64
If there is an issue with 10.2.x then how do you change it to use 10.1.x?
Do you have to backup any DB's, remove 10.2.x and then install 10.1 or is it possible to do a downgrade using the repository specified in a previous comment?
MariaDB-server-10.2.6-1.el7.centos.x86_64
MariaDB-common-10.2.6-1.el7.centos.x86_64
MariaDB-client-10.2.6-1.el7.centos.x86_64
MariaDB-devel-10.2.6-1.el7.centos.x86_64
MariaDB-compat-10.2.6-1.el7.centos.x86_64
If there is an issue with 10.2.x then how do you change it to use 10.1.x?
Do you have to backup any DB's, remove 10.2.x and then install 10.1 or is it possible to do a downgrade using the repository specified in a previous comment?
Re: Issue with Spine install on Centos 7
This is a brand new server with no databases. I'm building it specifically as a new instance of Cacti.
I uninstalled MariaDB 10.2.6 with "yum remove" for server and other packages. Not sure if you can downgrade a database.
Is there anybody here that has successfully compiled spine 1.1.9 on RHEL 7, with MariaDB 10.x?
I uninstalled MariaDB 10.2.6 with "yum remove" for server and other packages. Not sure if you can downgrade a database.
Is there anybody here that has successfully compiled spine 1.1.9 on RHEL 7, with MariaDB 10.x?
-
- Cacti Pro User
- Posts: 613
- Joined: Tue Aug 29, 2006 4:09 pm
- Location: NL
Re: Issue with Spine install on Centos 7
I believe this is not possible to compile with MariaDB 10.2 or higher without changes in the cacti code. Somebody will need to work out what needs to be changed and shape it is such a form that it still works with older versions and MySQL.jt555 wrote:Is there anybody here that has successfully compiled spine 1.1.9 on RHEL 7, with MariaDB 10.x?
This thread already lead to a bug in the cacti tracker: https://github.com/Cacti/cacti/issues/806
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Re: Issue with Spine install on Centos 7
paulgevers, thanks for the answer.
Given the switch from MySQL to MariaDB on so many Linux flavors, I hope this gets fixed fairly soon.
I'm going to continue building RHEL 7, MariaDB 10.2.6, and the latest Cacti and hope that by the time I need spine, it will compile.
Given the switch from MySQL to MariaDB on so many Linux flavors, I hope this gets fixed fairly soon.
I'm going to continue building RHEL 7, MariaDB 10.2.6, and the latest Cacti and hope that by the time I need spine, it will compile.
Re: Issue with Spine install on Centos 7
still not working in a new spine 1.1.11 release
/usr/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
make: *** [spine] Error 1
Developer sent me a message about it issue:
/usr/bin/ld: cannot find -lmysqlclient
collect2: error: ld returned 1 exit status
make: *** [spine] Error 1
Developer sent me a message about it issue:
Just verified with MariaDB that this issue will be fixed in 10.2.7. It's not a spine issue
Who is online
Users browsing this forum: No registered users and 5 guests