Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

This now compiles on osx #4

Open
wants to merge 3 commits into from

1 participant

@la3lma
Owner

not right out of the box, you need to mess with either macports or brew or both (not recommended). Some work needs to be done yet.

Also I don't know how to make binaries that can be moved around to other's machines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 28 additions and 1 deletion.
  1. +20 −0 notes-osx.txt
  2. +8 −1 src/Makefile
View
20 notes-osx.txt
@@ -0,0 +1,20 @@
+To compile nodee, you need the libzookeper library. One way of
+getting that is to install it using the macports ports collection:
+
+
+ tabla:~ rmz2$ sudo port install libzookeeper
+ Password:
+ Warning: port definitions are more than two weeks old, consider using
+ selfupdate
+ ---> Fetching archive for libzookeeper
+ ---> Attempting to fetch libzookeeper-3.3.4_0.darwin_10.x86_64.tbz2
+ from http://packages.macports.org/libzookeeper
+ ---> Attempting to fetch
+ libzookeeper-3.3.4_0.darwin_10.x86_64.tbz2.rmd160 from
+ http://packages.macports.org/libzookeeper
+ ---> Installing libzookeeper @3.3.4_0
+ ---> Activating libzookeeper @3.3.4_0
+ ---> Cleaning libzookeeper
+
+This will drop the files in /opt/local/include/zookeeper, so this
+will have to be included in the search path(s) for the compiler.
View
9 src/Makefile
@@ -23,6 +23,13 @@ BOOSTLIBS=-lboost_thread -lboost_filesystem -lboost_program_options \
ZKINCLUDE=-I/usr/include/c-client-src
endif
+
+ifeq ($(shell ./platform.sh), Darwin)
+BOOSTLIBS=-lboost_thread-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_system-mt \
+ -lzookeeper_mt
+ZKINCLUDE=-I/opt/local/include/zookeeper
+endif
+
ifeq (${VERSION}, )
VERSION=$(shell whoami)-SNAPSHOT-$(shell git show --abbrev-commit --pretty=format:%H HEAD | head -1)
endif
@@ -35,7 +42,7 @@ endif
${COMPILER} ${ZKINCLUDE} -DVERSION=\"${VERSION}\" -DDATE=\"${DATE}\" -g -c -o $@ -O0 $<
nodee: ${OBJECTS} nodee.o Makefile
- ${COMPILER} -g -o nodee -pthread ${OBJECTS} nodee.o ${BOOSTLIBS}
+ ${COMPILER} -g -o nodee -L/opt/local/lib -L/usr/local/lib -pthread ${OBJECTS} nodee.o ${BOOSTLIBS}
clean:
-rm nodee nodeetest dropprivileges *.o
Something went wrong with that request. Please try again.