Notes on working with Akara on Mac
Contents
For most users (Snow Leopard)
Snow Leopard comes with Python 2.6, which is already smart enough to look for modules in /Users/uche/.local/lib/python2.6/site-packages/, so no need for updating the PYTHONPATH
Install XCode
Update or create $HOME/.pydistutils.cfg to have:
[install] #Install to user directory rather than system site-packages prefix = ~/.local
Highly recommended: install distribute, then install useful add-ons:
easy_install python-dateutil html5lib httplib2
Install Amara from a nightly snapshot:
mkdir $HOME/dl; cd $HOME/dl wget http://files.akara.info/00-amara-latest.tar.bz2 mkdir $HOME/src; cd $HOME/src tar jxvf $HOME/dl/00-amara-latest.tar.bz2 cd amara python setup.py install
Install Akara from a nightly snapshot:
cd $HOME/dl wget http://files.akara.info/00-akara-latest.tar.bz2 cd $HOME/src tar jxvf $HOME/dl/00-akara-latest.tar.bz2 cd akara python setup.py install
Now prep the Akara config, as in Akara/Quick_start:
mkdir $HOME/.config/ mkdir -p $HOME/.local/lib/akara/logs mkdir -p $HOME/.local/lib/akara/modules cp lib/akara.conf $HOME/.config/ #Copy a module for testing cp demo/modules/echo.py $HOME/.local/lib/akara/modules
You may need to update PATH and PYTHONPATH, e.g. by adding the following to the ~/.profile (and running it on the command line for the first time)
export PATH=$PATH:~/.local/bin export PYTHONPATH=$PYTHONPATH:~/.local/lib/python
Start the Akara server:
akara start
If you get any errors, check the log at ~/.local/lib/akara/logs/error.log. You might need to tweak the config at ~/.local/.config/akara.conf
