Blender wont find python in usr/local/bin I wont to run blender2.49 and I have compiled and installed python 2.6.6 under /usr/local/bin and when I start blender in console it says 

Compiled with Python version 2.6.2.
Could not find platform independent libraries &lt;prefix&gt;
Could not find platform dependent libraries &lt;exec_prefix&gt;
Consider setting $PYTHONHOME to &lt;prefix&gt;[:&lt;exec_prefix&gt;]


when I run python in console it says python 2.6.6
How can I add python to library path or $pytonhome ?
On OSX, open a terminal session.
In your user directory (e.g. mac/users/doeke) make sure you have a file named .bash_profile If it is not there then create one.

Open terminal.

sudo nano .bash_profile

add:

export PYTHONHOME=/usr/local/bin/python_whatever_the_fing_path_is

press ctrl + x to quit and hit y to save the file.

Now log in and out or reboot. Hopefully it is fixed now.