报错信息1:
1 2 |
false // No help2man // --output=spine.1 --name='Data Collector for Cacti' --no-info --version-option='--version' ./spine make: *** [spine.1] Error 1 |
解决办法:
1 |
yum -y install help2man |
报错信息2:
1 2 3 4 |
libtool: link: gcc -I/usr/local/snmp/include/net-snmp -I/usr/local/snmp/include/net-snmp/.. -I/usr/local/mysql/include -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/local/snmp/lib -L/usr/local/mysql/lib -lssl /usr/local/snmp/lib/libnetsnmp.so -lmysqlclient -lrt -lcrypto -lz -lpthread -lm -Wl,-rpath -Wl,/usr/local/snmp/lib -Wl,-rpath -Wl,/usr/local/snmp/lib /usr/bin/help2man --output=spine.1 --name='Data Collector for Cacti' --no-info --version-option='--version' ./spine help2man: can't get `--help' info from ./spine make: *** [spine.1] Error 127 |
解决办法:
1 |
ln -sv /usr/local/mysql/lib/libmysqlclient.so.20 /usr/lib64/libmysqlclient.so.20 |
报错信息3:
1 2 3 |
/usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [spine] Error 1 |
解决办法:
1 |
ln -sv /usr/local/mysql/lib/libmysqlclient.so /usr/lib64/libmysqlclient.so |
原文链接:spine编译时报错,转载请注明来源!