Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Thrift 0.9.3 compiler installation under Ubuntu     - Linux operation and maintenance of the automated installation and deployment RHEL7.0 Cobbler (Linux)

- Ubuntu install virtual machine software VirtualBox 4.3.10 (Linux)

- Fast Sort Algorithms (Programming)

- Oracle RAC 10.2.0.5 upgrade to 11.2.0.4 problems encountered (Database)

- Use Ganglia to monitor your cluster (Server)

- Let OS X support NTFS write file (Linux)

- A step by step teach have to install multi-node cluster configuration Hadoop (Server)

- OpenSSH version smooth upgrade method (Linux)

- Oracle query start with connect by tree (Database)

- Boost-- time and date - (1) timer library introduction (Programming)

- Red Hat Linux security settings document (Linux)

- floating IP in OpenStack neutron (Server)

- Docker ecosystem security is gradually maturing (Server)

- How to use SHA256 checksum files download (Linux)

- Spring-depth understanding of the various annotations (Programming)

- Java implementation of stacks and queues (Programming)

- How to run Kali Linux 2.0 in Docker container (Linux)

- Linux Command - ps: a snapshot of the current process (Linux)

- How to enable curl command HTTP2 support (Linux)

- CentOS 6.5 system installation Oracle11.2.0.4 basic steps (Database)

 
         
  Thrift 0.9.3 compiler installation under Ubuntu
     
  Add Date : 2018-11-21      
         
         
         
  Under Ubuntu thrift 0.9.3 compiler installation

1 download thrift Source Codes
git clone https://git-wip-us.apache.org/repos/asf/thrift.git thrift
git checkout 0.9.3
2 Compile and install
Installation depends

apt-get install automake
apt-get install libssl-dev
apt-get install byacc
apt-get install bison
apt-get install flex
apt-get install libevent-dev
Generate build file

cd thrift
./bootstrap.sh
configure.ac:84: installing './compile'
configure.ac:88: installing './config.guess'
configure.ac:88: installing './config.sub'
configure.ac:27: installing './install-sh'
configure.ac:27: installing './missing'
compiler / cpp / Makefile.am: installing './depcomp'
configure.ac: installing './ylwrap'
Before configuring the compiler, disable java and python, the installation directory is set to / usr / lib, instead of the default / usr / local / lib

./configure --libdir = / usr / lib --without-java --without-python
...
thrift 0.9.3

Building C ++ Library .........: yes
Building C (GLib) Library ....: no
Building Java Library ........: no
Building C # Library ..........: no
Building Python Library ......: no
Building Ruby Library ........: no
Building Haxe Library ........: no
Building Haskell Library .....: no
Building Perl Library ........: no
Building PHP Library .........: no
Building Erlang Library ......: no
Building Go Library ..........: no
Building D Library ...........: no
Building NodeJS Library ......: no
Building Lua Library .........: no

C ++ Library:
  Build TZlibTransport ......: yes
  Build TNonblockingServer ..: yes
  Build TQTcpServer (Qt4) ....: no
  Build TQTcpServer (Qt5) ....: no

If something is missing that you think should be present,
please skim the output of configure to find the missing
component. Details are present in config.log.
Compile

make
3 Run the test program
test

make check
Note, v0.9.3 is make check has a bug, here is the corresponding jira issue, given the information is

An error message from getaddrinfo on the console is expected:
Thrift: Mon Dec 14 12:19:09 2015 TServerSocket :: listen () BIND 9090
4 Installation
sudo make install

note:

$ Thrift-git-project is the directory where the thrift gi project
Library files are installed in / usr / lib directory
Header files are installed in / usr / local / include / thrift directory
Making install in compiler / cpp
make [1]: Entering directory '$ thrift-git-project / compiler / cpp'
make install-am
make [2]: Entering directory '$ thrift-git-project / compiler / cpp'
make [3]: Entering directory '$ thrift-git-project / compiler / cpp'
 / Bin / mkdir -p '/ usr / local / bin'
  / Bin / bash ../../libtool --mode = install / usr / bin / install -c thrift '/ usr / local / bin'
libtool: install: / usr / bin / install -c thrift / usr / local / bin / thrift
make [3]: Nothing to be done for 'install-data-am'.
make [3]: Leaving directory '$ thrift-git-project / compiler / cpp'
make [2]: Leaving directory '$ thrift-git-project / compiler / cpp'
make [1]: Leaving directory '$ thrift-git-project / compiler / cpp'
Making install in lib
make [1]: Entering directory '$ thrift-git-project / lib'
Making install in cpp
make [2]: Entering directory '$ thrift-git-project / lib / cpp'
Making install in.
make [3]: Entering directory '$ thrift-git-project / lib / cpp'
make [4]: ​​Entering directory '$ thrift-git-project / lib / cpp'
 / Bin / mkdir -p '/ usr / lib'
 / Bin / bash ../../libtool --mode = install / usr / bin / install -c libthrift.la libthriftnb.la libthriftz.la '/ usr / lib'
libtool: install: / usr / bin / install -c .libs / libthrift-0.9.3.so /usr/lib/libthrift-0.9.3.so
libtool: install: (cd / usr / lib && {ln -s -f libthrift-0.9.3.so libthrift.so || {rm -f libthrift.so && ln -s libthrift-0.9.3.so libthrift.so ;};})
libtool: install: / usr / bin / install -c .libs / libthrift.lai /usr/lib/libthrift.la
libtool: install: / usr / bin / install -c .libs / libthriftnb-0.9.3.so /usr/lib/libthriftnb-0.9.3.so
libtool: install: (cd / usr / lib && {ln -s -f libthriftnb-0.9.3.so libthriftnb.so || {rm -f libthriftnb.so && ln -s libthriftnb-0.9.3.so libthriftnb.so ;};})
libtool: install: / usr / bin / install -c .libs / libthriftnb.lai /usr/lib/libthriftnb.la
libtool: install: / usr / bin / install -c .libs / libthriftz-0.9.3.so /usr/lib/libthriftz-0.9.3.so
libtool: install: (cd / usr / lib && {ln -s -f libthriftz-0.9.3.so libthriftz.so || {rm -f libthriftz.so && ln -s libthriftz-0.9.3.so libthriftz.so ;};})
libtool: install: / usr / bin / install -c .libs / libthriftz.lai /usr/lib/libthriftz.la
libtool: install: / usr / bin / install -c .libs / libthrift.a /usr/lib/libthrift.a
libtool: install: chmod 644 /usr/lib/libthrift.a
libtool: install: ranlib /usr/lib/libthrift.a
libtool: install: / usr / bin / install -c .libs / libthriftnb.a /usr/lib/libthriftnb.a
libtool: install: chmod 644 /usr/lib/libthriftnb.a
libtool: install: ranlib /usr/lib/libthriftnb.a
libtool: install: / usr / bin / install -c .libs / libthriftz.a /usr/lib/libthriftz.a
libtool: install: chmod 644 /usr/lib/libthriftz.a
libtool: install: ranlib /usr/lib/libthriftz.a
libtool: finish: PATH = "/ usr / local / sbin: / usr / local / bin: / usr / sbin: / usr / bin: / sbin: / bin: / sbin" ldconfig -n / usr / lib
-------------------------------------------------- --------------------
Libraries have been installed in:
  / Usr / lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR '
flag during linking and do at least one of the following:
  - Add LIBDIR to the `LD_LIBRARY_PATH 'environment variable
    during execution
  - Add LIBDIR to the `LD_RUN_PATH 'environment variable
    during linking
  - Use the `-Wl, -rpath -Wl, LIBDIR 'linker flag
  - Have your system administrator add LIBDIR to `/etc/ld.so.conf '

See any operating system documentation about shared libraries for
more information, such as the ld (1) and ld.so (8) manual pages.
-------------------------------------------------- --------------------
 / Bin / mkdir -p '/ usr / local / include / thrift / async'
 / Usr / bin / install -c -m 644 src / thrift / async / TAsyncChannel.h src / thrift / async / TAsyncDispatchProcessor.h src / thrift / async / TAsyncProcessor.h src / thrift / async / TAsyncBufferProcessor.h src / thrift /async/TAsyncProtocolProcessor.h src / thrift / async / TConcurrentClientSyncInfo.h src / thrift / async / TEvhttpClientChannel.h src / thrift / async / TEvhttpServer.h '/ usr / local / include / thrift / async'
 / Bin / mkdir -p '/ usr / local / include / thrift / concurrency'
 / Usr / bin / install -c -m 644 src / thrift / concurrency / BoostThreadFactory.h src / thrift / concurrency / Exception.h src / thrift / concurrency / Mutex.h src / thrift / concurrency / Monitor.h src / thrift /concurrency/PlatformThreadFactory.h src / thrift / concurrency / PosixThreadFactory.h src / thrift / concurrency / StdMonitor.cpp src / thrift / concurrency / StdMutex.cpp src / thrift / concurrency / StdThreadFactory.cpp src / thrift / concurrency / StdThreadFactory. h src / thrift / concurrency / thread.h src / thrift / concurrency / ThreadManager.h src / thrift / concurrency / TimerManager.h src / thrift / concurrency / FunctionRunner.h src / thrift / concurrency / util.h '/ usr / local / include / thrift / concurrency '
 / Bin / mkdir -p '/ usr / local / include / thrift / processor'
 / Usr / bin / install -c -m 644 src / thrift / processor / PeekProcessor.h src / thrift / processor / StatsProcessor.h src / thrift / processor / TMultiplexedProcessor.h '/ usr / local / include / thrift / processor'
 / Bin / mkdir -p '/ usr / local / include / thrift / protocol'
 / Usr / bin / install -c -m 644 src / thrift / protocol / TBinaryProtocol.h src / thrift / protocol / TBinaryProtocol.tcc src / thrift / protocol / TCompactProtocol.h src / thrift / protocol / TCompactProtocol.tcc src / thrift /protocol/TDebugProtocol.h src / thrift / protocol / TBase64Utils.h src / thrift / protocol / TJSONProtocol.h src / thrift / protocol / TMultiplexedProtocol.h src / thrift / protocol / TProtocolDecorator.h src / thrift / protocol / TProtocolTap. h src / thrift / protocol / TProtocolException.h src / thrift / protocol / TVirtualProtocol.h src / thrift / protocol / TProtocol.h '/ usr / local / include / thrift / protocol'
 / Bin / mkdir -p '/ usr / local / include / thrift / qt'
 / Usr / bin / install -c -m 644 src / thrift / qt / TQIODeviceTransport.h src / thrift / qt / TQTcpServer.h '/ usr / local / include / thrift / qt'
 / Bin / mkdir -p '/ usr / local / include / thrift / server'
 / Usr / bin / install -c -m 644 src / thrift / server / TConnectedClient.h src / thrift / server / TServer.h src / thrift / server / TServerFramework.h src / thrift / server / TSimpleServer.h src / thrift /server/TThreadPoolServer.h src / thrift / server / TThreadedServer.h src / thrift / server / TNonblockingServer.h '/ usr / local / include / thrift / server'
 / Bin / mkdir -p '/ usr / local / include / thrift'
 / Usr / bin / install -c -m 644 ../../config.h src / thrift / thrift-config.h src / thrift / TDispatchProcessor.h src / thrift / Thrift.h src / thrift / TOutput.h src / thrift / TProcessor.h src / thrift / TApplicationException.h src / thrift / TLogging.h src / thrift / cxxfunctional.h src / thrift / TToString.h '/ usr / local / include / thrift'
 / Bin / mkdir -p '/ usr / local / include / thrift / transport'
 / Usr / bin / install -c -m 644 src / thrift / transport / PlatformSocket.h src / thrift / transport / TFDTransport.h src / thrift / transport / TFileTransport.h src / thrift / transport / TSimpleFileTransport.h src / thrift /transport/TServerSocket.h src / thrift / transport / TSSLServerSocket.h src / thrift / transport / TServerTransport.h src / thrift / transport / THttpTransport.h src / thrift / transport / THttpClient.h src / thrift / transport / THttpServer. h src / thrift / transport / TSocket.h src / thrift / transport / TPipe.h src / thrift / transport / TPipeServer.h src / thrift / transport / TSSLSocket.h src / thrift / transport / TSocketPool.h src / thrift / transport / TVirtualTransport.h src / thrift / transport / TTransport.h src / thrift / transport / TTransportException.h src / thrift / transport / TTransportUtils.h src / thrift / transport / TBufferTransports.h src / thrift / transport / TShortReadTransport.h src / thrift / transport / TZlibTransport.h '/ usr / local / include / thrift / transport'
 / Bin / mkdir -p '/ usr / lib / pkgconfig'
 / Usr / bin / install -c -m 644 thrift.pc thrift-nb.pc thrift-z.pc '/ usr / lib / pkgconfig'
make [4]: ​​Leaving directory '$ thrift-git-project / lib / cpp'
make [3]: Leaving directory '$ thrift-git-project / lib / cpp'
Making install in test
make [3]: Entering directory '$ thrift-git-project / lib / cpp / test'
make install-am
make [4]: ​​Entering directory '$ thrift-git-project / lib / cpp / test'
make [5]: Entering directory '$ thrift-git-project / lib / cpp / test'
make [5]: Nothing to be done for 'install-exec-am'.
make [5]: Nothing to be done for 'install-data-am'.
make [5]: Leaving directory '$ thrift-git-project / lib / cpp / test'
make [4]: ​​Leaving directory '$ thrift-git-project / lib / cpp / test'
make [3]: Leaving directory '$ thrift-git-project / lib / cpp / test'
make [2]: Leaving directory '$ thrift-git-project / lib / cpp'
make [2]: Entering directory '$ thrift-git-project / lib'
make [3]: Entering directory '$ thrift-git-project / lib'
make [3]: Nothing to be done for 'install-exec-am'.
make [3]: Nothing to be done for 'install-data-am'.
make [3]: Leaving directory '$ thrift-git-project / lib'
make [2]: Leaving directory '$ thrift-git-project / lib'
make [1]: Leaving directory '$ thrift-git-project / lib'
Making install in test
make [1]: Entering directory '$ thrift-git-project / test'
Making install in cpp
make [2]: Entering directory '$ thrift-git-project / test / cpp'
make install-am
make [3]: Entering directory '$ thrift-git-project / test / cpp'
make [4]: ​​Entering directory '$ thrift-git-project / test / cpp'
make [4]: ​​Nothing to be done for 'install-exec-am'.
make [4]: ​​Nothing to be done for 'install-data-am'.
make [4]: ​​Leaving directory '$ thrift-git-project / test / cpp'
make [3]: Leaving directory '$ thrift-git-project / test / cpp'
make [2]: Leaving directory '$ thrift-git-project / test / cpp'
make [2]: Entering directory '$ thrift-git-project / test'
make [3]: Entering directory '$ thrift-git-project / test'
make [3]: Nothing to be done for 'install-exec-am'.
make [3]: Nothing to be done for 'install-data-am'.
make [3]: Leaving directory '$ thrift-git-project / test'
make [2]: Leaving directory '$ thrift-git-project / test'
make [1]: Leaving directory '$ thrift-git-project / test'
Making install in tutorial
make [1]: Entering directory '$ thrift-git-project / tutorial'
Making install in cpp
make [2]: Entering directory '$ thrift-git-project / tutorial / cpp'
make install-am
make [3]: Entering directory '$ thrift-git-project / tutorial / cpp'
make [4]: ​​Entering directory '$ thrift-git-project / tutorial / cpp'
make [4]: ​​Nothing to be done for 'install-exec-am'.
make [4]: ​​Nothing to be done for 'install-data-am'.
make [4]: ​​Leaving directory '$ thrift-git-project / tutorial / cpp'
make [3]: Leaving directory '$ thrift-git-project / tutorial / cpp'
make [2]: Leaving directory '$ thrift-git-project / tutorial / cpp'
make [2]: Entering directory '$ thrift-git-project / tutorial'
../compiler/cpp/thrift --gen html -r ../tutorial/tutorial.thrift
make [3]: Entering directory '$ thrift-git-project / tutorial'
make [3]: Nothing to be done for 'install-exec-am'.
make [3]: Nothing to be done for 'install-data-am'.
make [3]: Leaving directory '$ thrift-git-project / tutorial'
make [2]: Leaving directory '$ thrift-git-project / tutorial'
make [1]: Leaving directory '$ thrift-git-project / tutorial'
make [1]: Entering directory '$ thrift-git-project'
make [2]: Entering directory '$ thrift-git-project'
make [2]: Nothing to be done for 'install-exec-am'.
make [2]: Nothing to be done for 'install-data-am'.
make [2]: Leaving directory '$ thrift-git-project'
make [1]: Leaving directory '$ thrift-git-project'
     
         
         
         
  More:      
 
- Zabbix configuration of SNMP (Server)
- How to configure a development environment elegant Lua (Linux)
- Sniffer install applications in Linux supplement (Linux)
- GAMIT learning materials finishing (Linux)
- Ora-1092: OPI colleague K aborting process --- killed by OO Well killer (Database)
- MySQL management partition table (Database)
- The lambda expression Java8 (constructor references) (Programming)
- Tmux create the perfect terminal management tool under CentOS (Linux)
- Linux C programming and Shell Programming in the development of practical tools similarities summary (Programming)
- OpenSUSE GPG Comments (Linux)
- The method of CentOS-7.0. The installation and configuration of Tomcat-7 (Server)
- Btrfs file system creation and their characteristics in Linux (Linux)
- iOS constants, variables, properties and characteristics (Programming)
- Installed FFmpeg 2.6.3 on Ubuntu / Debian / Fedora system (Linux)
- Linux static library generated Guide (Programming)
- Linux process group, session daemon (Linux)
- Performance issues under CentOS 6.5 VLAN devices (Linux)
- Android Studio 1.0.2 set the memory size (Linux)
- Laravel configuration PhpStorm + Xdebug + Chrome settings Debug Environment (Server)
- Create a DLL using MinGW and Attention (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.