sudo apt-get install libtool
sudo apt-get install autoconf
sudo apt-get install libtool-bin
ubuntu下jzmq的安装
下载libzmq源码
tar -zxvf libzmq-4.2.5.tar.gz
./configure --prefix=/usr
make
make install
安装jzmq
./configure --prefix=/usr
出现autogen.sh: error: could not find libtool. libtool is required to run autogen.sh.
apt install libtool-bin
make
出现
Event.cpp: In function ‘_jobject* Java_org_zeromq_ZMQ_00024Event_recv(JNIEnv*, _jclass*, jlong, jint)’:
Event.cpp:60: error: ‘zmq_event_t’ was not declared in this scope
Event.cpp:60: error: expected ‘;’ before ‘event’
Event.cpp:72: error: ‘event’ was not declared in this scope
make[2]: *** [libjzmq_la-Event.lo] Error 1
make[2]: Leaving directory `/home/jzmq-3.1.0/src/main/c++'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/jzmq-3.1.0/src/main/c++'
make: *** [all-recursive] Error 1
这个是3.1的bug,从github使用最新版本的Event.cpp即可
make install
会编译出jar
阅读(1780) | 评论(0) | 转发(0) |