7 > svn co http://svn.razil.jp/senna/trunk senna
9 > ./configure --prefix=/usr --without-mecab
13 For English user, please execute configure with '--without-mecab' option.
15 If you want to install MySQL binding, execute commands below.
16 MySQL binding description is in [[mysql_binding_en]].
20 If you use Senna with Mysql, you have to install patched MySQL.
22 Get MySQL source from below.
23 http://dev.mysql.com/downloads/
26 > patch -p1 < ../senna/bindings/mysql/mysql-4.0.26.senna.diff
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
31 ''Aftet patched, you have to execute autotools.''
33 ''bison 1.75'', autoconf 2.59, ''automake 1.8(aclocal 1.8)'' are required.
38 > automake-1.9 -c -a -i
40 > touch sql/sql_yacc.yy
42 And execute configure, make, make install.
43 ''in configure, you have to specify --with-senna and --without-mecab option.''
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" \
52 --with-charset=ujis --with-extra-charsets=complex \
53 --enable-thread-safe-client \
55 --with-named-curses-libs=/lib/libncurses.so.5 \
56 --localstatedir=/var/lib/mysql \
57 --with-unix-socket-path=/var/run/mysqld/mysqld.sock \
65 > cp -p ./support-files/my-medium.cnf /etc/my.cnf
69 > sudo ./scripts/mysql_install_db
71 Change owner user and group.
73 > sudo chown -R mysql:mysql /usr/local/var
77 > sudo ./support-files/mysql.server start
79 Check whether MySQL server runs or not.
83 Copy script for auto-execute.
85 > sudo cp ./support-files/mysql.server /etc/init.d/mysql
88 check with [[check_install_en]].