非root帳號安裝zeromq和jzmq

安裝storm需要首先安裝zeromq和jzmq,root帳號安裝見twitter storm安裝和storm-start的本地運行

如果不是root帳號,那麼是無法把庫裝到默認的/usr/local/lib中,下面是非root帳號的安裝辦法

例如以guest帳號登陸

1.安裝zeromq

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* 

將storm的鏈接庫移到自己的目錄下:



然後在~/.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

2.安裝jzmq

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章