Unix/Linux Go Back    


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

Installing perl5.14 failed

Linux


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 01-30-2017   -   Original Discussion by muzaffar.k
muzaffar.k's Unix or Linux Image
muzaffar.k muzaffar.k is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 23 August 2017, 9:47 AM EDT
Location: bangalore
Posts: 38
Thanks: 0
Thanked 1 Time in 1 Post
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 Unix and Linux 01-30-2017   -   Original Discussion by muzaffar.k
jim mcnamara's Unix or Linux Image
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
 
Join Date: Feb 2004
Last Activity: 20 April 2018, 5:05 PM EDT
Location: NM
Posts: 11,351
Thanks: 602
Thanked 1,152 Times in 1,061 Posts
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 Unix and Linux 01-30-2017   -   Original Discussion by muzaffar.k
drl's Unix or Linux Image
drl drl is offline Forum Advisor  
Registered Voter
 
Join Date: Apr 2007
Last Activity: 19 April 2018, 12:01 PM EDT
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,223
Thanks: 258
Thanked 420 Times in 361 Posts
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 Unix and Linux 01-30-2017   -   Original Discussion by muzaffar.k
Don Cragun's Unix or Linux Image
Don Cragun Don Cragun is online now Forum Staff  
Administrator
 
Join Date: Jul 2012
Last Activity: 20 April 2018, 6:02 PM EDT
Location: San Jose, CA, USA
Posts: 11,207
Thanks: 633
Thanked 3,903 Times in 3,341 Posts
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 Unix and Linux 01-31-2017   -   Original Discussion by muzaffar.k
muzaffar.k's Unix or Linux Image
muzaffar.k muzaffar.k is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 23 August 2017, 9:47 AM EDT
Location: bangalore
Posts: 38
Thanks: 0
Thanked 1 Time in 1 Post
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 Unix and Linux 01-31-2017   -   Original Discussion by muzaffar.k
Corona688's Unix or Linux Image
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 20 April 2018, 2:49 PM EDT
Location: Saskatchewan
Posts: 22,636
Thanks: 1,172
Thanked 4,306 Times in 3,972 Posts
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 Unix and Linux 01-31-2017   -   Original Discussion by muzaffar.k
muzaffar.k's Unix or Linux Image
muzaffar.k muzaffar.k is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 23 August 2017, 9:47 AM EDT
Location: bangalore
Posts: 38
Thanks: 0
Thanked 1 Time in 1 Post
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 Linux and I am unable to proceed with other things

Thanks,
Muzaffar
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 06:10 PM.