If you still don’t understand the operation principle of RPC, came to see me this article: blog.csdn.net/singgel/art…
Git has a thrift store on a demo:github.com/singgel/thr springboot version…
When I installed my heart was also very broken, what a thing, is not missing this is missing that
OS X Setup
The following command install all the required tools and libraries to build and install the Apache Thrift compiler on a OS X based system.
Install Boost
Download the boost library from boost.org untar compile with
./bootstrap.shsudo ./b2 threading=multi address-model=64 variant=release stage install
Bufferevent_openssl.c :60:10: FATAL error: ‘OpenSSL/bio-h’ file not foundsolve error Blow: Sh – 3.2 # find / – name – type f bio. H/usr/local/Cellar/openssl/l/include / 1.0.1 openssl/bio h to bio. H file, after we file editor to find it again, Create a soft link to // if you don’t have a /usr/local/include folder, Has built a include folder sudo ln -s/usr/local/Cellar/openssl/l/include / 1.0.1 openssl / / usr/local/include/openssl |
---|
Install libevent
Download libevent, untar and compile with
./configure –prefix=/usr/local makesudo make install
Building Apache Thrift
Download the latest version of Apache Thrift, untar and compile with
./configure –prefix=/usr/local/ –with-boost=/usr/local –with-libevent=/usr/local
make
sudo make install
Configure: Error: Bison version 2.5 or higher must be installed on the system! Seehere. You can install with brew:brew install bisonand then use:brew link bison –forceDon’t forget to unlink it if necessary (brew unlink bison). |
---|