This page offers some help setting up Ohcount on Arch Linux.

Installing Prerequisites

Ohcount is a Ruby application with C native extensions. Ohcount requires Ruby, Rdoc, Rake, RubyGems, GCC, and the PCRE library.

Happily, there are packages for everything. If you have a default desktop install, you can install everything required by Ohcount:

pacman -S ruby rubygems rake pcre

Proceed to the step "Getting the Ohcount Source"

Getting the Ohcount Source

You can download the Ohcount source code as a Git repository or as a tarball.

To install the source code from the Git public repository, install Git and clone the repository:

pacman -S git
git clone git://labs.ohloh.net/git/ohcount.git
cd ohcount

If you do not want to install Git, download and expand the source tarball:

wget http://labs.ohloh.net/download/ohcount-1.0.0.tar.gz
tar -xvzf ohcount-1.0.0.tar.gz
cd ohcount-1.0.0

Build Ohcount

To build Ohcount and run the unit tests:

rake clean
rake

To install Ohcount:

rake install

Notes

If you see an error like the following:

File not found: lib/x86_64-linux

Please check, if the install worked anyway (did it install the app ohcount ). This is a known bug: http://labs.ohloh.net/ohcount/ticket/229#comment:2