You can install Barby using Rubygems:
[sudo] gem install barby
Alternatively, you can clone the repository from GitHub:
git clone git://
github.com/toretore/barby.git
ruby -Ibarby/lib -r"barby" -r"barby/outputter/ascii_outputter" -e
"puts Barby::Code128B.new('hello world').to_ascii"