One-click thrift-0.9.0 installation script

Source: Internet
Author: User

#! /Bin/sh

# One-click installation of thrift-0.9.0 script # thrift depends on boost, openssl, and libevent # The following variable values can be modified based on Implementation PROJECT_HOME = $ HOME/iflow # project source code main directory # thrift and dependencies third-party Library source code package storage directory and installation directory, # One-click script and third-party Library source package in the same directory THIRD_PARTY_HOME = $ PROJECT_HOME/third-partyboost = boost_rj52_0openssl = openssl-1.0.1clibevent = libevent-2.0.19-stablethrift = thrift-0.9.0 # Install boost # printf "\ n \ 033 [0; 32; 34 minstalling boost \ 033 [m \ n "tar xzf unzip boost.tar.gz cd $ boost. /bootstrap. shif test $? -Ne 0; thenexit 1fi./b2 install -- prefix = $ THIRD_PARTY_HOME/boostprintf "\ n \ 033 [0; 32; 34 m./b2 install return $? \ 033 [m \ n "cd-# Install openssl # printf" \ n \ 033 [0; 32; 34 minstalling openssl \ 033 [m \ n "tar xzf logs openssl.tar.gz cd $ openssl. /config -- prefix = $ THIRD_PARTY_HOME/openssl shared threadsif test $? -Ne 0; thenexit 1 fimakeif test $? -Ne 0; thenexit 1 fimake installcd-# Install libevent # printf "\ n \ 033 [0; 32; 34 minstalling libevent \ 033 [m \ n "tar xzf restart libevent.tar.gz cd $ libevent. /configure -- prefix = $ THIRD_PARTY_HOME/libeventif test $? -Ne 0; thenexit 1 fimakeif test $? -Ne 0; thenexit 1 fimake installcd-# Install thrift # printf "\ n \ 033 [0; 32; 34 minstalling thrift \ 033 [m \ n "tar xzf ‑thrift.tar.gz cd $ thrift # Use -- with-openssl according to common configure, And you will encounter #" Error: libcrypto required. "Error. CPPFLAGS and LDFLAGS are used here. /configure -- prefix = $ response/thrift \ -- with-boost = $ THIRD_PARTY_HOME/boost \ -- with-libevent = $ response/libevent \ CPPFLAGS = "-I $ THIRD_PARTY_HOME/openssl/ include" \ LDFLAGS = "-ldl-L $ THIRD_PARTY_HOME/openssl/lib" \ -- with-qt4 = no -- with-c_glib = no -- with-csharp = no \ -- with-java = no --- erlang = no -- with-python = no \ -- with-perl = no -- with-ruby = no -- with-haskell = no \ -- with-go = no -- with-d = noif test $? -Ne 0; thenexit 1fi # after completing the preceding modification, configure can be successful, but the following modifications are required. # Otherwise, the system reports that malloc has not declared sed-I-e's when making! # Define HAVE_MALLOC 0! # Define HAVE_MALLOC 1! 'Config. hsed-I-e's! # Define HAVE_REALLOC 0! # Define HAVE_REALLOC 1! 'Config. hsed-I-e's! # Define malloc rpl_malloc! /* # Define malloc rpl_malloc */! 'Config. hsed-I-e's! # Define realloc rpl_realloc! /* # Define realloc rpl_realloc */! 'Config. hmakeif test $? -Ne 0; thenexit 1 fimake installcd-# after successful installation, a message is displayed, indicating printf "\ n \ 033 [0; 32; 34 minstall SUCCESS \ 033 [m \ n"

 

This article is from the "Fei Yue" blog, please be sure to keep this source http://mooon.blog.51cto.com/1246491/1053931

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.