閱讀297 返回首頁    go 阿裏雲 go 技術社區[雲棲]


sysbench RHEL6 安裝備忘

sysbench 用於壓力測試

相應下載, 文檔位置  https://sysbench.sourceforge.net/

但從 2009 年開始已經停止開發


rhel6 下, 正常編譯會出現類似下麵錯誤

../libtool: line 841: X--mode=link: command not found


解決 :  編輯 configure.ca:


#AC_PROG_LIBTOOL
AC_PROG_RANLIB


./autogen.sh

./configure --with-mysql  --with-mysql-includes=/usr/local/mysql/include  --with-mysql-libs=/usr/local/mysql/lib/

make && make install 

成功編譯

 

## 注意 ##

某些 MySQL 版本中, 需要定義為

./configure --with-mysql  --with-mysql-includes=/usr/local/mysql/include/mysql/  --with-mysql-libs=/usr/local/mysql/lib/mysql/

 

最後更新:2017-04-02 18:30:39

  上一篇:go Ubuntu Install Method
  下一篇:go xcache 安裝備忘