Visit Our UNIX and Linux User Community


Installing perl5.14 failed


 
Thread Tools Search this Thread
Operating Systems Linux Installing perl5.14 failed
# 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"

This User Gave Thanks to Don Cragun For This Post:
# 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 02-01-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 Smilie and I am unable to proceed with other things

Thanks,
Muzaffar

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Installing OPENSSH 6.2P2 on RHEL 4, 64B failed

make: Leaving directory `/u01/openssh-6.2p2/openbsd-compat' gcc -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wformat-security -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -fno-builtin-memset -std=gnu99 -I. -I. -DSSHDIR=\"/usr/local/etc\" - D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\"... (0 Replies)
Discussion started by: scao
0 Replies

2. Solaris

Wrong ELF data format: ELFDATA2MSB at /usr/perl5/5.8.4/lib/i86pc-solaris-64int/DynaLoader.pm

We are trying to install our project on solaris 10 x86 machine. we are getting the following error. Can't load '/u01/apps/WatchMark/FlexPM//R39FOA1/sw/perl/lib/auto/DBI/DBI.so' for module DBI: ld.so.1: perl: fatal: /u01/apps/WatchMark/FlexPM//R39FOA1/sw/perl/lib/auto/DBI/DBI.so: wrong ELF data... (3 Replies)
Discussion started by: Jagandadi
3 Replies

3. Solaris

Cygwin X Server error: xdmcp fatal error session failed session 23 failed for display

Hi, i got the following error when i tried to access the cygwin x server from a windows XP PC. "xdmcp fatal error session failed session 23 failed for display" Alternatively, when i tried to access the same Cygwin X Server from another windows XP PC which is on a different LAN... (3 Replies)
Discussion started by: HarishKumarM
3 Replies

4. Red Hat

Authentication failed !

Hey since this morning I(nonrrot user) am not able to log into my system with my username. I am using redhat linux kernel release 2.6.9-5.ELsmp. I aslo found the folowing output for chkconfig command: # chkconfig --list|grep ldap ldap 0: off 1: off 2: off 3: off 4: off 5: off... (5 Replies)
Discussion started by: ashok.g
5 Replies

5. Ubuntu

Re Installing windows XP after installing KUBUNTU

Hi I have dual operating system i.e Win XP and KUBUNTU. Now my windows XP is corrupted and i want to reinstall Win XP. So i just want to know Shall i have to reinstall Linux also or i can only reinstall win xp without affecting linux installation. Thanks Sarbjit (3 Replies)
Discussion started by: sarbjit
3 Replies

6. AIX

SFTP Failed---Request for subsystem 'sftp' failed on channel 0

Hi, While I am trying SFTP my machine to another unix machine , it was working fine till 10 min back. But now i am getting the below error "Request for subsystem 'sftp' failed on channel 0" Could you please someone help me to solve or analyise the root cause... Cheers:b:, Mahiban (0 Replies)
Discussion started by: mahiban
0 Replies

7. Linux

Installing Firefox and now ended up installing latest glibc

Hi all, I wanted to install the latest version of firefox 2 but it seems when I attempt to install it, it seems to be saying it is looking for c libraries version 2.3? I believe I currently have an older version of the c libraries. I am currently running Sun's JDS Linux 2003. My Mozilla web... (1 Reply)
Discussion started by: scriptingmani
1 Replies

8. UNIX for Dummies Questions & Answers

Problems installing perl5

Hi!! I have problems installing perl5 in a Tru64 4.0F enviroment, and i need it to install OpenSSL and OpenSSH to establis a SFTP... I'm installing perl 5.8.8 but an error occurr during make test, i ran ./perl harness and the result is the problem is on op/filetest.t I didn't know what to... (0 Replies)
Discussion started by: irasela
0 Replies

9. Shell Programming and Scripting

sh script to traul through /usr/lib/perl5 ...

Hey, Im trying to create a script to create a dir-tree of pod converted to html. so far this is the script: #!/bin/sh cd /usr/lib/perl5 for d in ./* ; do # is it a dir? if ; then # yes! get the basename cd $d ; dir=`basename $d` for f in ./* ; do ... (1 Reply)
Discussion started by: emcb
1 Replies

10. UNIX for Advanced & Expert Users

one question of perl5

I'm a chinese.I want to change the number $103,456 to chinese >" ʰǪʰ½" user perl5! > That always talk me it have errors" >syntax error at uper line 25, near "If" >syntax error at uper line 29, near "$chg(" >Execution of uper aborted due to compilation errors." >it's seem that it... (1 Reply)
Discussion started by: ybz3721
1 Replies

Featured Tech Videos