./configure cannot find GCC but whereis is able to?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have the minimal install from CentOS-7-x86_64-Everything-1708.iso running in VirtualBox.
Due to an Apache HTTPD dependency issue, I am trying to configure pcre via:
./configure --prefix /usr/local/pcre/8.41
but I end up with:
configure: error: You need a C++ compiler for C++ support.
I find GCC/CPP/CC via
whereis gcc
whereis cpp
whereis cc
and, respectively, receive:
cc: /usr/bin/cc
cpp: /usr/bin/cpp /usr/lib/cpp /usr/share/man/man1/cpp.1.gz
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz
yum install gcc reports:
...
Package gcc-4.8.5-16.el7_4.1.x86_64 already installed and latest version
Nothing to do
Can anyone point me in the right direction?
I am quite green in regards to administering Linux from scratch but I am trying really hard to learn how to install Apache/PHP via make since yum's latest PHP is 5.4.
centos gcc dependencies
 |Â
show 1 more comment
up vote
0
down vote
favorite
I have the minimal install from CentOS-7-x86_64-Everything-1708.iso running in VirtualBox.
Due to an Apache HTTPD dependency issue, I am trying to configure pcre via:
./configure --prefix /usr/local/pcre/8.41
but I end up with:
configure: error: You need a C++ compiler for C++ support.
I find GCC/CPP/CC via
whereis gcc
whereis cpp
whereis cc
and, respectively, receive:
cc: /usr/bin/cc
cpp: /usr/bin/cpp /usr/lib/cpp /usr/share/man/man1/cpp.1.gz
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz
yum install gcc reports:
...
Package gcc-4.8.5-16.el7_4.1.x86_64 already installed and latest version
Nothing to do
Can anyone point me in the right direction?
I am quite green in regards to administering Linux from scratch but I am trying really hard to learn how to install Apache/PHP via make since yum's latest PHP is 5.4.
centos gcc dependencies
Did you read the log file, like it keeps telling you to?
â Ignacio Vazquez-Abrams
Feb 19 at 3:41
@IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using./configure --prefix /usr/local/pcre/8.41
â MonkeyZeus
Feb 19 at 3:43
2
gccis a C compiler - the C++ compilerg++would usually be packaged separately
â steeldriver
Feb 19 at 3:45
@steeldriver Oh boy, I have a long road ahead of me, looks like I needgcc-c++in specific? Wouldyum install gcc*be advisable?
â MonkeyZeus
Feb 19 at 3:48
2
Possible duplicate of Problems with CMake in CentOS 6
â muru
Feb 19 at 4:09
 |Â
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have the minimal install from CentOS-7-x86_64-Everything-1708.iso running in VirtualBox.
Due to an Apache HTTPD dependency issue, I am trying to configure pcre via:
./configure --prefix /usr/local/pcre/8.41
but I end up with:
configure: error: You need a C++ compiler for C++ support.
I find GCC/CPP/CC via
whereis gcc
whereis cpp
whereis cc
and, respectively, receive:
cc: /usr/bin/cc
cpp: /usr/bin/cpp /usr/lib/cpp /usr/share/man/man1/cpp.1.gz
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz
yum install gcc reports:
...
Package gcc-4.8.5-16.el7_4.1.x86_64 already installed and latest version
Nothing to do
Can anyone point me in the right direction?
I am quite green in regards to administering Linux from scratch but I am trying really hard to learn how to install Apache/PHP via make since yum's latest PHP is 5.4.
centos gcc dependencies
I have the minimal install from CentOS-7-x86_64-Everything-1708.iso running in VirtualBox.
Due to an Apache HTTPD dependency issue, I am trying to configure pcre via:
./configure --prefix /usr/local/pcre/8.41
but I end up with:
configure: error: You need a C++ compiler for C++ support.
I find GCC/CPP/CC via
whereis gcc
whereis cpp
whereis cc
and, respectively, receive:
cc: /usr/bin/cc
cpp: /usr/bin/cpp /usr/lib/cpp /usr/share/man/man1/cpp.1.gz
gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz
yum install gcc reports:
...
Package gcc-4.8.5-16.el7_4.1.x86_64 already installed and latest version
Nothing to do
Can anyone point me in the right direction?
I am quite green in regards to administering Linux from scratch but I am trying really hard to learn how to install Apache/PHP via make since yum's latest PHP is 5.4.
centos gcc dependencies
edited Feb 19 at 3:41
asked Feb 19 at 3:40
MonkeyZeus
1086
1086
Did you read the log file, like it keeps telling you to?
â Ignacio Vazquez-Abrams
Feb 19 at 3:41
@IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using./configure --prefix /usr/local/pcre/8.41
â MonkeyZeus
Feb 19 at 3:43
2
gccis a C compiler - the C++ compilerg++would usually be packaged separately
â steeldriver
Feb 19 at 3:45
@steeldriver Oh boy, I have a long road ahead of me, looks like I needgcc-c++in specific? Wouldyum install gcc*be advisable?
â MonkeyZeus
Feb 19 at 3:48
2
Possible duplicate of Problems with CMake in CentOS 6
â muru
Feb 19 at 4:09
 |Â
