Build recipe (Ubuntu 11.04)

236 views
Skip to first unread message

Mike Smathers

unread,
Jun 30, 2011, 1:31:34 AM6/30/11
to Log.io
The following recipe was used to build a Log.io environment on a fresh
Ubuntu 11.04 install:

# Install node.js dependencies
sudo apt-get install g++
sudo apt-get install make
sudo apt-get install git
sudo apt-get install libssl-dev

# Download, compile node.js source
mkdir ~/downloads
cd downloads
wget "http://nodejs.org/dist/node-v0.4.9.tar.gz"
tar -xzvf node-v0.4.9.tar.gz
cd node-v0.4.9/
./configure
make
sudo make install

# Install NPM
curl http://npmjs.org/install.sh | sudo sh

# Install node.js packages
sudo npm install -g sock...@0.6.17
sudo npm install -g connect
sudo npm install -g underscore

# Manually install Socket.io-node-client, revert submodule
cd /usr/local/lib/node_modules/
sudo git clone git://github.com/msmathers/Socket.io-node-client.git
cd Socket.io-node-client
sudo git submodule update --init --recursive
cd socket.io-node
sudo git checkout 0.6.17

# Get Log.io source
cd ~/downloads
git clone git://github.com/NarrativeScience/Log.io.git log.io
cd log.io/bin/

# Install server and/or harvester
./configure
sudo ./install/server
sudo ./install/harvester

# Launch harvester
sudo /etc/init.d/log.io-harvester start

ramandv

unread,
Jun 30, 2011, 11:59:07 PM6/30/11
to Log.io
Getting some error in socket.io

cd ~/downloads
git clone git://github.com/NarrativeScience/Log.io.git log.io
cd log.io/bin/
./configure

=============================================Configure OUTPUT
==========================
Checking for node.js
Checking for node.js package 'socket.io'...
Checking for node.js package 'underscore'...
Checking for node.js package 'connect'...
Checking for node.js package 'Socket.io-node-client'...
ERROR: Could not find socket.io-client package
https://github.com/remy/Socket.io-node-client

NOTE: This one is tricky since there's no npm package.
Drop repo into /usr/local/lib/node/socket.io.client/
Be sure to recursively clone the repo:
git submodule update --init --recursive

Ultimately you should end up with:
/usr/local/lib/node/socket.io.client/io-client.js
/usr/local/lib/node/socket.io.client/socket.io-node/
/usr/local/lib/node/socket.io.client/socket.io-node/lib/socket.io/
utils
/usr/local/lib/node/socket.io.client/socket.io-node/support/node-
websocket-client/lib/websocket

==========================================================================================================
But still without this error also, able to install server and
harvester.

The installation of Socket.io-node-client should be as follows

# Manually install Socket.io-node-client, revert submodule
cd /usr/local/lib/node/
socket.io.client
cd socket.io.client
sudo git submodule update --init --recursive
cd socket.io-node
sudo git checkout 0.6.17







On Jun 30, 1:31 pm, Mike Smathers <msmath...@narrativescience.com>
wrote:
> The following recipe was used to build a Log.io environment on a fresh
> Ubuntu 11.04 install:
>
> # Install node.js dependencies
> sudo apt-get install g++
> sudo apt-get install make
> sudo apt-get install git
> sudo apt-get install libssl-dev
>
> # Download, compile node.js source
> mkdir ~/downloads
> cd downloads
> wget "http://nodejs.org/dist/node-v0.4.9.tar.gz"
> tar -xzvf node-v0.4.9.tar.gz
> cd node-v0.4.9/
> ./configure
> make
> sudo make install
>
> # Install NPM
> curlhttp://npmjs.org/install.sh| sudo sh
>
> # Install node.js packages
> sudo npm install -g socket...@0.6.17

Mike Smathers

unread,
Jul 1, 2011, 1:09:21 AM7/1/11
to Log.io
That error message is from a previous release with broken
dependencies, the latest checkout should work just fine:
https://github.com/NarrativeScience/Log.io/commit/e074aa85acdb94126bdfb995d5e5ed9e54068d7f

On Jun 30, 10:59 pm, ramandv <rama...@gmail.com> wrote:
> Getting some error in socket.io
>
> cd ~/downloads
> git clone git://github.com/NarrativeScience/Log.io.git log.io
> cd log.io/bin/
> ./configure
>
> =============================================Configure OUTPUT
> ==========================
> Checking for node.js
> Checking for node.js package 'socket.io'...
> Checking for node.js package 'underscore'...
> Checking for node.js package 'connect'...
> Checking for node.js package 'Socket.io-node-client'...
> ERROR: Could not find socket.io-client packagehttps://github.com/remy/Socket.io-node-client
Reply all
Reply to author
Forward
0 new messages