lmgsanm

每天学习一点,每天进步一点点…… Tomorrow is another beatifull day

导航

openssl,db,mysql,sasl编译安装

yum -y install nfs-utils nfs4-acl-tools nfs-utils-lib
yum -y install gcc gcc* libtool libtools-ltdl libtool-ltdl-devel cmake ncurses ncurses-devel
cd openssl-1.0.2d/
./config shared
make
make test
make install
echo "/usr/local/ssl/lib" >> /etc/ld.so.conf
ldconfig


cd db-6.1.26/
dist/configure --prefix=/usr/local/bdb
make
make install
echo "/usr/local/bdb/lib" >> /etc/ld.so.conf
mkdir /usr/include/db
ln -s /usr/local/bdb/include/db.h /usr/include/db/db.h
ln -s /usr/local/bdb/include/db.h /usr/include/db.h
ldconfig

groupadd mysql
useradd -r -g mysql mysql
cd mysql-5.6.22/
cmake .
make
make install
cd /usr/local/mysql/
chown -R mysql.mysql .
scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data/
cp support-files/mysql.server /etc/init.d/mysqld
service mysqld start
service mysqld start
bin/mysql -h 127.0.0.1


export CPPFLAGS="-I/usr/local/mysql/include"
cd cyrus-sasl-2.1.26/

./configure --enable-anon --enable-plain --enable-login --enable-sql --disable-krb4 --disable-otp --disable-cram --disable-digest --with-mysql=/usr/local/mysql/lib/ --without-pam --without-saslauthd --without-pwcheck --with-dblib=berkeley --with-bdb-libdir=/usr/local/bdb/lib --with-bdb-incdir=/usr/local/bdb/include --with-openssl=/usr/local/ssl --with-plugindir=/usr/local/lib/sasl2

posted on 2015-12-17 22:28  lmgsanm  阅读(629)  评论(0编辑  收藏  举报