Linux

RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Installing perl5.14 failed

👤 Login to reply

    #1  
Old 01-30-2017
muzaffar.k muzaffar.k is offline
Registered User
 
Installing perl5.14 failed

Hi,

While installing perl5.14 on my Linux box its failing with c compiler issue.

below is the error message.

PHP Code:
Use which C compiler? [cc]
./
trygccline 10cccommand not found
Uh
-ohthe C compiler 'cc' doesn't seem to be working.
./trygcc: line 25: gcc: command not found
./checkcc: line 10: cc: command not found
Uh-oh, the C compiler '
cc' doesn't seem to be working.
You need to find a working C compiler.
Either (purchase and) install the C compiler supplied by your OS vendor,
or for 
a free C compiler try http://gcc.gnu.org/
I cannot continue any furtheraborting
later I downloaded the gcc-6.3.0 and tried to install I have got the below error.

PHP Code:
[root@esx-mind-1 gcc-6.3.0]# ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type
... x86_64-pc-linux-gnu
checking target system type
... x86_64-pc-linux-gnu
checking 
for a BSD-compatible install... /usr/bin/install -c
checking whether ln works
... yes
checking whether ln 
-s works... yes
checking 
for a sed that does not truncate output... /bin/sed
checking 
for gawk... gawk
checking 
for libatomic support... yes
checking 
for libcilkrts support... yes
checking 
for libitm support... yes
checking 
for libsanitizer support... yes
checking 
for libvtv support... yes
checking 
for libmpx support... yes
checking 
for gcc... no
checking 
for cc... no
checking 
for cl.exe... no
configure
errorin `/tmp/gcc-6.3.0':
configure: error: no acceptable C compiler found in 
$PATH
See 
`config.log' for more details.
[root@esx-mind-1 gcc-6.3.0]# 
Please help me resolve this issue.

Thanks,
Muzaffar
Sponsored Links
    #2  
Old 01-30-2017
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Please post the output of the following commands, exactly as displayed, running as the root user:

Code:
echo $"PATH"
which gcc
which cc 
alias | grep cc

cc is UNIX speak for the C compiler, and some software expects it to point to a real compiler. Unless you have a very tiny Linux install like ARM, there is probably a C compiler somewhere in the /usr/bin directory.
Sponsored Links
    #3  
Old 01-30-2017
drl's Unix or Linux Image
drl drl is offline Forum Advisor  
Registered Voter
 
Hi.

What distribution of Linux are you using?

Usually, the safest method for installing utilities and applications is from the distribution repository with specific tools such as apt-get (Debian, Ubuntu, etc), yum/dnf (RedHat, etc.), zypper (SuSE), and so on.

Best wishes ... cheers, drl
    #4  
Old 01-30-2017
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is offline Forum Staff  
Administrator
 
Quote:
Originally Posted by jim mcnamara View Post
Please post the output of the following commands, exactly as displayed, running as the root user:

Code:
echo $"PATH"
which gcc
which cc 
alias | grep cc

cc is UNIX speak for the C compiler, and some software expects it to point to a real compiler. Unless you have a very tiny Linux install like ARM, there is probably a C compiler somewhere in the /usr/bin directory.
I think Jim meant to ask for the output from the command:
Code:
echo "$PATH"

instead of:
Code:
echo $"PATH"

The Following User Says Thank You to Don Cragun For This Useful Post:
jim mcnamara (02-01-2017)
Sponsored Links
    #5  
Old 01-31-2017
muzaffar.k muzaffar.k is offline
Registered User
 
Hi,

Please find the output of the command below.

PHP Code:
[root@esx-mind-~]# echo $"PATH"
PATH
[root@esx-mind-~]# which gcc
/usr/bin/whichno gcc in (/root/gcc-6.3.0/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[
root@esx-mind-~]# which cc
/usr/bin/whichno cc in (/root/gcc-6.3.0/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[
root@esx-mind-~]# alias | grep cc
[root@esx-mind-~]
I am using RHEL 6.3 Linux

PHP Code:
[root@esx-mind-~]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Kernel \r on an \m

[root@esx-mind-~]# uname -r
2.6.32-431.el6.x86_64
[root@esx-mind-~]
Sponsored Links
    #6  
Old 01-31-2017
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Why are you building from sources instead of installing binary packages?

You're on a binary distro, you should be using binaries, so your package manager can manage your packages.

You certainly can't compile anything without a compiler, anyway, no even a compiler. (gcc has an obscure "bootstrap" process for that which people are lucky to avoid.)
Sponsored Links
    #7  
Old 01-31-2017
muzaffar.k muzaffar.k is offline
Registered User
 
I don't have yum repository configured in my Linux box, can you please point me out on how to resolve this issue. As this is killing my time and I am unable to proceed with other things

Thanks,
Muzaffar
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Installing OPENSSH 6.2P2 on RHEL 4, 64B failed scao Red Hat 0 08-26-2013 11:30 AM
Wrong ELF data format: ELFDATA2MSB at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm Jagandadi Solaris 3 06-18-2012 09:34 AM
Problems installing perl5 irasela UNIX for Dummies Questions & Answers 0 03-03-2006 07:06 PM
sh script to traul through /usr/lib/perl5 ... emcb Shell Programming and Scripting 1 08-07-2002 01:01 AM
one question of perl5 ybz3721 UNIX for Advanced & Expert Users 1 04-17-2002 12:57 PM



All times are GMT -4. The time now is 07:05 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?