Skip to content
huyz edited this page Jun 25, 2011 · 14 revisions

With this guide, using OSX, you could install Locker for yourself at this very early stage to try it out.

Start by getting Git

Git is used to get Locker. It's also used to contribute to Locker. Git is great. Go get git.

a) Using Homebrew

If you have Homebrew installed, you can just do:

brew install git

b) Manually

Install the latest Git for OX.

Get XCode (Developer Tools)

Go to the Apple Store, search for "Xcode", download. This is needed for compiling Node.js. It now costs $5.00, even though it was free before the App Store.... >:(

Install Node.js

You have two options.

a) Using Homebrew

If you have Homebrew installed, you can just do:

brew install node

b) Manually

http://nodejs.org/#download

Grab the latest tar.gz; e.g.:

curl -o node.tgz http://nodejs.org/dist/node-v0.4.7.tar.gz

cd node-v0.4.7/

So I read README.md. Looks like the usual drill of ./configure; make; make install.

./configure

make

Some warnings about directory not found for option '-Lusr/local/lib'. Hopefully that won't stop me.

Going to try make test to test to see if it works as the node guys expect node to.

make test

Crap, one of the test failed... "simple/test-http-dns-fail". Hope that's not critical for Locker.

make install

Eep

Cannot create folder '/usr/local/include/node/' (original error: [Errno 13] Permission denied: '/usr/local/include')

Lets do that with sudo, if it works for sandwiches...

Yay! 'install' finished successfully (0.256s)

NPM, the Node Package Manager

This is for node packages. Yummy yummy nodey packages.

curl -o install_npm.sh http://npmjs.org/install.sh

sudo sh install_npm.sh

Okay, now we can install Locker!

git clone https://github.com/LockerProject/Locker.git

cd Locker

Yay, downloaded (cloned) it directly from github.com. Now I have my own personal Locker platform to run with.

We need to set it up though...

npm install

python setupEnv.py

node lockerd.js

Hot damn, it's up! Now to go to http://localhost:8042 to access it with Chrome.

Clone this wiki locally