在Ubuntu 14.04 LTS上编译FileZilla

4
我正在尝试从源代码编译FileZilla。它需要C++14支持,需要gcc4.9。无论我安装多高版本的4.8以上,都没有变化。
请问上述Ubuntu版本是否不支持gcc4.9?
我遇到的错误是:
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

有人能帮忙吗?


请查看以下链接:http://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-4-9-on-ubuntu-14-04 - m7mdbadawy
1个回答

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。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接