在ubuntu 14.04 LTS上编译fileZilla

compiling fileZilla on ubuntu 14.04 LTS

本文关键字:编译 fileZilla LTS ubuntu      更新时间:2023-10-16

我正在尝试从源代码编译FileZilla。它需要C++14支持,而这需要gcc4.9。无论是什么高于4.8的版本,我都会尝试安装,没有任何更改。

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

有人能帮忙吗?

安装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