Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 99 lines (68 sloc) 2.405 kb
cb6c16a Owen Barnes 0.0.45
owenb authored
1 Install Instructions
2 ====================
3
4 SocketStream runs on all UNIX based platforms, including OS X and Linux.
5
7e7e841 Owen Barnes 0.1.00
owenb authored
6 ### Mac OS X installation (tested on Snow Leopard 10.6.7)
b85afbb Marcin Olak Installation instructions for Ubuntu.
kyokpae authored
7
7e7e841 Owen Barnes 0.1.00
owenb authored
8 # get XCode, required for compiling software
9
10 http://itunes.apple.com/gb/app/xcode/id422352214?mt=12
11
12 # get Redis
13
0d743a5 Owen Barnes updated install docs (thanks ltackett)
owenb authored
14 download the latest version from http://redis.io
15
16 tar -xvzf redis-2.2.X.tar.gz
17 cd redis-2.2.X
7e7e841 Owen Barnes 0.1.00
owenb authored
18 make
19 make test # this is optional, but they recommend it
20 sudo make install
0d743a5 Owen Barnes updated install docs (thanks ltackett)
owenb authored
21
22 to run in the foreground (and see incoming connections):
23 redis-server
24
25 to run in the background:
26 env redis-server > /tmp/redis.log 2>&1 &
7e7e841 Owen Barnes 0.1.00
owenb authored
27
28 # get Node.js
29
30 git clone --depth 1 https://github.com/joyent/node.git
31 cd node
32 git checkout origin/v0.4
33 export JOBS=2 # optional, sets number of parallel commands.
34 mkdir ~/local
35 ./configure --prefix=$HOME/local/node
36 make # this will take a couple of minutes
37 make install
38 echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.profile
39 source ~/.profile
40
41 # get npm
42
43 curl http://npmjs.org/install.sh | sh
44
45 # get SocketStream
46
2ed31e8 Owen Barnes docs
owenb authored
47 sudo npm install socketstream -g
7e7e841 Owen Barnes 0.1.00
owenb authored
48
49 # create a Socketstream app as a test
50
51 socketstream new test
52 cd test
53 socketstream start
54
b85afbb Marcin Olak Installation instructions for Ubuntu.
kyokpae authored
55
56 ### Ubuntu 10.04 server installation
57
cb6c16a Owen Barnes 0.0.45
owenb authored
58 Here is an example that shows how to install SocketStream and it's dependencies on Ubuntu Server, including building Redis and Node.js from source:
59
b85afbb Marcin Olak Installation instructions for Ubuntu.
kyokpae authored
60 # get prerequisites
61 sudo apt-get install build-essential automake git-core curl libssl-dev -y
62
63 # install and run redis
64 cd ~
65 wget http://redis.googlecode.com/files/redis-2.2.4.tar.gz
66 tar -xvzf redis-2.2.4.tar.gz
67 cd redis-2.2.4
68 make
69 sudo make install
70 env redis-server > /tmp/redis.log 2>&1 &
71
72 # install node.js
73 cd ~
74 git clone https://github.com/joyent/node.git
75 cd node
76 export JOBS=2
77 mkdir -p ~/local/node
78 ./configure --prefix=$HOME/local/node
79 make
80 make install
81 export PATH=$HOME/local/node/bin:$PATH
82
83 # install npm
cb6c16a Owen Barnes 0.0.45
owenb authored
84 curl http://npmjs.org/install.sh | sudo sh
b85afbb Marcin Olak Installation instructions for Ubuntu.
kyokpae authored
85
7e7e841 Owen Barnes 0.1.00
owenb authored
86 # get SocketStream
2ed31e8 Owen Barnes docs
owenb authored
87 sudo npm install socketstream -g
b85afbb Marcin Olak Installation instructions for Ubuntu.
kyokpae authored
88
cb6c16a Owen Barnes 0.0.45
owenb authored
89 # create a new socketstream project called 'test'
b85afbb Marcin Olak Installation instructions for Ubuntu.
kyokpae authored
90 cd ~
91 socketstream new test
92
93 # run test app
94 cd test
cb6c16a Owen Barnes 0.0.45
owenb authored
95 socketstream start
7e7e841 Owen Barnes 0.1.00
owenb authored
96
97
98
Something went wrong with that request. Please try again.