美文网首页
gdb源码编译安装

gdb源码编译安装

作者: 菜菜子MJ | 来源:发表于2020-06-23 18:08 被阅读0次
// 下载最新版本 (鄙人下载了9.2)
 wget http://ftp.gnu.org/gnu/gdb/gdb-9.2.tar.gz

// 解压
tar xvf gdb-9.2.tar.gz

// 编译
mkdir build && cd build
../configure --prefix={你想要安装的路径前缀}/opt/gdb-9.2
make -j12
make install

// 添加bin路径到PATH
export PATH={你想要安装的路径前缀}/opt/gdb-9.2/bin:$PATH

安装完成提示链接库方法


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.

Q&A

Q: makeinfo is missing on your system
A: root用户 sudo apt-get install texinfo
非root用户 conda install -c conda-forge texinfo (需提前安装conda)

相关文章

  • gdb源码编译安装

    安装完成提示链接库方法 Q&A Q: makeinfo is missing on your systemA: r...

  • qemu环境搭建

    1. 安装qemu 2. 安装交叉编译器 3.下载并编译gdb 4.下载并编译linux内核源码 5.下载并编译b...

  • vscode 远程调试arm-linux c/c++程序

    1. 交叉编译gdb与gdbserver程序 gdb和gdbserver交叉编译不复杂,源码可以在官网上下载:ht...

  • gdb升级

    手动编译升级 获取安装包并解压 安装一些依赖 3.编译安装 4.更新gdb

  • php 手动编译添加扩展

    在完成 php的编译安装后, 发现没有编译某此模块。手动添加安装。php源码编译安装 编译安装 在php源码包中 ...

  • Mac C语言编程

    gcc编译 gdb调试 gdb安装指南brew update报错急救步骤: 创建c文件Terminal中 用指令c...

  • Ubuntu使用QEMU模拟ARM环境

    注:实验环境是 Ubuntu 16.04.1 gnome 安装交叉编译工具、GDB 和 QEMU 配置编译内核 创...

  • 以太坊学习笔记(三)——搭建以太坊私链

    以太坊私链的搭建可以直接通过下载程序进行安装,也可以通过编译源码安装,本文介绍通过编译源码进行安装。 编译源码 1...

  • PHP 开发环境,源代码安装 LNMP

    源码编译安装 LNMP 环境 LNMP(Linux, Nginx, Mysql, PHP) 源码编译安装,需要用到...

  • (一)mysql 安装

    .安装方式主要有是那种 编译后源码安装,rpm 安装,源码安装;主要介绍前两种 1.编译后的源码安装(tar.gz...

网友评论

      本文标题:gdb源码编译安装

      本文链接:https://www.haomeiwen.com/subject/qdnhfktx.html