- Practical Plone 3: A Beginner's Guide to Building Powerful Websites
- Alex Clark Clayton Parker Darci Hanning
- 527字
- 2021-04-25 17:34:06
Installation from source
The installers do a great job of installing and configuring Plone and the required components for you. So, why would you want to, or need to, install from source? Some reasons may be:
- There's no installer for your platform, and no simple adaptation of the
- Unified Installer will work
- You may need to use an already-installed version of Python
- You may want to put the parts together yourself so that you can see how they really fit
- You may want to do some serious development work with Plone or may want to track cutting-edge development.
Let me emphasize, however, that installation from source is more work and will require a much better understanding of your platform's development tools and the Plone components.
We will not cover a source installation in depth here; consider this to be just an orientation. More details will be provided in Chapter 13.
The software stack: Python, Zope, and Plone
Plone is built on the Zope web application server, which is largely written in Python, with some C language components. Plone is very picky about the versions of Zope that it runs on, and each Zope version, for its part, is very specific about its required Python version.
Plone 3.1.6, for example, requires Zope version 2.10.6. Later versions of Zope in the 2.10.x series are most likely to be acceptable. Zope 2.10.x runs under Python 2.4.5; later versions in the 2.4.x series are also likely to work.
The general strategy for a source installation is:
- Install (or ensure that you have already installed) an acceptable version of Python.
- Install the Python Imaging Library to work with the proper copy of Python.
- Add the Python
ElementTree
library. - Install Zope with configuration instructions to use the proper copy of Python.
- Create a working instance of Zope.
- Install the Plone components into the working Zope instance.
Traditional source install
Traditionally, all of these steps are completed by visiting web sites, downloading the compressed archives (tarballs), unpacking, building, and testing, and then installing them. You may be able to take one big shortcut: download the Unified Installer for Linux, and use the contained packages for your builds. The install.sh
script that the Unified Installer uses to build components is also a great source of practical hints for building components.
The most common mistake in traditional source installs is using the wrong copy of Python to build the components. Your system may have several versions of Python; you need to use only one of them, and that one must be compatible with the Zope version.
A better build with buildout
The Python, Zope, and Plone developer communities have been working on a better way of taking care of most of the steps for building Plone: using the zc.buildout
Python library. You'll still need to build an appropriate Python installation yourself, but this is a particularly a good build method if your goal is to track Plone or advanced Plone product development, or to contribute to that development yourself.
Using buildout for a Zope and Plone installation is covered in more detail in Chapter 13, where we look at creating a development environment for customizing Plone.
- ERP沙盤模擬教程
- Google Web Toolkit 2 Application Development Cookbook
- 3ds Max/MaxScript印象 腳本動畫制作基礎與應用
- Excel數據管理:不加班的秘密
- Photoshop影視動漫角色繪制技法精解
- Google App Engine Java and GWT Application Development
- 中文版Illustrator CC實戰視頻教程
- SolidWorks快速入門教程(2022中文版)
- Blender 2.5 Materials and Textures Cookbook
- 說服力:工作型PPT該這樣做(第2版)
- AutoCAD 2016中文版基礎教程(全圖解視頻版)
- Elasticsearch數據搜索與分析實戰
- 中文版3ds Max 2016/VRay效果圖制作實戰基礎教程(全彩版)
- Photoshop 2020實戰從入門到精通(超值版)
- 中文版Photoshop CS5基礎培訓教程(移動學習版)