Memory of gnome-cn.org

I and Lonestar created GNOMECN (www.gnome-cn.org) in Aug. 2004, and maintain it until Mar. 2008, and final close it in Oct. 2010. I’ve backuped it, and now, lets find it out and see what we did thoese years.

Visit at:

http://yangh.org:19580/gnomecn

How I get it back?

Run Plone 3.0 on Ubuntu 12.04 x86_64

While the old gcn is run in an i386 Debian server, I need to install new Zope in the x86_64 env.

Build dependence
================

apt-get install gcc

binutils cpp cpp-4.6 gcc gcc-4.6 libc-dev-bin libc6-dev libmpc2 libmpfr4 libquadmath0 linux-libc-dev manpages-dev

apt-get build-dep python

build-essential debhelper debiandoc-sgml dh-apparmor docutils-common dpkg-dev g++ g++-4.6 gettext html2text
intltool-debian libdpkg-perl libgettextpo0 libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libroman-perl
libsgmls-perl libsp1c2 libstdc++6-4.6-dev libtext-format-perl libunistring0 liburi-perl make po-debconf
python-docutils python-roman sgml-data sgmlspl sp

# Zope requrie python-zlib
apt-get install zlib1g-dev

Python 2.4.x
============

While 12.04 only support python 2.7, so I need to build python 2.4 from source.

Install python 2.4 follow the instruction at:

http://ubuntuforums.org/showthread.php?t=1976837

wget http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tar.bz2
tar xvf Python-2.4.6.tar.bz2
cd Python-2.4.6
# apply patch for build in x86_64 env
# configure
env CPPFLAGS=”-I/usr/lib/x86_64-linux-gnu” LDFLAGS=”-L/usr/include/x86_64-linux-gnu” ./configure –prefix=/home/gnome/python2.4
make -j4
make install

re-Install Zope-2.9.6
=====================

wget http://old.zope.org/Products/Zope/2.9.6/Zope-2.9.6-final.tgz
tar xvf Zope-2.9.6-final.tgz
cd Zope-2.9.6-final
./configure –with-python=/home/gnome/python2.4/bin/python –prefix=/home/gnome/Zope-2.9 –optimize

First startup
=============

Clean out all old .pyc which compiled with i386 python

find -iname *.pyc -delete
/bin/zopectl start

Zope is ok, bug plone instance broken, check log file:

——
2013-03-13T05:49:43 INFO Archetypes ESC[00mESC[01;32mProducts/Archetypes/Field.py[95]:?
ESC[00mWarning: no Python Imaging Libraries (PIL) found.Archetypes based ImageField’s don’t scale if neccessary.

——
2013-03-13T05:49:44 ERROR Zope Could not import Products.ATContentTypes
Traceback (most recent call last):
File “/home/gnome/Zope-2.9/lib/python/OFS/Application.py”, line 708, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File “/home/gnome/gnomecn/Products/ATContentTypes/__init__.py”, line 57, in ?
import Products.ATContentTypes.content
File “/home/gnome/gnomecn/Products/ATContentTypes/content/__init__.py”, line 34, in ?
import Products.ATContentTypes.content.topic
File “/home/gnome/gnomecn/Products/ATContentTypes/content/topic.py”, line 33, in ?
from Products.CMFPlone.CatalogTool import CatalogTool
File “/home/gnome/gnomecn/Products/CMFPlone/CatalogTool.py”, line 31, in ?
from Products.CMFPlone.utils import base_hasattr
File “/home/gnome/gnomecn/Products/CMFPlone/utils.py”, line 6, in ?
from PIL import Image
ImportError: No module named PIL
——

Install PIL
===========

We need install PIL for ours fresh python2.4

wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz
tar xvf Imaging-1.1.7.tar.gz
cd Imaging-1.1.7
~/python2.4/bin/python setup.py install

Restart, Memory of gnome-cn.org…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>