Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4137735
  • 博文数量: 447
  • 博客积分: 1241
  • 博客等级: 中尉
  • 技术积分: 5786
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-27 06:48
个人简介

读好书,交益友

文章分类

全部博文(447)

文章存档

2023年(6)

2022年(29)

2021年(49)

2020年(16)

2019年(15)

2018年(23)

2017年(67)

2016年(42)

2015年(51)

2014年(57)

2013年(52)

2012年(35)

2011年(5)

分类: LINUX

2018-10-16 20:00:59

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

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