18. GTK+ 2.xの選択肢
もしOSのバージョンが旧かったら... GTK+ 2.14 まで下げる.
$ cat /etc/redhat-release
CentOS release 4.7 (Final)
$ pwd
/usr/local/src/gtk+-2.24.8
$ ./configure --prefix=/usr/local
������・
������・
������・
configure: error: Package requirements (glib-2.0 >= 2.27.3 atk >= 1.29.2 pango >= 1.20 cairo >= 1.6
gdk-pixbuf-2.0 >= 2.21.0) were not met:
Requested 'glib-2.0 >= 2.27.3' but version of GLib is 2.4.7
Requested 'atk >= 1.29.2' but version of Atk is 1.8.0
Requested 'pango >= 1.20' but version of Pango is 1.6.0
No package 'cairo' found
Requested 'gdk-pixbuf-2.0 >= 2.21.0' but version of GdkPixbuf is 2.4.13
������・
������・
������・
$ $ /lib/libc.so*
GNU C Library stable release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2005 Free Software Foundation, Inc.
29. app/models/dmsf_file.rbの修正
検索機能本体の修正
database.nil 以下は大幅に構造が異なるので,ざっくりと入れ替える.
unless database.nil?
# create a search condition object
cond = Estraier::Condition::new
# set the search phrase to the search condition object
queryString = tokens.join(options[:all_words] ? ' AND ': ' OR ')
cond.set_phrase(queryString )
# get the result of search
result = database.search(cond)
if result
# for each document in the result
dnum = result.doc_num
for i in 0...dnum
# retrieve the document object
doc = database.get_doc(result.get_doc_id(i), 0)
next unless doc
# display attributes
uri = doc.attr("@uri")
if uri
filename = uri.sub(/.*//, '')