安装storm需要首先安装zeromq和jzmq,root帐号安装见twitter storm安装和storm-start的本地运行
如果不是root帐号,那么是无法把库装到默认的/usr/local/lib中,下面是非root帐号的安装办法
例如以guest帐号登陆
wget http://download.zeromq.org/zeromq-2.1.7.tar.gz tar -xzf zeromq-2.1.7.tar.gz cd zeromq-2.1.7 ./configure --prefix=/home/guest/lib/zeromq make make install
安装时报错:
Error:cannot link with -luuid, install uuid-dev安装uuid相关的package:
# yum install uuid* # yum install e2fsprogs* # yum install libuuid*
然后在~/.bash_profile添加如下内容:
export CPPFLAGS=-I/home/jiawei.jjw/storm/dependency/include export LDFLAGS=-L/home/jiawei.jjw/storm/dependency/lib
注意uuid.h要放在CPPFLAGS指定目录下的uuid子目录下,不然会报错:
uuid.hpp:31:23: error: uuid/uuid.h: No such file or directory
git clone https://github.com/nathanmarz/jzmq.git cd jzmq ./autogen.sh ./configure --prefix=/home/guest/lib/jzmq --zeromq=/home/guest/lib/zeromq make make install