标签:gcc checking c++ 编译器 PopLDdecay home software
1、问题
root@ubuntu01:/home/software/PopLDdecay# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... no checking for gawk... (cached) mawk checking for g++... no checking whether the C++ compiler works... no configure: error: in `/home/software/PopLDdecay': configure: error: C++ compiler cannot create executables See `config.log' for more details
2、测试gcc c++
root@ubuntu01:/home/software/PopLDdecay# gcc --version -bash: gcc: command not found root@ubuntu01:/home/software/PopLDdecay# c++ --version -bash: c++: command not found
3、安装gcc、c++编译器
root@ubuntu01:/home/software/PopLDdecay# apt install build-essential
报错如下:
解决方法:
root@ubuntu01:/home/software/PopLDdecay# apt update
4、再次安装gcc、c++编译器
root@ubuntu01:/home/software/PopLDdecay# apt install build-essential
没有问题。
5、测试gcc、c++
root@ubuntu01:/home/software/PopLDdecay# gcc --version gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. root@ubuntu01:/home/software/PopLDdecay# c++ --version c++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
标签:gcc,checking,c++,编译器,PopLDdecay,home,software 来源: https://www.cnblogs.com/liujiaxin2018/p/16099586.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。