[英]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.