2006-07-05

安装 zuccaro

学校的Kunstgeschichte系和一个位于意大利罗马的图书馆有个项目,搞一个关于意大利艺术史的网上数据库。他们使用Zope/Plone,并且自己开发了一些Plone的Products。他们现在用的zope Server在一台windows xp上跑,打算移到Linux下。今天下午试着把他们的数据挪到urts96上去。

先用ZMI(Zope Management Interface)把他们的数据文件导出成一个zexp文件
执行jiad4701@urts96:~/zope/zope-2.9.2/binmkzopeinstance.py脚本生成一个新的zope instance并创建管理员账号
修改新创建的zope instance的配置文件把端口改为6000,因为默认的8080已经有一个zope instance在运行
安装Plone 2.13
导入先前得到的zexp文件

在倒入时问题就来了。倒入失败了,察看event.log发现很多程序还没装,于是只好一项项的去安装。
如:
rtf2xml,rtf2html,pdf2html等。
在安装rtf2html的时候,执行make时得到错误:
jiad4701@urts96:~/kg/installed/rtf2html-0.1.1> make
make all-am
make[1]: Entering directory `/home/jiad4701/kg/installed/rtf2html-0.1.1'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -O2 -MT fmt_opts.o -MD -MP -MF ".deps/fmt_opts.Tpo" -c -o fmt_opts.o fmt_opts.cpp; \
then mv -f ".deps/fmt_opts.Tpo" ".deps/fmt_opts.Po"; else rm -f ".deps/fmt_opts.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I. -O2 -MT rtf2html.o -MD -MP -MF ".deps/rtf2html.Tpo" -c -o rtf2html.o rtf2html.cpp; \
then mv -f ".deps/rtf2html.Tpo" ".deps/rtf2html.Po"; else rm -f ".deps/rtf2html.Tpo"; exit 1; fi
rtf_table.h: In destructor ‘killing_ptr_vector<T>::~killing_ptr_vector()’:
rtf_table.h:46: error: there are no arguments to ‘begin’ that depend on a template parameter, so a declaration of ‘begin’ must be available
rtf_table.h:46: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
rtf_table.h:46: error: there are no arguments to ‘end’ that depend on a template parameter, so a declaration of ‘end’ must be available
make[1]: *** [rtf2html.o] Fehler 1
make[1]: Leaving directory `/home/jiad4701/kg/installed/rtf2html-0.1.1'

解决办法是修改生成的Makefile文件,把其中的一行
CPPFLAGS =
改为:
CPPFLAGS = -fpermissive

没有评论:

发表评论