作为一名在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,搞定。
以上就是我的解决思路,由于又是凌晨了,语言组织的不是很好,口水话很多,希望对你有所帮助!
分享到:
相关推荐
Quantitative Trading - How to Build Your Own Algorithmic Trading Business.
Programming with Quartz is a rich resource for new and experienced Mac OS X developers, Cocoa and Carbon programmers, UNIX developers who are migrating to Mac OS X, and anyone interested in powerful ...
Basic Concepts – What’s control in WPF? – Control Principles? – ContentModel – ContentPresenter & ItemsPresenter Build a ColorPicker control
本书是互联网产品经理必读刊物,讲述了如何打造让用户上瘾的产品。
How to Build a Web Dynpro Application
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 ...
How to build up a high performance team, experts will give you much instructions..
An in-depth look into Mac OS X and iOS kernels Powering Macs, iPhones, iPads and more, OS X and iOS are becoming ubiquitous. When it comes to documentation, however, much of them are shrouded in ...
使用Haskell和Monad技术实现一个解释器。又学Monad也学解释器。
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...
如何从头开始构建autoML,Bridging WebML to model-driven engineering: From document type definitions to meta object facility,Meta-models are a prerequisite for model-driven engineering (MDE) in general...
How to Build Blockchain App How to Build Blockchain App
Then they go on to show you how to use it, how to document your designs in Computer-Aided Design programs, and how to output your designs as specifications and tool paths that feed into the CNC ...
ASP.NET Core 1.1 For Beginners How to Build a MVC Website 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载...
Beowulf集群的简要介绍,适合中小企业和资金不多又需要高速度运算的公司。做简单的搜索网站,在安排硬件和软件环境时也用得上。
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
how to build your own plugin framework in c++
我无法给出详尽的驱动下载,大家如果安装驱动的过程遇到问题或者不知道如何安装mac驱动,可以去参考这篇文章http://www.jackq.com/how-to-install-x86-mac-os-x-snowleopard-driver/ 2.如何查看显卡是否开启了QE/CI,...