Installing Panda locally
Please note that this guide has only been tested on OSX. Please post modifications to the google group if you try another platform.
Install dependencies
First install the following gems
sudo gem install RubyInline amazon_sdb aws-s3 flvtool2
Next you’ll need to install libgd, ffmpeg, and the rvideo gem:
LibGD
On OSX (using macports)
Installing gd2 with macports seems to be the fastest way to install the required dependencies:
sudo port install gd2
For some reason (which I’ve not really looked into) the macports install doesn’t quite install everything so you still need to install libgd itself (but not the dependencies) from source:
mkdir -p ~/src && cd ~/src
curl http://www.libgd.org/releases/gd-2.0.35.tar.gz > gd-2.0.35.tar.gz
tar zxvf gd-2.0.35.tar.gz
cd gd-2.0.35 && ./configure && make && sudo make install
Alternatively, if you want to build everything from source, see this tutorial. Here’s a possible gotcha.
Other platforms
The following libraries are required by libgd:
Install libjpeg from source:
mkdir -p ~/src && cd ~/src
wget ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b && ./configure && make && sudo make install
Install libgd from source:
mkdir -p ~/src && cd ~/src
curl http://www.libgd.org/releases/gd-2.0.35.tar.gz > gd-2.0.35.tar.gz
tar zxvf gd-2.0.35.tar.gz
cd gd-2.0.35 && ./configure && make && sudo make install
RVideo (0.9.4)
Currently we can’t use sudo gem install rvideo since that installs 0.9.3.
svn checkout svn://rubyforge.org/var/svn/rvideo/trunk rvideo
cd rvideo
rake install_gem
Install the rvideo tools (on OS X at least - your system may differ). You might want to check your gem library location (gem env).
sudo cp lib/rvideo/tools/*.rb /Library/Ruby/Gems/1.8/gems/rvideo-0.9.4/lib/rvideo/tools/.
FFMPEG
Available in all good package repositories including Darwin Ports.
If you’re developing on Mac OS X, you can save some time by grabbing ffmpeg out of the ffmpegX application instead of compiling it.
Grab Panda
Get the latest version of Panda and recompile any gems with native extensions:
git clone git://github.com/newbamboo/panda.git
bin/thor merb:dependencies:redeploy
Development work is merged regularly into the master branch. If you have difficulty running try the stable branch which tracks releases.
You should follow the getting started guide from the configure panda section onwards. You’ll probably want to use the filesystem storage option and also emulate SimpleDB locally. Note that the getting started guide is valid against the stable branch so be aware that tweaks may be required if you’re using the master branch.

