zoukankan      html  css  js  c++  java
  • sudo apt-get install libstdc++6

    sudo apt-get install libstdc++6

    yum install  libncurses.so.5

    sudo apt-get install libncurses.so.5

    sudo apt-get install lib32ncurses5

     apt-get update把源更新一下

    使用gdb时的指令

    (gbd) info line *0x08xxxx

    sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

    libncurses.so.5安装方法
    在命令行中输入:
    sudo apt-get install libncurses5-dev
    make menuconfig
    Ncurses是一个能提供功能键定义(快捷键),屏幕绘制以及基于文本终端的图形互动功能的动态库。
    这就不难解释为何执行make menuconfig命令需要ncurses了。
    Ncurses是一个能提供基于文本终端窗口功能的动态库. Ncurses可以:
    只要您喜欢,您可以使用整个屏幕
    创建和管理一个窗口
    使用8种不同的彩色
    为您的程序提供鼠标支持
    使用键盘上的功能键
    Ncurses可以在任何遵循ANSI/POSIX标准的UNIX系统上运行,除此之外,它还可以从系统数据库中检测终端的属性, 并且自动进行调整,提供一个不受终端约束的接口.因此,Ncurses可以在不同的系统平台和不同的终端上工作的非常好。

     make: *** Waiting for unfinished jobs....
    /home/endv/Downloads/android-ndk-r16b-linux-x86_64/android-ndk-r16b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
    make: *** [obj/local/x86_64/objs/proto/__/src/Proto/pull_group_info_result.o] Error 127

    1 [sudo] password for endv: 
    2 Reading package lists... Done
    3 Building dependency tree       
    4 Reading state information... Done
    5 libstdc++6 is already the newest version (9.1.0-2ubuntu2~19.04).
    6 libstdc++6 set to manually installed.
    7 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
    View Code

    出现以上问题到原因主要是Ubuntu用到是X64位,系统中缺少X32的链接库,所以ANDROID编译会报错,解决方案如下:

    Q1: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

    Solution:
    # sudo apt-get install libstdc++6


    Q2: error while loading shared libraries:libncurses.so.5:cannot oopen shared object file:No such file or directory

    Solution:
    # sudo apt-get install libncurses5:i386


    Android SDK having trouble with ADB
    http://askubuntu.com/questions/143774/android-sdk-having-trouble-with-adb

  • 相关阅读:
    cmake
    docker
    rust
    linux
    FPGA
    visual studio
    win+R
    word文档的导出(用freemarker模板导出)(桃)
    iconfont的引入方法
    jquery 日期插件
  • 原文地址:https://www.cnblogs.com/endv/p/11180299.html
Copyright © 2011-2022 走看看