linux + g++: command not found
Clash Royale CLAN TAG#URR8PPP
up vote
30
down vote
favorite
I want to install on my Linux red-hat machine gettext-0.19.1.tar.xz
.
First I do the following
cd gettext-0.19.1
./configure
make
During make
it fails on 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 `/var/tmp/gettext-0.19.1'
make: *** [all] Error 2
How do I fix this?
Remark - I have GCC
which gcc
/usr/bin/gcc
linux g++
add a comment |Â
up vote
30
down vote
favorite
I want to install on my Linux red-hat machine gettext-0.19.1.tar.xz
.
First I do the following
cd gettext-0.19.1
./configure
make
During make
it fails on 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 `/var/tmp/gettext-0.19.1'
make: *** [all] Error 2
How do I fix this?
Remark - I have GCC
which gcc
/usr/bin/gcc
linux g++
5
You are ruining your system. To install new software, you should be usingyum
and existing repositories. Please stop to read RedHat's own manuals before entering any more commands as root.
â Deer Hunter
Jul 2 '14 at 14:28
1
I wonder if there shouldn't be a canonical question regarding the command not found error.
â Cristian Ciupitu
Jul 2 '14 at 15:11
add a comment |Â
up vote
30
down vote
favorite
up vote
30
down vote
favorite
I want to install on my Linux red-hat machine gettext-0.19.1.tar.xz
.
First I do the following
cd gettext-0.19.1
./configure
make
During make
it fails on 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 `/var/tmp/gettext-0.19.1'
make: *** [all] Error 2
How do I fix this?
Remark - I have GCC
which gcc
/usr/bin/gcc
linux g++
I want to install on my Linux red-hat machine gettext-0.19.1.tar.xz
.
First I do the following
cd gettext-0.19.1
./configure
make
During make
it fails on 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 `/var/tmp/gettext-0.19.1'
make: *** [all] Error 2
How do I fix this?
Remark - I have GCC
which gcc
/usr/bin/gcc
linux g++
edited Jul 2 '14 at 22:13
polym
6,25643155
6,25643155
asked Jul 2 '14 at 11:34
maihabunash
2,205134364
2,205134364
5
You are ruining your system. To install new software, you should be usingyum
and existing repositories. Please stop to read RedHat's own manuals before entering any more commands as root.
â Deer Hunter
Jul 2 '14 at 14:28
1
I wonder if there shouldn't be a canonical question regarding the command not found error.
â Cristian Ciupitu
Jul 2 '14 at 15:11
add a comment |Â
5
You are ruining your system. To install new software, you should be usingyum
and existing repositories. Please stop to read RedHat's own manuals before entering any more commands as root.
â Deer Hunter
Jul 2 '14 at 14:28
1
I wonder if there shouldn't be a canonical question regarding the command not found error.
â Cristian Ciupitu
Jul 2 '14 at 15:11
5
5
You are ruining your system. To install new software, you should be using
yum
and existing repositories. Please stop to read RedHat's own manuals before entering any more commands as root.â Deer Hunter
Jul 2 '14 at 14:28
You are ruining your system. To install new software, you should be using
yum
and existing repositories. Please stop to read RedHat's own manuals before entering any more commands as root.â Deer Hunter
Jul 2 '14 at 14:28
1
1
I wonder if there shouldn't be a canonical question regarding the command not found error.
â Cristian Ciupitu
Jul 2 '14 at 15:11
I wonder if there shouldn't be a canonical question regarding the command not found error.
â Cristian Ciupitu
Jul 2 '14 at 15:11
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
52
down vote
accepted
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
.
I have perl version - v5.10.1
â maihabunash
Jul 2 '14 at 11:47
Many tools can be used to compile software. It depends on the purpose of the software and choices of the developers. The Development Tools package is the baseline; some software needs more packages such as supporting libraries.
â Christopher
Jul 2 '14 at 11:50
download the gcc-c++ but stil the same problem
â maihabunash
Jul 2 '14 at 12:21
yum groupinstall 'Development Tools'
â Christopher
Jul 2 '14 at 12:21
now I can use yum , but its fail on GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle:
â maihabunash
Jul 2 '14 at 12:37
 |Â
