linux + g++: command not found

Install the suite of development tools first. Then go back to compile the software.

yum groupinstall 'Development Tools'

You could need much more than just the compiler. The Development Tools package includes the core development tools like automake, gcc, perl, python, flex, make, gdb, bison, and many more. To list all of the software in the package group, use yum as follows.

yum group info 'Development Tools'

For Fedora 20 (at least), you'll additionally need to install gcc-c++.

For Debian-based systems, install the suite of development tools as follows.

apt-get install build-essential

In Void Linux, it's xbps-install -Su base-devel, which provides m4, autoconf, automake, bc, binutils, bison, ed, libfl-devel, flex, libgcc-devel, kernel-libc-headers, glibc-devel, isl, cloog, mpfr, libmpc, gcc, libstdc++-devel, gcc-c++, gettext-libs, gettext, groff, libtool, make, patch, pkg-config, texinfo, unzip, and xz.


On CentOS 7, I only needed

yum install gcc-c++

(but maybe I already had most of the other development packages)

Tags:

Linux

G++