首页 > 其他分享 >使用gcc-13.1.0编译安装thrift-0.18.1

使用gcc-13.1.0编译安装thrift-0.18.1

时间:2023-07-25 17:56:36浏览次数:41  
标签:Building gcc no -- Library without config 0.18 thrift

执行 configure 生成 Makefile,排除掉不需要的语言支持和测试等:

./configure --prefix=/usr/local/thrift-0.18.1 --with-boost=/usr/local/boost --with-libevent=/usr/local/libevent --with-openssl=/usr/local/openssl --with-cpp=yes --with-go=no --with-java=no --with-python=no --with-lua=no --with-qt5=no --with-c_glib=no --with-kotlin=no --with-erlang=no --with-nodejs=no --with-nodets=no --with-py3=no --with-perl=no --with-php=no --with-php_extension=no --with-dart=no --with-ruby=no --with-swift=no --with-rs=no --with-cl=no --with-haxe=no --with-netstd=no --with-d=no --enable-tests=no --enable-tutorial=no --enable-coverage=no

执行成功后,可见:

config.status: creating config.h
config.status: creating lib/cpp/src/thrift/config.h
config.status: creating lib/c_glib/src/thrift/config.h
config.status: executing depfiles commands
config.status: executing libtool commands

thrift 0.18.1

Building C (GLib) Library .... : no
Building C++ Library ......... : yes
Building Common Lisp Library.. : no
Building D Library ........... : no
Building Dart Library ........ : no
Building .NET Standard Library : no
Building Erlang Library ...... : no
Building Go Library .......... : no
Building Haxe Library ........ : no
Building Java Library ........ : no
Building Kotlin Library ...... : no
Building Lua Library ......... : no
Building NodeJS Library ...... : no
Building Perl Library ........ : no
Building PHP Library ......... : no
Building Python Library ...... : no
Building Py3 Library ......... : no
Building Ruby Library ........ : no
Building Rust Library ........ : no
Building Swift Library ....... : no

C++ Library:
   C++ compiler .............. : g++ -std=c++11
   Build TZlibTransport ...... : yes
   Build TNonblockingServer .. : no
   Build TQTcpServer (Qt5) ... : no
   C++ compiler version ...... : g++ (GCC) 13.1.0

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.

接下来执行 make 编译 和 make install 安装即可。

注意如果不指定 --with-libevent,则不会构建 TNonblockingServer,--with-boost 也需要指定。

附1:openssl的编译安装:

./config --prefix=/usr/local/openssl-3.1.1 shared threads
make&&make install

附2:boost的编译安装:

./bootstrap.sh --without-icu --without-libraries=python,graph,graph_parallel,mpi,wave
./b2 install threading=multi --prefix=/usr/local/boost_1_82_0 --without-python --without-graph --without-graph_parallel --without-mpi --without-wave

标签:Building,gcc,no,--,Library,without,config,0.18,thrift
From: https://www.cnblogs.com/aquester/p/17580487.html

相关文章

  • python使用ctypes调用gcc编译的dll之g++编译c++代码
    1、在windows系统将cpp代码编译成可供python调用的dll1.1新建header.h代码如下#pragmaonce#defineDllExport__declspec(dllexport)extern"C"{DllExportvoidhello_world(void);}/*#pragmaonce用来防止某个头文件被多次include,这条指令就能够保证头文件被......
  • 一键编译和安装 gcc 脚本
    直接执行即可,执行前需要确保机器上的wget、gunzip、bunzip2、cmake可用。一键编译和安装gcc脚本:install_gcc_tool.sh脚本自动下载依赖、编译安装依赖和下载gcc、编译gcc和安装gcc。可修改脚本中的如下变量来选择版本:GCC_VERSION="13.1.0"GMP_VERSION="6.2.0"MPFR_VER......
  • mpc库问题导致gcc编译失败
    使用mpc-1.3.0编译gcc-13.1.0,执行gcc的configure时遇到如下错误:checkingforthecorrectversionofgmp.h...yescheckingforthecorrectversionofmpfr.h...yescheckingforthecorrectversionofmpc.h...noconfigure:error:BuildingGCCrequiresGMP4......
  • 从gcc早期源码看结构体大小
    既然sizeof是运算符,不是函数,那么它的机制到底是什么?C语言规范或编译器应该有所体现。gcc-0.9,其他版本的有需要再看,暂时不能handlecmake,以后再看CLANG/LLVM。搞清楚编译器,就可以相信编译器。                未经本人同意,禁止转载。......
  • android 弃用gcc
    如何实现Android弃用GCC引言在开发Android应用程序时,我们通常使用NDK(NativeDevelopmentKit)来编写一些高性能的C/C++代码。在过去的几年里,GCC(GNUCompilerCollection)是AndroidNDK的默认编译器。然而,自从AndroidNDKr18版本起,Google宣布弃用GCC,改用Clang作为......
  • Ubuntu更换cuda版本,gcc,g++版本
    Ubuntu更换cuda版本,gcc,g++版本更换cuda版本这个比较简单可以看到/usr/local下面有一个软链接,更换到我们需要的版本即可,cuda对应版本安装可参考官网。创建软连接:(创建之前先删除之前的软连接,然后创建新的软连接)sudorm-rfcudasudoln-s/usr/local/cuda-11.3//usr/loc......
  • 【linux】gcc编译选项:-fomit-frame-pointer,-fno-tree-vectorize,-fno-strict-aliasing
    Date:2018.9.81、参考https://www.cnblogs.com/islandscape/p/3444122.htmlhttps://blog.csdn.net/chdhust/article/details/8462414https://gcc.gnu.org/onlinedocs/gcc-6.2.0/gcc.pdfhttps://blog.csdn.net/u012927281/article/details/50999138https://blog.csdn.net/sof......
  • (GCC) gcc编译选项 -Wl, -start-group,whole-archive,-Wl, Bstatic
    1.start-group编译选项假设程序x依赖三个静态库:libX1.a、libX2.a和libX3.a,而libX2.a又依赖libX1.a,libX3.a依赖libX2.a和libX1.a,正常情况下的CMakeLists.txt格式如下target_link_libraries(xlibX1.alibX2.alibX3.a)但也可以偷懒,不关心静态库的顺序问题,ld......
  • centos7中yum安装gcc编译器11
     001、系统信息[root@PC1software]#cat/etc/system-releaseCentOSLinuxrelease7.6.1810(Core) 002、当前gcc编译器版本[root@PC1software]#gcc--versiongcc(GCC)4.8.520150623(RedHat4.8.5-36)Copyright(C)2015FreeSoftwareFoundation,Inc.T......
  • centos7中根据gcc编译器安装包升级gcc编译器
     001、系统信息[root@PC1home]#lsb_release-aLSBVersion::core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarchDistributorID:......