g++ --versionCloud9 ターミナルで実行すると、 g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3). これはかなり古いバージョンです - のような C++11 ライブラリ機能を使用しようとすると、次のようstd::unordered_setになります。"This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options."
どの機能を使用できるか、どの機能を避ける必要があるかについて心配する必要があるのは好きではないので、私はこれで本当に大丈夫ではありません. そこで、g++ を最新の安定バージョン (この記事の執筆時点では 4.8.1 のようです) に更新する方法を探しましたが、その方法がわかりません。を試しapt-getましたが、エラーが発生しました: "Sorry, apt-get is not supported on this system. Try c9pm instead."。まあ私はそれを試しましたが、c9pm list(はずです"List available packages")g ++のようなものは何も表示されません。だから私は迷っています。
Cloud9 に g++ 4.8.1 をインストールするにはどうすればよいですか?
実行するlsb_release -aと、Cloud9 IDE が現在 で実行されていることがわかり"Red Hat Enterprise Linux Server release 6.4 (Santiago)"ます。