zoukankan      html  css  js  c++  java
  • 解决“configure: line 2747: g: command not found”

    下面这个错误是因为没有安装g++

    $ ./configure --prefix=/data1/mooon/run
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    ./configure: line 2747: -g: command not found
    checking for g++... no
    checking for c++... no
    checking for gpp... no
    checking for aCC... no
    checking for CC... no
    checking for cxx... no
    checking for cc++... no
    checking for cl.exe... no
    checking for FCC... no
    checking for KCC... no
    checking for RCC... no
    checking for xlC_r... no
    checking for xlC... no
    checking whether the C++ compiler works... no
    configure: error: in `/data1/mooon/src/common_library/src':
    configure: error: C++ compiler cannot create executables
    See `config.log' for more details

    执行“$ sudo apt-get install g++”成功安装后,问题即可解决
  • 相关阅读:
    log4j的使用
    关于spring读取配置文件的两种方式
    BeanUtils组件的使用
    javaee 自定义标签实战
    javaweb中的标签的核心标签库的常用标签
    对接口的思考
    二分查找
    java抽象类
    多例集合
    js中for循环的研究
  • 原文地址:https://www.cnblogs.com/aquester/p/9891810.html
Copyright © 2011-2022 走看看