【问题标题】:compiling fileZilla on ubuntu 14.04 LTS在 ubuntu 14.04 LTS 上编译 fileZilla
【发布时间】:2016-02-01 17:23:03
【问题描述】:

我正在尝试从其源代码编译 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

有人可以帮忙吗?

【问题讨论】:

标签: c++ ubuntu gcc


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-05-31
    • 2015-08-30
    • 1970-01-01
    • 2015-09-25
    • 2016-02-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多