linux + g++: command not found

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
30
down vote

favorite
9












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






share|improve this question

















  • 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














up vote
30
down vote

favorite
9












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






share|improve this question

















  • 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












up vote
30
down vote

favorite
9









up vote
30
down vote

favorite
9






9





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






share|improve this question













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








share|improve this question












share|improve this question




share|improve this question








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












  • 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







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










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.






share|improve this answer























  • 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










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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






























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.






share|improve this answer























  • 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














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.






share|improve this answer























  • 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












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.






share|improve this answer















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.







share|improve this answer















share|improve this answer



share|improve this answer








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
















  • 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












 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay