compiling cacti-spine 0.8.8d with mariadb on centos6

get the other libraries snmp, ssl, etc

yum install MariaDB-devel
ln -s /usr/lib64/mysql/libmysqlclient_r.so.16.0.0 libmysqlclient_r.so
ln -s /usr/lib64/mysql/libmysqlclient.so.16.0.0 libmysqlclient.so

then compile
if you get this error during make
common.h:143:18: error: mib.h: No such file or directory

then

cp /usr/include/net-snmp/library/mib.h .

passwd: Authentication token manipulation error

Centos

[[email protected] ~]# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error

solved

[[email protected] ~]# /usr/sbin/useradd aa useradd: unable to open password file
[[email protected] ~]# chattr -i /etc/passwd
[[email protected] ~]# /usr/sbin/useradd aa
useradd: cannot open shadow password file
[[email protected] ~]# lsattr /etc/passwd ————– /etc/passwd
[[email protected] ~]# lsattr /etc/shadow —-i——— /etc/shadow
[[email protected] ~]# chattr -i /etc/shadow
[[email protected] ~]# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[[email protected] ~]