![](/img/trans.png)
[英]undefined reference for static constexpr on g++ 4.9 with no optimisation
[英]Install g++ 4.9 on Mint 17.2
我正在尝试安装g ++ 4.9或更高版本,以便在Android上构建mapbox。 说明指出我需要g ++ 4.9或更高版本。 我找到了以下说明,但它们不起作用。
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9
最后一个命令说:
~ $ sudo apt-get install g++-4.9
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package g++-4.9 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 'g++-4.9' has no installation candidate
我也尝试从Synaptic Package Manager获得以下内容:
g++:
Depends: cpp (>=4:4.9-1ubuntu7) but 4:4.8.2-1ubuntu6 is to be installed
Depends: gcc (>=4:4.9-1ubuntu7) but 4:4.8.2-1ubuntu6 is to be installed
Depends: g++-4.9 (>=4.9) but it is not installable
Depends: gcc-4.9 (>=4.9) but it is not installable
我怎样才能在我的电脑上获得g ++ 4.9?
谢谢。
以下是如何在Linux Mint 17.2 Rafaela上安装g ++ - 4.9
转到菜单 - >管理 - >软件源
单击Additional repositories ,然后单击Getdeb
点击编辑网址...
替换deb http://archive.getdeb.net/ubuntu trusty-getdeb应用程序
通过
deb http://archive.getdeb.net/ubuntu wily-getdeb apps
然后单击“ 更新缓存”
此时你可以去
sudo add-apt-repository ppa:ubuntu-toolchain -r / test
sudo apt-get update
sudo apt-get install g ++ - 4.9
你可以像这样调用你的g ++:
克++ - 4.9
现在你安装了g ++ 4.9.3
作为补充,您可以使用最新的g ++ - 5(g ++ 5.2.1)编译器
sudo apt-get install g ++ - 5
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.