我想安装在我的 Linux red-hat 机器上gettext-0.19.1.tar.xz。
首先我做以下
cd gettext-0.19.1
./configure
make
Run Code Online (Sandbox Code Playgroud)
在make它失败期间g++: command not found
libtool: compile: g++ -DIN_LIBASPRINTF -DHAVE_CONFIG_H -I. -c autosprintf.cc - o .libs/autosprintf.o
./libtool: line 1128: g++: command not found
make[5]: *** [autosprintf.lo] Error 1
make[5]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime/libasprintf'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime/libasprintf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/gettext-0.19.1/gettext-runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory …Run Code Online (Sandbox Code Playgroud) 我尝试了许多解决方案来在 debian 服务器上为我的 gcc 编译器安装更新。他们都没有工作。我需要编译器更新才能使用 c++11 的新功能,因为这提供了稳定的 libcxx11 ABI,以及对 C++11 的稳定支持(请参阅此处)。专门获取版本“GLIBCXX_3.4.21”,该版本未包含在我当前的编译器 gcc 版本 4.9.2(Debian 4.9.2-10)中。
一些解决方案的指针会有所帮助。提前致谢。
一些与我已经尝试过的问题相关的论坛链接:
我尝试在我的 Debian strench g++-4.9 上安装,但我没有通过以下方式找到软件包
apt-cache search g++-4.9
Run Code Online (Sandbox Code Playgroud)
我发现的最旧版本只有 g++-5
我在哪里可以得到 g++-4.9?
我如何gcc在 FreeBSD 上安装最新版本并设置系统,以便使用这个最新版本来编译更多程序?
在撰写本文时,最新版本gcc是 4.9.0。我使用 FreeBSD 10.0。
我实际上需要g++,C++ 编译器;但我需要gcc49为它安装类似package 的东西,对吗?
我想在 Linux Mint 17.3 中安装最新版本的 GCC(GNU 编译器集合)。当前g++ --version返回 4.8.4,而最新的稳定版本是 5.3。
如何在 Opensuse 中通过命令行安装 g++?我不想使用 YaST。
我在 Ubuntu 14.04 上运行g++ 4.8.5(Ubuntu 4.8.5-2ubuntu1~14.04.1)。尝试使用-std=c++14参数时,g++ 输出:
unrecognized command line option '-std=c++14'
即使在运行apt-get update和 时apt-get upgrade,问题仍然存在。那里发生什么事了?
我正在尝试安装最新的稳定版g++和c++11. 我的主持人通过yum install并认为这是最新的,但事实并非如此,他们现在说这超出了他们的支持水平。
我已经仔细研究了如何做到这一点,但我无法做任何事情,或者我不知道建议的解决方案在说什么。
在 CentOS 5.9上安装g++4.7.2的最简单方法是什么?c++11
编译时,错误通常伴随着一系列冗长的注释(青色)。是否有一个 g++ 标志来禁用它,只显示错误本身?