show 1 more comment
Did you read the log file, like it keeps telling you to?
â Ignacio Vazquez-Abrams
Feb 19 at 3:41
@IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using./configure --prefix /usr/local/pcre/8.41
â MonkeyZeus
Feb 19 at 3:43
2
gccis a C compiler - the C++ compilerg++would usually be packaged separately
â steeldriver
Feb 19 at 3:45
@steeldriver Oh boy, I have a long road ahead of me, looks like I needgcc-c++in specific? Wouldyum install gcc*be advisable?
â MonkeyZeus
Feb 19 at 3:48
2
Possible duplicate of Problems with CMake in CentOS 6
â muru
Feb 19 at 4:09
Did you read the log file, like it keeps telling you to?
â Ignacio Vazquez-Abrams
Feb 19 at 3:41
Did you read the log file, like it keeps telling you to?
â Ignacio Vazquez-Abrams
Feb 19 at 3:41
@IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using
./configure --prefix /usr/local/pcre/8.41â MonkeyZeus
Feb 19 at 3:43
@IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using
./configure --prefix /usr/local/pcre/8.41â MonkeyZeus
Feb 19 at 3:43
2
2
gcc is a C compiler - the C++ compiler g++ would usually be packaged separatelyâ steeldriver
Feb 19 at 3:45
gcc is a C compiler - the C++ compiler g++ would usually be packaged separatelyâ steeldriver
Feb 19 at 3:45
@steeldriver Oh boy, I have a long road ahead of me, looks like I need
gcc-c++ in specific? Would yum install gcc* be advisable?â MonkeyZeus
Feb 19 at 3:48
@steeldriver Oh boy, I have a long road ahead of me, looks like I need
gcc-c++ in specific? Would yum install gcc* be advisable?â MonkeyZeus
Feb 19 at 3:48
2
2
Possible duplicate of Problems with CMake in CentOS 6
â muru
Feb 19 at 4:09
Possible duplicate of Problems with CMake in CentOS 6
â muru
Feb 19 at 4:09
 |Â
show 1 more comment
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
On systems using the GCC suite of compilers, the C++ compiler is g++ (cpp is the C preprocessor).
A common name to find a C++ compiler under is c++. This is often a symbolic link to an appropriate C++ compiler such as g++ or clang++ or whatever the installed system compiler is (if it is installed).
The error message from the configure script indicates that there is no C++ compiler installed on your system. On your Linux, the C++ compiler is installed separately from the C compiler.
To install the GCC C++ compiler on CentOS:
yum install gcc-c++
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
On systems using the GCC suite of compilers, the C++ compiler is g++ (cpp is the C preprocessor).
A common name to find a C++ compiler under is c++. This is often a symbolic link to an appropriate C++ compiler such as g++ or clang++ or whatever the installed system compiler is (if it is installed).
The error message from the configure script indicates that there is no C++ compiler installed on your system. On your Linux, the C++ compiler is installed separately from the C compiler.
To install the GCC C++ compiler on CentOS:
yum install gcc-c++
add a comment |Â
up vote
4
down vote
accepted
On systems using the GCC suite of compilers, the C++ compiler is g++ (cpp is the C preprocessor).
A common name to find a C++ compiler under is c++. This is often a symbolic link to an appropriate C++ compiler such as g++ or clang++ or whatever the installed system compiler is (if it is installed).
The error message from the configure script indicates that there is no C++ compiler installed on your system. On your Linux, the C++ compiler is installed separately from the C compiler.
To install the GCC C++ compiler on CentOS:
yum install gcc-c++
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
On systems using the GCC suite of compilers, the C++ compiler is g++ (cpp is the C preprocessor).
A common name to find a C++ compiler under is c++. This is often a symbolic link to an appropriate C++ compiler such as g++ or clang++ or whatever the installed system compiler is (if it is installed).
The error message from the configure script indicates that there is no C++ compiler installed on your system. On your Linux, the C++ compiler is installed separately from the C compiler.
To install the GCC C++ compiler on CentOS:
yum install gcc-c++
On systems using the GCC suite of compilers, the C++ compiler is g++ (cpp is the C preprocessor).
A common name to find a C++ compiler under is c++. This is often a symbolic link to an appropriate C++ compiler such as g++ or clang++ or whatever the installed system compiler is (if it is installed).
The error message from the configure script indicates that there is no C++ compiler installed on your system. On your Linux, the C++ compiler is installed separately from the C compiler.
To install the GCC C++ compiler on CentOS:
yum install gcc-c++
edited Feb 19 at 9:14
answered Feb 19 at 6:57
Kusalananda
103k13202318
103k13202318
add a comment |Â
add a comment |Â
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%2f425072%2fconfigure-cannot-find-gcc-but-whereis-is-able-to%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
Did you read the log file, like it keeps telling you to?
â Ignacio Vazquez-Abrams
Feb 19 at 3:41
@IgnacioVazquez-Abrams I'm sorry, which command tells me that info? I do not see anything about logs when using
./configure --prefix /usr/local/pcre/8.41â MonkeyZeus
Feb 19 at 3:43
2
gccis a C compiler - the C++ compilerg++would usually be packaged separatelyâ steeldriver
Feb 19 at 3:45
@steeldriver Oh boy, I have a long road ahead of me, looks like I need
gcc-c++in specific? Wouldyum install gcc*be advisable?â MonkeyZeus
Feb 19 at 3:48
2
Possible duplicate of Problems with CMake in CentOS 6
â muru
Feb 19 at 4:09