环境初始化buildandinstalltheapachethriftidlcompilerinstalltheplatformdevelopmenttools(代码片段(代码片段)

yuanjiangw yuanjiangw     2022-12-13     247

关键词:

 

Apache Thrift - Centos 6.5 Install http://thrift.apache.org/docs/install/centos

Building Apache Thrift on CentOS 6.5

Starting with a minimal installation, the following steps are required to build Apache Thrift on Centos 6.5. This example builds from source, using the current development master branch. These instructions should also work with Apache Thrift releases beginning with 0.9.2.

Update the System

sudo yum -y update

Install the Platform Development Tools

sudo yum -y groupinstall "Development Tools"

Upgrade autoconf/automake/bison

sudo yum install -y wget

Upgrade autoconf

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar xvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=/usr
make
sudo make install
cd ..

Upgrade automake

wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
tar xvf automake-1.14.tar.gz
cd automake-1.14
./configure --prefix=/usr
make
sudo make install
cd ..

Upgrade bison

wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz
tar xvf bison-2.5.1.tar.gz
cd bison-2.5.1
./configure --prefix=/usr
make
sudo make install
cd ..

Add Optional C++ Language Library Dependencies

All languages require the Apache Thrift IDL Compiler and at this point everything needed to make the IDL Compiler is installed (if you only need the compiler you can skip to the Build step).

If you will be developing Apache Thrift clients/servers in C++ you will also need additional packages to support the C++ shared library build.

Install C++ Lib Dependencies

sudo yum -y install libevent-devel zlib-devel openssl-devel

Upgrade Boost >= 1.53

wget http://sourceforge.net/projects/boost/files/boost/1.53.0/boost_1_53_0.tar.gz
tar xvf boost_1_53_0.tar.gz
cd boost_1_53_0
./bootstrap.sh
sudo ./b2 install

Build and Install the Apache Thrift IDL Compiler

git clone https://github.com/apache/thrift.git
cd thrift
./bootstrap.sh
./configure --with-lua=no
make
sudo make install

This will build the compiler (thrift/compiler/cpp/thrift --version) and any language libraries supported. The make install step installs the compiler on the path: /usr/local/bin/thrift You can use the ./configure --enable-libs=no switch to build the Apache Thrift IDL Compiler only without lib builds. To run tests use "make check".

角色环境。初始化失败

】角色环境。初始化失败【英文标题】:Roleenvironment.FAILEDTOINITIALIZE【发布时间】:2015-08-0518:30:00【问题描述】:我有许多Azure网站在单实例标准S2层上运行(每个站点在它自己的实例上)。这些站点位于不同的区域,它们运行完... 查看详情

ruby加载环境特定的初始化程序(代码片段)

查看详情

环境变量的概念

...先把环境变量读取到合适的内存区域,然后利用环境变量初始化硬件、启动操作系统等等。    2、启动过程中环境变量初始化过程涉及的问题    这里涉及到两个问题:    环境变量在哪个地方存着(从哪个地方... 查看详情

Firebase Angular 4 基于节点环境初始化

】FirebaseAngular4基于节点环境初始化【英文标题】:FirebaseAngular4Initializebasedonnodeenvironment【发布时间】:2018-03-3103:44:34【问题描述】:我已经使用AngularCLI构建了我的Angular4项目。我正在Heroku上部署我的应用程序,我已经为开发和... 查看详情

多线程环境中初始化的内存语义(C++)

】多线程环境中初始化的内存语义(C++)【英文标题】:Memorysemanticsofinitializationinmultithreadenvironment(C++)【发布时间】:2017-07-2002:09:16【问题描述】:我不确定C++初始化过程的内存语义。假设我们有以下程序。#include<iostream>#in... 查看详情

Azure 网站抱怨角色环境。初始化失败

】Azure网站抱怨角色环境。初始化失败【英文标题】:AzurewebsitescomplainingRoleenvironment.FAILEDTOINITIALIZE【发布时间】:2016-03-1712:57:05【问题描述】:我目前对Azure网站部署感到头疼,请有人帮忙-我花了2天时间才弄清楚到底出了什么... 查看详情

zabbix环境搭建

...支持自定义监控项初始环境-centos6.5zabbix环境搭建:-环境初始化-mysql-php-nginx-zabbix搭建步骤1.环境初始化1#!/bin/bash2##filename:init.sh3##1.安装常用工具4yuminstal 查看详情

rac环境下参数文件(spfile)管理

 RAC环境下,初始化参数文件与但实例下参数文件有些异同,主要表现在初始化参数可以为多个实例公用,也可以单独设置各个实例的初始化参数。对于那些非共用的初始化参数则必须要单独设置,而共用的则可以单独设置,... 查看详情

编写用户的环境初始化脚本****.sh,包括别名,登陆提示符,vim的设置,环境变量的设置

创建一个别名为ipconfig功能是显示第一个网卡的IP设置提示符为绿色设置vim自动行号设置登陆后的欢迎界面(内容自定义) 查看详情

系统环境初始化(代码片段)

一、安装Docker第一步:使用国内Docker源[[email protected]~]#cd/etc/yum.repos.d/[[email protected]-node1yum.repos.d]#wgethttps://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo第二步:Docker安装[[email& 查看详情

ssm初始化环境搭建

一、创建一个工程选择Maven,勾选createfromarchetype,选中maven-archetype-webapp二、编辑Maven1、Spring框架必须2、Spring整合ORM框架(如调用事务管理器)3、Spring对web的支持(不管Struts2还是SpringMVC都需要,它不是SpringMVC)4、SpringMVC5、Spring依... 查看详情

1.系统环境初始化

k8s应用分布图。 masterip:192.168.0.11 hostname:linux-node1.example.comnode1ip:192.168.0.12  hostname:linux-node2.example.comnode2ip:192.168.0.13 hostname: linux-node3.example.c 查看详情

C 环境初始化裸机 ARM GCC

】C环境初始化裸机ARMGCC【英文标题】:CEnvironmentInitBareMetalARMGCC【发布时间】:2013-07-0416:45:20【问题描述】:我正在尝试让C++项目在cortex-m0处理器上运行(具体来说是nRF51822)。我正在使用codesourceryliteg++2013.05.23。我正在使用codeso... 查看详情

多线程环境中静态变量的C++初始化

】多线程环境中静态变量的C++初始化【英文标题】:C++Initializationofstaticvariableinmultithreadedenvironment【发布时间】:2017-05-2914:03:17【问题描述】:我正在努力寻找一种在C++中初始化类的静态成员的正确方法。上下文是随机数生成。... 查看详情

centos7初始化环境相关

 。。安装RZyum-yinstalllrzsz=============================安装node5.10 curl-o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh |bashsource ~/.nvm/nvm.shNVM_NODEJS 查看详情

springcloudalibab简介及初始环境搭建(代码片段)

SpringCloudAlibab简介及初始环境搭建SpringCloudAlibaba简介SpringCloudAlibaba组件初始环境搭建1.新建Module2.pom.xmlSpringCloudAlibaba简介SpringCloudAlibabaprovidesaone-stopsolutionfordistributedapplicationdevelopment.Itcontain 查看详情

树莓派3b+系统安装+环境初始化(代码片段)

...使用Linux操作系统,此次记录下为树莓派安装Ubuntu系统和初始化环境的过程。组装好的树莓派如下图:1).制作启动镜像首先,从Ubuntu官网(https://www.ubuntu.com/download/iot/raspberry-pi-2-3)下载UbuntuServer镜像;之后,使用Win32DiskImager软... 查看详情

服务器环境初始化,centos7系统

##服务器初始化环境#()更新yum源,并添加必要系统工具#()修改时区&&设置系统时间(ntpdate时间同步服务)#()修改字符集zh_CN.UTF-8#()关闭selinux#()内核优化sysctl.conf&&调整文件描述符ulimit(即单个进程的最大... 查看详情