作为一名在mac os平台上搞开发的java程序员来说,环境的配置有时候真的让人头大,虽然mac os平台跟linux有相似之处,但是毕竟不是linux。下面我主要是记录我在配置storm时遇见的一些问题,如果你在玩storm或者使用zeromq并且需要在mac os上安装jzmq的本地库,我想这篇文章对你是有一定用处的。
关于jzmq的安装网上文章很多了,我先不管别人是碰见神马问题,反正我在使用./configure的时候遇见如下的错误:
checking how to hardcode library paths into programs... immediate
./configure: line 15328: syntax error near unexpected token `newline'
./configure: line 15328: ` PKG_CHECK_MODULES('
官方给出了一个在stackoverflow的解决方案,链接如下:
http://stackoverflow.com/questions/3522248/how-do-i-compile-jzmq-for-zeromq-on-osx;
通过该篇文章我确定pkg-config是必须安装的,运行命令:
brew install pkg-config
但是由于我试过很多方案,东西也安装了不少,所以很乱,比如我开始运行./autogen.sh是可以运行的,但是我装来装去之后,发现该命令都不能运行,并且报出如下错误:
autogen.sh: error: could not find autoreconf. autoconf and automake are required to run autogen.sh.
我靠,刚才都好好的,现在不行。一气之下不再看网上的方案,自己解决,兵来将挡,水来土掩。该错误很简单,一分析,不就是automake找不到嘛,那重新安装,命令如下:
brew install automake
一运行,还是报错,但是错误却变成下面的错误:
autoreconf: failed to run glibtoolize: No such file or directory
autoreconf: libtoolize is needed because this package uses Libtool
autogen.sh: error: autoreconf exited with status 0
搞错没有,一看猜测是Libtool出现问题,重装,命令如下:
brew install Libtool
重新运行./configure,过了,不错。
接着我运行make编译,错误又来了,如下:
Making all in src
make[1]: *** No rule to make target `classdist_noinst.stamp', needed by `org/zeromq/ZMQ.class'. Stop.
make: *** [all-recursive] Error 1
刚好看过两篇篇解决方案:
http://blog.sina.com.cn/s/blog_8ae7b3fe01013yrv.html
http://tjun.jp/blog/2012/04/how-to-build-jzmq-in-mac-os-x-lion/
简单,命令如下:
touch src/classdist_noinst.stamp
make一下,ok,搞定。
以上就是我的解决思路,由于又是凌晨了,语言组织的不是很好,口水话很多,希望对你有所帮助!
分享到:
相关推荐
### 量化交易:如何构建自己的算法交易业务 #### 核心知识点概述 本文将深入探讨《量化交易:如何构建自己的算法交易业务》一书中的核心知识点。本书由Ernest P. Chan撰写,作为一位在量化交易领域有着丰富经验的...
This combination reference and tutorial provides a comprehensive yet concise look at UNIX for users of Mac OS X. The book is fully up-to-date with the 10.4 (Tiger) release of OS X which is built on ...
If you’re developing applications for Mac OS X, Cocoa® Programming for Mac® OS X, Fourth Edition, is the book you’ve been waiting to get your hands on. If you’re new to the Mac environment, it’s...
How to Build Blockchain App How to Build Blockchain App
Beowulf集群的简要介绍,适合中小企业和资金不多又需要高速度运算的公司。做简单的搜索网站,在安排硬件和软件环境时也用得上。
我无法给出详尽的驱动下载,大家如果安装驱动的过程遇到问题或者不知道如何安装mac驱动,可以去参考这篇文章http://www.jackq.com/how-to-install-x86-mac-os-x-snowleopard-driver/ 2.如何查看显卡是否开启了QE/CI,...
featured applications for OS X, written in an engaging tutorial style, and thoroughly class-tested to assure clarity and accuracy, it is an invaluable resource for any Mac programmer. <br>...
https://github.com/iBotPeaches/Apktool
ASP.NET Core 1.1 For Beginners: How to Build a MVC Website by Jonas Fagerberg English | 19 May 2017 | ASIN: B071VX7KN4 | 411 Pages | PDF | 6.66 MB Want to learn how to build ASP.NET Core 1.1 MVC Web ...
ASP.NET Core 1.1 Web API For Beginners How To Build a Web API ASP.NET Core 1.1 Web API For Beginners How To Build a Web API ASP.NET Core 1.1 Web API For Beginners How To Build a Web API
How to Build Big Data Pipelines for Hadoop
How to build compile server with virtualbox & samba
Get the concise information you need to start using OS X Mountain Lion, the latest version of the Mac operating system. This handy guide goes right to the heart of the OS, with details on system ...
Now, for the first time, there's a comprehensive, authoritative guide to making the most of DTrace in any supported UNIX environment--from Oracle Solaris to OpenSolaris, Mac OS X, and FreeBSD. ...
That makes this a great time to learn Cocoa, and Cocoa Programming for Mac OS X For Dummies is the ideal place to start! This book gives you a solid foundation in Cocoa and the unusual syntax of ...
Microsoft-annie wang-How to build inclusive product
"iOS and OS X Network Programming Cookbook" begins by showing you how to build both client and server applications using the BSD Socket Library as well as Apple’s CFNetworking library. The sample ...