Chinaunix首页 | 论坛 | 博客
  • 博客访问: 127749
  • 博文数量: 25
  • 博客积分: 1543
  • 博客等级: 上尉
  • 技术积分: 271
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-07 16:40
文章分类

全部博文(25)

文章存档

2011年(6)

2010年(19)

我的朋友

分类: BSD

2010-08-01 12:47:10

本想使用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


再执行

./autogen.sh


就可以正常安装了

./configure && make && make install


待我将sysbench的formula合并到master上就可以通过brew来安装了

brew install sysbench


阅读(2722) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~