2021-05-12 14:32:11
CentOS環境非聯網狀態下thrift的安裝
在網上有很多介紹thrift安裝的方法,但是大多都是基於機器聯網的情況下使用yum或者apt-get進行安裝。 在某些情況下,節點環境中不能連線外網。這個時候安裝起來就比較麻煩了。
本文介紹在使用iso映象的情況下,如何進行thrift安裝(thrift-0.9.3)。
首先將系統對應iso檔案對映到一個目錄,比如對映到/mnt/isorom。
然後依次安裝下列rpm包進行thrift安裝之前的準備,指令碼內容如下:
(在下列rpm包安裝之前,gcc glibc等軟體包的安裝,這裡不再重複,有需要的可以留言。)
#!/usr/bin/bash
echo "before install thrift, please installation following rpm packages firstly"
rpm -ivh libmpc-[1-9]*
rpm -ivh perl-Thread-Queue-*.noarch.rpm
rpm -ivh perl-Data-Dumper-*. x86_64.rpm
rpm -ivh perl-Test-Harness-*.noarch.rpm
rpm -ivh autoconf-[2-9]*.noarch.rpm
rpm -ivh automake-*.noarch.rpm
rpm -ivh libtool-[2-9]*_2.x86_64.rpm
rpm -ivh bison-*.rpm
rpm -ivh libicu-[5-9]*.x86_64.rpm
rpm -ivh boost-atomic-*.x86_64.rpm
rpm -ivh boost-chrono-*.x86_64.rpm
rpm -ivh boost-context-*.x86_64.rpm
rpm -ivh boost-date-time-*.x86_64.rpm
rpm -ivh boost-filesystem-*.x86_64.rpm
rpm -ivh boost-regex-*.x86_64.rpm
rpm -ivh boost-graph-*.x86_64.rpm
rpm -ivh boost-iostreams-*.x86_64.rpm
rpm -ivh boost-locale-*.x86_64.rpm
rpm -ivh boost-math-*.x86_64.rpm
rpm -ivh boost-program-options-*.x86_64.rpm
rpm -ivh boost-Python-*.x86_64.rpm
rpm -ivh boost-random-*.x86_64.rpm
rpm -ivh boost-serialization-*.x86_64.rpm
rpm -ivh boost-signals-*.x86_64.rpm
rpm -ivh boost-test-*.x86_64.rpm
rpm -ivh boost-timer-*.x86_64.rpm
rpm -ivh boost-wave-*.x86_64.rpm
rpm -ivh boost-[1-9]*.x86_64.rpm
rpm -ivh boost-devel-*.x86_64.rpm
rpm -ivh libevent-*.x86_64.rpm
rpm -ivh zlib-devel-*.x86_64.rpm
rpm -ivh krb5-libs-*.x86_64.rpm
rpm -ivh libcom_err-devel*.x86_64.rpm
rpm -ivh libkadm5-*.x86_64.rpm
rpm -ivh libsepol-devel-*.x86_64.rpm
rpm -ivh keyutils-libs-devel-*.x86_64.rpm
rpm -ivh pcre-devel-*.x86_64.rpm
rpm -ivh libselinux-devel-*.x86_64.rpm
rpm -ivh libverto-devel-*.x86_64.rpm
rpm -ivh krb5-devel-*.x86_64.rpm
rpm -ivh openssl-devel-*.x86_64.rpm
echo "install package finished."
其實最方便的方法,還是把iso映象作為yum源,使用yum的方式 進行安裝。
(yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel openssl-devel)
環境準備完畢,然後就可以將thrift-0.9.3.tar.gz進行解壓,然後執行./configure; make ;make install 命令進行安裝了。
相關文章