How to install Sweeper/Ushahidi in Mac OS X Leopard

by chris bose on May 24, 2011

Ushahidi is free and open source software for information collection, visualization and interactive mapping.

Swiftriver is an open source platform that helps users add context to realtime data.

Sweeper is an application within the above framework. I am not sure of its capabilities but what caught my eye was this: “Automate the addition of context to data: Location, priority, influence, reputation, tags etc.”

So I tried to install it to have a play. I found 2 install links: the first on the Ushahidi wiki and the second at the Swiftriver Google Group.

Both were too tedious and long winded for me.

I installed Sweeper on Mac OS 10.5.8 in 5 minutes:

Download and install MAMP.

Download Sweeper and put the folder in the htdocs folder.

Start the MAMP server and open your preferred browser at localhost:8888/sweeper and begin to follow the install instructions.

The browser tells you that PEAR logging is not installed.

Open a Terminal and follow these instructions:

curl > go-pear.phar

sudo php -q go-pear.phar

Then change the install location to /usr/local. Thanks to Bombshelter for this.

The install will then tell you your configured directory: /usr/local/share/pear

Then run cd /usr/local/bin

sudo pear install log

sudo nano /Applications/MAMP/conf/php5.3/php.ini

In nano add the following to the php.ini file:

include_path = “.:/usr/local/share/pear” underneath the line include_path = “.:/Applications/MAMP/bin/php5.3/lib/php”

Restart the MAMP server. You might have to restart the whole computer sometimes.

Go back to your Sweeper install page and finish the install.


PS: of course, it took me a few hours to get the procedure above just right. But for you it will only take 5 minutes.

Previous post:

Next post: