Benutzerspezifische Werkzeuge
Sie sind hier: Startseite Projekte Grok HowTo install Grok with Python 2.4.4 on MacOSX 10.4.9 from scratch!
Artikelaktionen

HowTo install Grok with Python 2.4.4 on MacOSX 10.4.9 from scratch!

Some people report issues with installing i.e. Zope3 on MacOSX. If you simply want to start development with Grok give this a try. It seems to install well by bypassing some traps when explicitly linking the new python2.4 into the standard path and the related commands easy_install, buildout and grokproject too.

grokcavenman10flat128.png

"ME GROK SMASH SYSTEM PYTHON"

Prerequisites

On your MacOSX box make sure you have the latest XCODE 2.4.1 or later Developer Tools installed,

Fire up a Terminal and start with installing Python.

Install Python 2.4.4

Python is installed as a framework and as a universal binary for Intel & PowerPC (requires XCODE 2.1 minimum)
cd
wget http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tgz
tar -xvzf Python-2.4.4.tgz
cd Python-2.4.4
./configure --enable-framework --enable-universalsdk
make
sudo make install
Now link it into the system path if you like (this will serve your new python2.4 at the sytem prompt!
cd /usr/bin/
sudo ln -s ../../Library/Frameworks/Python.framework/Versions/2.4/bin/python python2.4
sudo ln -s ./python2.4 python
Check your python
Type 
python #and you get
Python 2.4.4 (#1, Jun 20 2007, 22:46:27)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
leave with ctrl-d

Install setuptools

To install setuptools into your python type:
cd
wget http://cheeseshop.python.org/packages/2.4/s/setuptools/setuptools-0.6c6-py2.4.egg#md5=3c56af57be3225019260a644430065ab
--prefix=/Library/Frameworks/Python.framework/Versions/2.4

Update easy_install with the ez_setup.py script

cd
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py -U setuptools

Now link easy_install-2.4 into your system path as easy_install.

cd /usr/bin/
sudo ln -s ../../Library/Frameworks/Python.framework/Versions/2.4/bin/easy_install ./easy_install-2.4
sudo ln -s ./easy_install-2.4 ./easy_install

Install latest zc.buldout with easy_install

easy_install zc.buildout

Install latest Grok with easy_install

easy_install grok
To explicitly install a specific version read the instructions on easy_install
http://peak.telecommunity.com/DevCenter/EasyInstall

Install latest Grokproject with easy_install

easy_install grokproject
Now link the grokproject command into your system path:
cd /usr/bin
sudo ln -s /Library/Frameworks/Python.framework/Versions/2.4/bin/grokproject ./grokproject

Create a new grokproject

Type

cd [yourprojectscontainer]
grokproject MyProject

and follow the instructions. You should find you new Grok project with an appropriate Zope3 installation ready in the driectory:

[yourprojectscontainer]/MyProject

To get more informatrion about Grok and Grokproject visit:

http://grok.zope.org/