Skip to content

Instantly share code, notes, and snippets.

@hakanai
Created April 6, 2013 00:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save hakanai/5323718 to your computer and use it in GitHub Desktop.
Save hakanai/5323718 to your computer and use it in GitHub Desktop.
Getting rbot to work on ubuntu
# Installing apt packages required for other things to work... (may be more, this is all I remember)
apt-get install g++ xsltproc docbook-xsl
# Installing rbenv...
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
exec $SHELL -l
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# Installing a Ruby...
rbenv install 1.8.7-p371
rbenv local 1.8.7-p371
rbenv rehash
# Installing a compatible BDB...
wget http://ftp.riken.go.jp/pub/FreeBSD/distfiles/ruby/bdb-0.6.5.tar.gz
tar zxf bdb-0.6.5.tar.gz
cd bdb-0.6.5
ruby extconf.rb
make
make install
cd ..
# Installing rbot requirements…
gem install rake
rbenv rehash
# Installing rbot...
git clone https://github.com/jsn/rbot.git
cd rbot
vim Rakefile
# replace rake/gempackagetask with rubygems/package_task
# replace Rake::GemPackageTask with Gem::PackageTask
rake gem
gem install pkg/rbot-0.9.15.gem
cd ..
rbenv rehash
# Running it for the first time!
rbot rbot-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment