You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Rares Vernica <rv...@gmail.com> on 2021/09/23 19:29:28 UTC

Build 0.12.0 C++ Libraries in CentOS 7

Hello,

I'm trying to build Thrift 0.12.0 C++ libraries in CentOS 7. I got the
source code and the bootstrap.sh script ran fine. The configure script runs
fine as well but the C++ libraries are not enabled even if I explicitly
request them.

Once I enable devtoolset-3, here is how I run configure:

scl enable devtoolset-3 bash
./configure --prefix=/opt/apache-thrift --enable-shared=no
--enable-tests=no --enable-tutorial=no --with-qt4=no --with-c_glib=no
--with-java=no --with-python=no --with-haskell=no --with-cpp=yes
--enable-static=yes --with-libevent=no

But the final output is:

thrift 0.12.0

Building C (GLib) Library .... : no
Building C# (Mono) Library ... : no
Building C++ Library ......... : no
Building Common Lisp Library.. : no
Building D Library ........... : no
Building Dart Library ........ : no
Building dotnetcore Library .. : no
Building Erlang Library ...... : no
Building Go Library .......... : no
Building Haskell Library ..... : no
Building Haxe Library ........ : no
Building Java Library ........ : no
Building Lua Library ......... : no
Building NodeJS Library ...... : no
Building Perl Library ........ : no
Building PHP Library ......... : no
Building Plugin Support ...... : no
Building Python Library ...... : no
Building Py3 Library ......... : yes
Building Ruby Library ........ : no
Building Rust Library ........ : no

I went through config.log but I could not find anything wrong with the
C++-related messages.

What could I be missing?

Thank you!
Rares

Re: Build 0.12.0 C++ Libraries in CentOS 7

Posted by Randy Abernethy <ra...@rx-m.com>.
Here's the old Centos 7.3 dockerfile:
https://github.com/apache/thrift/blob/master/build/docker/old/centos-7.3/Dockerfile

Key bits for C++ being:
yum install -y epel-release
yum install -y \
      autoconf \
      bison \
      bison-devel \
      clang \
      clang-analyzer \
      cmake3 \
      curl \
      flex \
      gcc \
      gcc-c++ \
      gdb \
      git \
      libtool \
      m4 \
      make \
      tar \
      unzip \
      valgrind \
      wget && \
      ln -s /usr/bin/cmake3 /usr/bin/cmake && \
      ln -s /usr/bin/cpack3 /usr/bin/cpack && \
      ln -s /usr/bin/ctest3 /usr/bin/ctest
yum install -y \
      boost-devel-static \
      zlib-devel \
      openssl-devel \
      libevent-devel && \
    cd /usr/lib64 && \
    ln -s libboost_thread-mt.a libboost_thread.a
yum install -y glib2-devel

The 3rd yum install should get everything .configure is looking for to
enable C++


On Thu, Sep 23, 2021 at 12:29 PM Rares Vernica <rv...@gmail.com> wrote:

> Hello,
>
> I'm trying to build Thrift 0.12.0 C++ libraries in CentOS 7. I got the
> source code and the bootstrap.sh script ran fine. The configure script runs
> fine as well but the C++ libraries are not enabled even if I explicitly
> request them.
>
> Once I enable devtoolset-3, here is how I run configure:
>
> scl enable devtoolset-3 bash
> ./configure --prefix=/opt/apache-thrift --enable-shared=no
> --enable-tests=no --enable-tutorial=no --with-qt4=no --with-c_glib=no
> --with-java=no --with-python=no --with-haskell=no --with-cpp=yes
> --enable-static=yes --with-libevent=no
>
> But the final output is:
>
> thrift 0.12.0
>
> Building C (GLib) Library .... : no
> Building C# (Mono) Library ... : no
> Building C++ Library ......... : no
> Building Common Lisp Library.. : no
> Building D Library ........... : no
> Building Dart Library ........ : no
> Building dotnetcore Library .. : no
> Building Erlang Library ...... : no
> Building Go Library .......... : no
> Building Haskell Library ..... : no
> Building Haxe Library ........ : no
> Building Java Library ........ : no
> Building Lua Library ......... : no
> Building NodeJS Library ...... : no
> Building Perl Library ........ : no
> Building PHP Library ......... : no
> Building Plugin Support ...... : no
> Building Python Library ...... : no
> Building Py3 Library ......... : yes
> Building Ruby Library ........ : no
> Building Rust Library ........ : no
>
> I went through config.log but I could not find anything wrong with the
> C++-related messages.
>
> What could I be missing?
>
> Thank you!
> Rares
>


-- 

Randy Abernethy
Managing Partner
RX-M, LLCrandy.abernethy@rx-m.com
o 415-800-2922
c 415-624-6447