centos6.8编译安装Apache Ignite

2020-01-20  本文已影响0人  夏楚子悦

1、下载源码并解压

#下载源码
wget http://mirrors.tuna.tsinghua.edu.cn/apache//ignite/2.7.6/apache-ignite-2.7.6-src.zip
#解压源码
unzip apache-ignite-2.7.6-src.zip
#进入源码文件夹
cd apache-ignite-2.7.6-src

2、开始编译(按照官方指导)

cd modules/platforms/cpp
libtoolize && aclocal && autoheader && automake --add-missing && autoreconf

# You can call the following command to see all the available
# configuration options:
# ./configure --help
# To use default configuration just type:
./configure
make

#The following step is optional if you want to install Ignite
#for your system. It would probably require root:
sudo make install

3、更新libtoolize、automake、autoconf

3.1 更新autoconf

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar -zxvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure && make -j4 && make install

3.2 更新automake

wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz
tar -zxvf automake-1.15.tar.gz
cd automake-1.15
./configure && make -j4 && make install

3.3 更新libtool

wget http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz
tar -zxvf libtool-2.4.6.tar.gz
cd libtool-2.4.6
./configure && make -j4 && make install

4、重新编译

cd modules/platforms/cpp
libtoolize && aclocal-1.15 && autoheader && automake-1.15 --add-missing && autoreconf

# You can call the following command to see all the available
# configuration options:
# ./configure --help
# To use default configuration just type:
./configure
make -j4

#The following step is optional if you want to install Ignite
#for your system. It would probably require root:
sudo make install
yum install unixODBC-devel
yum install java-1.8.0-openjdk-devel.x86_64
export CXXFLAGS="-I/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-1.el6_10.x86_64/include/ -I/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-1.el6_10.x86_64/include/linux/ -L/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-1.el6_10.x86_64/jre/lib/amd64/server/ -lrt"
./configure --enable-tests=no && make -j4
上一篇 下一篇

猜你喜欢

热点阅读