Created
August 5, 2010 17:41
-
-
Save brenes/510080 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instructions for installing FlockDB on Ubuntu | |
------- Dependencies | |
- java 1.6: The "easy" one: apt-get install sun-java6-* | |
In Ubuntu 10.4 java packages have been moved to partner repository(https://wiki.ubuntu.com/LucidLynx/ReleaseNotes#Sun Java moved to the Partner repository), so we must add the partner repository: | |
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner" | |
- sbt 0.7.4: A tricky one. SBT is "simple-build-tool" a framework for building projects in scala (I believe). It's hosted in Google Code and you can download binaries there: http://code.google.com/p/simple-build-tool/ | |
¿And now? You download an executable JAR file. It's highly recommended to create an alias for all the java command required to execute the required orders. | |
1. I downloaded sbt to /home/brenes/bin folder and created an executable file with the whole java command: | |
java -Xss2M -Xmx1024M -XX:MaxPermSize=256M -jar `dirname $0`/sbt-launch.jar "$@" | |
If you find any StackOverflow exception you may be interested on raising the JVM memory by raising Xss parameter (-Xss4M). | |
2. After that I added my bin folder to my path in my .bashrc file: | |
export PATH=$PATH:$HOME/bin | |
So now I can execute sbt from any folder (which will turn out very useful). | |
- thrift 0.2.0: This is Apache Thrift, a "software framework for scalable cross-language services development" hosted on Incubator: http://incubator.apache.org/thrift/ | |
I had to download it and install lex and yacc parsers flex and byson (apt-get install flex byson) before I could build Thrift. | |
------- Building FlockDB | |
We must clone the git repo from http://github.com/twitter/flockdb | |
If we run the usual command: sbt clean update package-dist the build will fail as sbt can solve the dependency on gizzard 1.2.0 | |
The reason is that apparently there is no version 1.2.0 but 1.2.1. So if you edit the file in project/build/FlockDBProject.scala and edit the line 11 to change the version: | |
val gizzard = "com.twitter" % "gizzard" % "1.2.1" | |
With this change we can build the FlockDB project: | |
sbt clean update package-dist | |
I'm not sure if this can have any undesired consequences, so I write an issue: http://github.com/twitter/flockdb/issues#issue/6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment