-
-
Save luque/3957835 to your computer and use it in GitHub Desktop.
How to: install Hubot on Debian Squeeze
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
# 1. Install nodejs and npm: | |
sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev python | |
git clone https://github.com/joyent/node.git | |
cd node | |
# 'git tag' shows all available versions: select the latest stable. | |
git checkout v0.9.3 | |
# Configure seems not to find libssl by default so we give it an explicit pointer. | |
# Optionally: you can isolate node by adding --prefix=/opt/node | |
./configure --openssl-libpath=/usr/lib/ssl | |
make | |
make test | |
sudo make install | |
node -v # it's alive! | |
# Luck us: NPM is packaged with Node.js source so this is now installed too | |
# curl http://npmjs.org/install.sh | sudo sh | |
npm -v # it's alive! | |
# 2. Install coffee-script | |
npm install -g coffee-script | |
# 3. Install Hubot dependencies | |
apt-get install build-essential libssl-dev git-core redis-server libexpat1-dev | |
# 4. Install Hubot | |
cd /opt | |
git clone git://github.com/github/hubot.git && cd hubot | |
npm install | |
export PATH="node_modules/.bin:$PATH" | |
# 5. Try hubot | |
cd /opt/hubot | |
bin/hubot | |
> hubot ping | |
> PONG | |
# 6. Create new bot | |
cd /opt/hubot | |
bin/hubot -c wanda-bot | |
# 7. Configure the bot to use XMPP | |
# Edit bot-directory/package.json: | |
"dependencies": { | |
"hubot": "2.3.2", | |
"hubot-scripts": ">= 2.1.0", | |
"optparse": "1.0.3", | |
"node-xmpp": "0.3.2", | |
"hubot-xmpp": "0.1.0", | |
"htmlparser": "1.7.6", | |
"soupselect": "0.2.0", | |
"underscore": "1.3.3", | |
"underscore.string": "2.2.0rc" | |
} | |
cd bot-directory | |
npm --nodedir=/root/downloads/node install # --nodedir required for "pre" node versions | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment