OSDN Git Service

Initial commit of senna-1.1.2-fast.
[ludiafuncs/senna-1.1.2-fast.git] / doc / INSTALL.EN
1 * install for English
2
3 * For Unix like OS
4
5 ** 1) Install senna
6
7  > svn co http://svn.razil.jp/senna/trunk senna
8  > cd senna
9  > ./configure --prefix=/usr --without-mecab
10  > make
11  > sudo make install
12
13 For English user, please execute configure with '--without-mecab' option.
14
15 If you want to install MySQL binding, execute commands below.
16 MySQL binding description is in [[mysql_binding_en]].
17
18 ** 2) Install MySQL
19
20 If you use Senna with Mysql, you have to install patched MySQL.
21
22 Get MySQL source from below.
23 http://dev.mysql.com/downloads/
24
25  > cd mysql-4.0.28
26  > patch -p1 < ../senna/bindings/mysql/mysql-4.0.26.senna.diff
27
28 2ind-patch is the patch which make MySQL enable to use fulltext index and normal index bothly.
29  > patch -p1 < ../senna/bindings/mysql/mysql-4.0.26.senna.2ind.diff
30
31 ''Aftet patched, you have to execute autotools.''
32
33 ''bison 1.75'', autoconf 2.59, ''automake 1.8(aclocal 1.8)'' are required.
34
35  > libtoolize -c -f
36  > aclocal-1.9
37  > autoheader
38  > automake-1.9 -c -a -i
39  > autoconf
40  > touch sql/sql_yacc.yy
41
42 And execute configure, make, make install.
43 ''in configure, you have to specify --with-senna and --without-mecab option.''
44
45  > CFLAGS="-O3 -mcpu=pentium4 -I/usr/local/include" \
46  CXX=gcc CXXFLAGS="-O3 -mcpu=pentium4 \
47  -felide-constructors -fno-exceptions -fno-rtti -I/usr/local/include" \
48  LDFLAGS="-L/usr/local/lib" \
49  ./configure \
50  --prefix=/usr \
51  --enable-assembler \
52  --with-charset=ujis --with-extra-charsets=complex \
53  --enable-thread-safe-client \
54  --with-big-tables \
55  --with-named-curses-libs=/lib/libncurses.so.5 \
56  --localstatedir=/var/lib/mysql \
57  --with-unix-socket-path=/var/run/mysqld/mysqld.sock \
58  --with-senna \
59  --without-mecab
60  > make
61  > sudo make install
62
63 Copy config file.
64
65  > cp -p ./support-files/my-medium.cnf /etc/my.cnf
66
67 Init database.
68
69  > sudo ./scripts/mysql_install_db
70
71 Change owner user and group.
72
73  > sudo chown -R mysql:mysql /usr/local/var
74
75 Start MySQL server.
76
77  > sudo ./support-files/mysql.server start
78
79 Check whether MySQL server runs or not.
80
81  > mysqladmin version
82
83 Copy script for auto-execute.
84
85  > sudo cp ./support-files/mysql.server /etc/init.d/mysql
86
87 After you install,
88 check with [[check_install_en]].