报错内容:
/usr/bin/ld: cannot find -lmysqlclient collect2: error: ld returned 1 exit status make: *** [spine] Error 1
|-------|------------------------------------------------------------------------------------------------------------------| | 1 2 3 | /usr/bin/ld: cannot find -lmysqlclient collect2: error: ld returned 1 exit status make: *** [spine] Error 1 |
解决办法:
centos:
yum install mysql-devel
|---|-------------------------| | 1 | yum install mysql-devel |
ubuntu:
apt-get install libmysqlclient-dev
|---|------------------------------------| | 1 | apt-get install libmysqlclient-dev |
包安装完成后
make clean all ./configure make make install
|---------|----------------------------------------------| | 1 2 3 4 | make clean all ./configure make make install |