我怎么能把GCC降级到20.04的第6版呢?
我需要GCC6来编译CUDA9文件。
正在尝试
apt install gcc-6给了我这个错误:
Package gcc-6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gcc-6' has no installation candidate发布于 2020-05-07 17:21:46
Ubuntu 20.04,gcc-6
请不要删除/更改系统gcc :您可以有多少gcc版本,你想要,在同一时间安装。向/etc/apt/sources.list添加(临时)一行。列表:
apt [url] bionic main universe和do
sudo apt update
sudo apt install g++-6我的测试:{gcc-6,g+-6}安装正常.
使用额外的编译器,示例:export CC=gcc-6 CXX=g++-6 && ./configure和make CC=gcc-6 CXX=g++-6
Ubuntu https://drive.google.com/drive/folders/1xVEATaYAwqvseBzYxKDzJoZ4-Hc_XOJm?usp=sharing的其他(非饼类)额外编译器
https://askubuntu.com/questions/1236552
复制相似问题