public
Fork of frabcus/acts_as_xapian
Description: Xapian full text search plugin for DataMapper rewrite of acts_as_xapian
Homepage: http://github.com/joshaven/dm-xapian
Clone URL: git://github.com/psq/dm-xapian.git
dm-xapian / SETUP.txt
100644 92 lines (59 sloc) 2.779 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Overview
========
 
I have basic copy and paste instructions below... *You may want to set the SRC bash variable*
The same instructions with extra text around them are here: http://xapian.org/docs/install.html
 
If you received the following error then read the approprate section, 'On OS X' or 'On Linux'
  dm_xapian: No Ruby bindings for Xapian installed. Please follow setup instructions.
 
 
 
 
Everyone
========
 
After downloading & installing Xapian and its bindings you'll need to drop this in your plugins folder
TODO: Complete this doc & verify drop-in functionality mentioned above
 
 
 
 
On OS X (with Xcode so you can compile)
=======================================
 
  # navigate to your source director or create one with mkdir ~/src
  SRC=~/src
  cd $SRC
 
  # download packages (your welcome to check for newer code but don't blame me if it doesn't work)
  curl -O http://oligarchy.co.uk/xapian/1.0.7/xapian-core-1.0.7.tar.gz
  curl -O http://oligarchy.co.uk/xapian/1.0.7/xapian-bindings-1.0.7.tar.gz
 
  # uncompress the downloads
  tar zxvf xapian-core-1.0.7.tar.gz
  tar zxvf xapian-bindings-1.0.7.tar.gz
 
  # compile & install xapian-core
  cd $SRC/xapian-core-1.0.7
  ./configure --prefix=/opt
  make
  sudo make install
  
  
  # compile & install xapian-bindings ** the ruby goes here **
  # You can find the Xapian API here: http://xapian.org/docs/bindings/ruby/rdocs/classes/Xapian.html
  cd $SRC/xapian-bindings-1.0.7
  ./configure XAPIAN_CONFIG=/opt/bin/xapian-config
  make
  sudo make install
  if [ $? = 0 ];then echo;echo;echo "All set, have fun.";echo You can find the Xapian API here: http://xapian.org/docs/bindings/ruby/rdocs/classes/Xapian.html;else echo;echo;echo '\n\nSomething went wrong... try slower this time.';fi;echo;echo
 
 
 
 
On Linux
========
 
  SRC=~/src
  cd $SRC
  wget http://oligarchy.co.uk/xapian/1.0.7/xapian-core-1.0.7.tar.gz
  wget http://oligarchy.co.uk/xapian/1.0.7/xapian-bindings-1.0.7.tar.gz
  
  echo uncompressing the downloads
  tar zxvf xapian-core-1.0.7.tar.gz
  tar zxvf xapian-bindings-1.0.7.tar.gz
 
  echo compile & install xapian-core
  cd $SRC/xapian-core-1.0.7
  ./configure --prefix=/opt
  make
  sudo make install
  
  
  echo compile & install xapian-bindings ** the ruby goes here **
  cd $SRC/xapian-bindings-1.0.7
  ./configure XAPIAN_CONFIG=/opt/bin/xapian-config
  make
  sudo make install
  
  if [ $? = 0 ];then echo;echo;echo "All set, have fun.";echo You can find the Xapian API here: http://xapian.org/docs/bindings/ruby/rdocs/classes/Xapian.html;else echo;echo;echo '\n\nSomething went wrong... try slower this time.';fi;echo;echo
 
 
 
 
On Windows
==========
Click: Start
Click: Run
No, wait...
Save yourself time and get a Mac then follow the instructions above or at least use a VM to install on Ubuntu