From b093c814d3b2c22eabc11a5eb868d58f3af9e06e Mon Sep 17 00:00:00 2001 From: Brett Slatkin Date: Wed, 12 Oct 2011 23:05:37 -0700 Subject: [PATCH] Docs: Setup the Camli build on a Mac Change-Id: Idb334589314983e0d9f0d6ecedc64469aa303ede --- doc/setup.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 doc/setup.txt diff --git a/doc/setup.txt b/doc/setup.txt new file mode 100644 index 000000000..0845727e6 --- /dev/null +++ b/doc/setup.txt @@ -0,0 +1,40 @@ +=== +Instructions for getting the Camlistore build to work on Mac OS X. + +* Install binaries + - Mercurial: http://mercurial.selenic.com/downloads/ + - Git: http://code.google.com/p/git-osx-installer/downloads + - MySQL: http://dev.mysql.com/downloads/mysql/ + echo 'export PATH=$PATH:/usr/local/mysql/bin' >> ~/.bash_profile + mysqladmin -u root password root + +* Setup Go + - Get the code: hg clone -u release https://go.googlecode.com/hg/ ~/go + - Build it: + cd ~/go/src; ./all.bash + - Fix your environment: + echo 'export GOROOT=/Users/$USER/go/' >> ~/.bash_profile + echo 'export PATH=/Users/$USER/go/bin:$PATH' >> ~/.bash_profile + +* Setup Camlistore + - Get the code: git clone https://camlistore.org/r/p/camlistore ~/camlistore + - Run it: + cd ~/camlistore; ./dev-server + - Upload a file (make sure this works): + ~/camlistore/dev-camput file ~/camlistore/COPYING + - Create a permanode (which needs GPG keys): + ~/camlistore/dev-camput permanode + - Use the UI: http://localhost:3179/ui/ + +* App Engine for Go + - Get the dev_appserver: http://code.google.com/p/googleappengine/downloads/list + - Run it: + ~/google_appengine/dev_appserver.py -a `hostname` --high_replication server/go/appengine/ + - Uplaod a file: + ./dev-camput --blobserver=localhost:8080/bs --password=foo file COPYING + +* Hack on it + - TextMate bundle: https://github.com/AlanQuatermain/go-tmbundle + - Go to Preferences -> Advanced -> Folder References -> File Pattern + - Add: "|_go_\.6" without quotes before the $ to prevent the object files from creeping in + - Learn how to contribute: http://camlistore.org/docs/contributing