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