2015-11-01 162 views
4

我想從它的源代碼編譯FileZilla。它需要C++ 14支持,其中需要gcc4.9。 無論高於4.8的版本,我嘗試安裝,沒有任何變化。在ubuntu上編譯fileZilla 14.04 LTS

gcc4.9不可用於上述ubuntu版本嗎?

我得到的錯誤是:

checking whether g++ supports C++14 features by default... no 
checking whether g++ supports C++14 features with -std=gnu++14... no 
checking whether g++ supports C++14 features with -std=gnu++1y... no 
checking whether g++ supports C++14 features with -std=c++14... no 
checking whether g++ supports C++14 features with -std=c++1y... no 
configure: error: *** A compiler with support for C++14 language features is required 

有人能幫忙嗎?

+0

查看以下鏈接http://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-4-9-on- Ubuntu的14-04 – m7mdbadawy

回答

7

要安裝gcc-4.9 g ++ - 4.9可能會有幫助,並將其設置爲您的默認gcc。

sudo add-apt-repository ppa:ubuntu-toolchain-r/test 
sudo apt-get update 
sudo apt-get install gcc-4.9 g++-4.9 
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 

然後gcc-4.9將在您的ubuntu版本中可用。

注:我的版本是Ubuntu的14.04