Home Man
Search
Today's Posts
Register

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

Installing perl5.14 failed

Tags
linux

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 01-30-2017
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
# 2  
Old 01-30-2017
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.
# 3  
Old 01-30-2017
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
Quote:
Originally Posted by jim mcnamara
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)
# 5  
Old 01-31-2017
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-~]
# 6  
Old 01-31-2017
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.)
# 7  
Old 01-31-2017
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
Login to Reply

« Previous Thread | Next Thread »
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
FTP failed ajaykumarkona UNIX for Dummies Questions & Answers 4 05-13-2011 10:31 AM
Cygwin X Server error: xdmcp fatal error session failed session 23 failed for display HarishKumarM Solaris 3 12-02-2010 03:44 PM
Re Installing windows XP after installing KUBUNTU sarbjit Ubuntu 3 06-05-2009 07:17 AM
SFTP Failed---Request for subsystem 'sftp' failed on channel 0 mahiban AIX 0 07-25-2008 02:51 AM
Installing Firefox and now ended up installing latest glibc scriptingmani Linux 1 08-09-2007 04:28 PM
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 08:21 AM.

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