====== Installing Python with pkgsrc ======
===== Preflight =====
* Install [[accelerators:kb:pkgsrc|pkgsrc]] on your Accelerator.
* Because, pkgsrc should handle dependencies for you, //that's it!//
==== Prerequisites ====
If you wish to use Python for web applications (rather than for scripting tasks or other non-web applications), then you'll need install a webserver first (although, there are webservers written in pure Python; the Python framework, [[http://www.cherrypy.org/|cherrypy]], for example includes one.)
- Install [[accelerators:kb:pkgsrc:installing-apache22|Apache 2.2]] if you want to use Apache as a front-end proxy, mod_python, or Python with CGI/FCGI.
===== Installation =====
cd /opt/pkgsrc/lang/python-24/ && bmake install
To install ''mod_python'':
cd /opt/pkgsrc/www/ap2-python/ && bmake install
==== Troubleshooting ====
* Memory fault (core dumped) on a Shared Accelerator while installing python24 (and python25). What is a viable workaround? Memory fault (core dumped) *** Error code 139 bmake: stopped in /opt/pkgsrc/lang/python24/work/Python-2.4.5