Hello all I'm attempting to follow the directions located at: https://github.com/nathanmarz/storm/wiki/Installing-native-dependencies for installing Zero MQ as a dependency for Storm on a Ubuntu 12.04 machine. However when trying to run the make command I get the following error
Making all in src
make[1]: Entering directory `/home/localadmin/jzmq/src'
make[1]: *** No rule to make target `classdist_noinst.stamp', needed by `org/zeromq/ZMQ.class'. Stop.
make[1]: Leaving directory `/home/localadmin/jzmq/src'
make: *** [all-recursive] Error 1
Does anyone have any idea where this error stems from and how I would be able to correct it?
Why not just use the package manager to install it?
For Ubuntu 13.04 (Raring), I needed to run the following before the ./autogen.sh step:
I found this workaround here, and I think that this thread could be useful to anyone with that kind of problems: https://github.com/zeromq/jzmq/issues/114
Apparently compiling JZMQ on Ubuntu 12.04 is a little bit more involved than I realized. However I took the time to write out the solution that I found. You can find it at: Installing Storm's Native Dependencies on Ubuntu 12.04. For time's sake here are the instructions:
Create a JAVA_HOME variable that point the the jdk you just installed. Should be in the /usr/lib/jvm directory
JAVA_HOME=/usr/lib/jvm/(your jdk folder); export JAVA_HOME
Run the following commands for installing Zero MQ:
Download JZMQ and navigate to the the src directory
Once in the src directory run the touch command to create a file and then redefine the classpath.
6.Navigate back to the /jzmq and run make
Parts of this were stitched together from the Storm - Installing Native Dependencies and Tijun - How to build jzmq in Mac OS X Lion. Thanks guys for putting your pieces of the puzzle up I just stitched them together.
You need to replace
classdist_noinst.stamp
withclassnoinst.stamp
injzmq/src/**Makefile.am**
There is a fix for this now in the zeromq/jzmq repo that I added to the my frozen jzmq repo: https://github.com/halfaleague/jzmq
Now, you can just follow the directions (
./autogen.sh
,./configure
,make
,make install
).