本想使用homebrew安装sysbench,search后发现没有formula。
只好自己动手做个formula,在make时会有下面的报错。
../libtool: line 835: X--tag=CC: command not found
../libtool: line 868: libtool: ignoring unknown tag : command not found
../libtool: line 835: X--mode=link: command not found
../libtool: line 1001: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 1002: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 2228: X-D_THREAD_SAFE: command not found
../libtool: line 2228: X-g: command not found
../libtool: line 2228: X-O2: command not found
../libtool: line 1948: X-L/usr/local/mysql/lib: No such file or directory
../libtool: line 2397: Xsysbench: command not found
launch_msg("CheckIn") IPC failure: Operation not permitted
Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
Xquartz: X11.app = /Applications/Utilities/XQuartz.app/Contents/MacOS/X11
Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
X11.app: main(): argc=2
argv[0] = /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin
argv[1] = --listenonly
Waiting for startup parameters via Mach IPC.
X11.app: No launchd socket handed off, unsetting DISPLAY
X11.app: do_start_x11_server(): argc=1
argv[0] = X
Xquartz starting:
X.Org X Server 1.7.6
Build Date: 20100329
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
|
具体解决办法:
修改configure.ac文件
注释掉 AC_PROG_LIBTOOL
添加上 AC_PROG_RANLIB
|
再执行
就可以正常安装了
./configure && make && make install
|
待我将sysbench的formula合并到master上就可以通过brew来安装了
阅读(2775) | 评论(0) | 转发(0) |