show 3 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
52
down vote
accepted
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
.
I have perl version - v5.10.1
â maihabunash
Jul 2 '14 at 11:47
Many tools can be used to compile software. It depends on the purpose of the software and choices of the developers. The Development Tools package is the baseline; some software needs more packages such as supporting libraries.
â Christopher
Jul 2 '14 at 11:50
download the gcc-c++ but stil the same problem
â maihabunash
Jul 2 '14 at 12:21
yum groupinstall 'Development Tools'
â Christopher
Jul 2 '14 at 12:21
now I can use yum , but its fail on GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle:
â maihabunash
Jul 2 '14 at 12:37
 |Â
show 3 more comments
up vote
52
down vote
accepted
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
.
I have perl version - v5.10.1
â maihabunash
Jul 2 '14 at 11:47
Many tools can be used to compile software. It depends on the purpose of the software and choices of the developers. The Development Tools package is the baseline; some software needs more packages such as supporting libraries.
â Christopher
Jul 2 '14 at 11:50
download the gcc-c++ but stil the same problem
â maihabunash
Jul 2 '14 at 12:21
yum groupinstall 'Development Tools'
â Christopher
Jul 2 '14 at 12:21
now I can use yum , but its fail on GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle:
â maihabunash
Jul 2 '14 at 12:37
 |Â
show 3 more comments
up vote
52
down vote
accepted
up vote
52
down vote
accepted
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
.
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
.
edited Jan 13 '17 at 21:15
answered Jul 2 '14 at 11:44
Christopher
8,91022742
8,91022742
I have perl version - v5.10.1
â maihabunash
Jul 2 '14 at 11:47
Many tools can be used to compile software. It depends on the purpose of the software and choices of the developers. The Development Tools package is the baseline; some software needs more packages such as supporting libraries.
â Christopher
Jul 2 '14 at 11:50
download the gcc-c++ but stil the same problem
â maihabunash
Jul 2 '14 at 12:21
yum groupinstall 'Development Tools'
â Christopher
Jul 2 '14 at 12:21
now I can use yum , but its fail on GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle:
â maihabunash
Jul 2 '14 at 12:37
 |Â
show 3 more comments
I have perl version - v5.10.1
â maihabunash
Jul 2 '14 at 11:47
Many tools can be used to compile software. It depends on the purpose of the software and choices of the developers. The Development Tools package is the baseline; some software needs more packages such as supporting libraries.
â Christopher
Jul 2 '14 at 11:50
download the gcc-c++ but stil the same problem
â maihabunash
Jul 2 '14 at 12:21
yum groupinstall 'Development Tools'
â Christopher
Jul 2 '14 at 12:21
now I can use yum , but its fail on GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle:
â maihabunash
Jul 2 '14 at 12:37
I have perl version - v5.10.1
â maihabunash
Jul 2 '14 at 11:47
I have perl version - v5.10.1
â maihabunash
Jul 2 '14 at 11:47
Many tools can be used to compile software. It depends on the purpose of the software and choices of the developers. The Development Tools package is the baseline; some software needs more packages such as supporting libraries.
â Christopher
Jul 2 '14 at 11:50
Many tools can be used to compile software. It depends on the purpose of the software and choices of the developers. The Development Tools package is the baseline; some software needs more packages such as supporting libraries.
â Christopher
Jul 2 '14 at 11:50
download the gcc-c++ but stil the same problem
â maihabunash
Jul 2 '14 at 12:21
download the gcc-c++ but stil the same problem
â maihabunash
Jul 2 '14 at 12:21
yum groupinstall 'Development Tools'
â Christopher
Jul 2 '14 at 12:21
yum groupinstall 'Development Tools'
â Christopher
Jul 2 '14 at 12:21
now I can use yum , but its fail on GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle:
â maihabunash
Jul 2 '14 at 12:37
now I can use yum , but its fail on GPG key retrieval failed: [Errno 14] Could not open/read file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle:
â maihabunash
Jul 2 '14 at 12:37
 |Â
show 3 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f140350%2flinux-g-command-not-found%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
5
You are ruining your system. To install new software, you should be using
yum
and existing repositories. Please stop to read RedHat's own manuals before entering any more commands as root.â Deer Hunter
Jul 2 '14 at 14:28
1
I wonder if there shouldn't be a canonical question regarding the command not found error.
â Cristian Ciupitu
Jul 2 '14 at 15:11