Installing Hubot on Mac OS X Lion 10.7

Github has just released Hubot to the public (Say Hello to Hubot).

What is Hubot?

I have installed it on my MBP running Max OS X 10.7.2

Instructions:

  • Set Redis to run on startup. Run the following commands from terminal.
    mkdir -p ~/Library/LaunchAgents
    cp /usr/local/Cellar/redis/2.2.12/io.redis.redis-server.plist ~/Library/LaunchAgents/
    launchctl load -w ~/Library/LaunchAgents/io.redis.redis-server.plist

Example usage:

Result in browser:

Published by

oughton

Senior software engineer with extensive experience in enterprise software development targeting wholesale financial organisations and cloud solution providers.

8 thoughts on “Installing Hubot on Mac OS X Lion 10.7”

  1. Well that was interesting. I got a hubot connected to my irc server, then into my campfire server.

    Nice tutorial.

  2. You can also run Hubot as a launchctl service (it will handle restarting for you, logging to /var/log/system.log, etc.)

    Save the following (change PATH, etc. accordingly) to ~/LaunchAgents/com.my.hubot.plist and load with launchctl as described above and you’re all set!

    (go.sh is just a simple shell script to setup some Hubot-specific environment vars and run ./bin/hubot)

    KeepAlive

    Label
    com.my.hubot
    ProgramArguments

    /bin/sh
    -c
    export PATH=/usr/local/bin:/usr/local/Cellar/ruby/2.1.0/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin; /Users/user/workspace/hubot/go.sh

    RunAtLoad

    WorkingDirectory
    /Users/user/workspace/hubot

    -Nate

  3. I’m googling for help getting Hubot installed on my Mac, and your post is determined to stay at the top of the results. It’s a long shot, but I thought it can’t hurt to ask.

    Have you had any experiencing installing Hubot recently? I’ve tried on both Mac and Windows. Following your steps, I get successfully to the execution of bin/hubot, at which I am greeted with:

    WARNING The HUBOT_AUTH_ADMIN environment variable not set
    INFO Data for brain retrieved from Redis

    followed by nothing. No further content, and the Hubot is unresponsive. I get identical behavior on Mac and Windows–and most variations of googling the errors resolve to GitHub commits.

    If you know any resources for starting/troubleshooting a Hubot install in 2014, let me know.

    1. (facepalm) Nevermind. As usual, as soon as I ask a question out loud, the solution becomes obvious. Hubot was running just fine, I just wasn’t prefixing subsequent commands with hubot . D’oh!

Comments are closed.