Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Tips / Installation Details

Installation Details

除了 Unified Installer 之外,開發人員也可以自行指定 Python 等工具的執行路徑,從頭打造開發環境。

Unified Installer 是最容易入門的安裝方式,但是,從 Plone 4.3.2 開始,Unified Installer 只提供 Linux/BSD/OSX 版本,不再提供 Windows 版本。如果想在 Windows 自行指定系統工具的執行路徑,從頭打造開發環境,可以參考 Using buildout on Windows 說明。

會下載放在 buildout-cache/downloads/dist 目錄 包括 plone.dexterity (1.0a3) plone.directives.dexterity (1.0a2) plone.app.dexterity (1.0a7) 安裝在 buildout-cache/eggs 裡

bootstrap.py 是建立 buildout 環境的工具,但它可能需要調整 (zope.interface example),要留意 setuptools 使用 7.0 以上的版本

由於 bootstrap.py 並不是穩定的起始工具,有人提議直接用 pip 來起始

  1. First unset setuptools and zc.buildout version pins in buildout.cfg:
    [versions]
    setuptools =
    zc.buildout =
  2. virtualenv .
  3. ./bin/pip install zc.buildout
  4. ./bin/buildout

Errno 10054: An existing connection was forcibly closed by the remote host

pip

Installing Local Repository

Windows

下列分別以 Plone 4.1.3 和 4.3.9 版本為例,介紹安裝過程要注意的細節。首次嘗試的話,推薦把整個系統安裝在 USB Stick 上,等熟練後,再考慮安裝在 Hard Drive 裡。為了裝在 USB Stick 裡,我選用 Portable Python 2.7.x (PortablePython_2.7.6.1.exe pywin32-220.win32-py2.7.exe PortableGit-2.10.2-64-bit.exe) 版本,理論上 Anaconda 之類的程式也能達到同樣效果。

Sushi USB Memory

Plone 4.3.9

Python 2.7.x: PortablePython 2.7.6.1

Plone 4.1.3

Python 2.6.7, PyWin32, PIL, Subversion: CollabNetSubversion, GIT

try msysgit

C Compiler

MinGW

Visual Studio

Buildout

Bootstrap

Start Plone

var\instance.lock var\instance.pid

主機名稱不是 localhost 無法直接存取

Linux

install plone_daemon vs plone_buildout buildout.sanitycheck

Permission denied (libxml2)