Compile and install infobright bitsCN.com
Install infobright:
Boost 1.42 or a later version is required, and boost of redhat is 1.41, so you need to download a new compilation and installation:
Download and install boost: http://www.boost.org/users/download/
Shell code
- Cd boost_000045_0
- ./Bootstrap. sh -- prefix =/usr/local/boost_1_45_0
- ./Bjam install
- Export BOOST_ROOT =/usr/local/boost_1_45_0
- Echo "/usr/local/boost_rj45_0/lib">/etc/ld. so. conf. d/boost-x86_64.conf
- Ldconfig
If you do not have mysql Users and Groups, you must add them:
Shell code
- Shell> groupadd mysql
- Shell> useradd-g mysql
# Compile and install MySQL and Infobright server and client tools
Shell code
- Shell> cd infobright-version
- Shell> make EDITION = community release
- Shell> make EDITION = community install-release
-
- # Setting config file and brighthouse. ini file.
- Shell> cp src/build/pkgreenwich/my-ib.cnf/etc/
-
- Shell> cd/usr/local/infobright
- Shell> bin/mysql_install_db -- defaults-file =/etc/my-ib.cnf -- user = mysql
- Shell> chown-R root.
- Shell> chown-R mysql var cache
- Shell> chgrp-R mysql.
Install the startup script:
Shell code
- Shell> cp share/mysql. server/etc/init. d/mysqld-ib
- Shell> vi/etc/init. d/mysqld-ib
Find the following two rows:
Shell code
- Conf = @ BH_CONF @
- User = @ BH_USER @
To:
Shell code
- Conf =/etc/mysql-ib.cnf
- User = mysql
Start:
Shell>/etc/init. d/mysql-ib start
Client connection:
Shell>/usr/local/infobright/bin/mysql-default-file =/etc/my-ib.cnf-uroot
Add boot start:
Shell> chkconfig -- add mysqld-ib
BitsCN.com