need to get LTP installed - edit makefile install cc gcc no KEY for RPM , however

Posted on 2007-04-02
Last Modified: 2013-12-15
I just want to install and use LTP / DOTS (  when I run make, I get a message that I dont have cc...

[root@acpsvsvr05 ltp-full-20070228]# make
make[1]: Entering directory `/ltp-full-20070228/lib'
cc -Wall  -I../include  -Wall    -c -o dataascii.o dataascii.c
make[1]: cc: Command not found
make[1]: *** [dataascii.o] Error 127
make[1]: Leaving directory `/ltp-full-20070228/lib'
make: *** [libltp.a] Error 2
[root@acpsvsvr05 ltp-full-20070228]# which cc
/usr/bin/which: no cc in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/opt/avaya/1xp/weblm/tomcat5/_jvm/bin:/root/bin)
[root@acpsvsvr05 ltp-full-20070228]#

I have this, I think it's c++ ??  ...
[root@acpsvsvr05 ltp-full-20070228]# locate cc1

I tried to edit makefile with cc1 to get LTP installed but no luck, it is running with different options cc1 doesnt have...

[root@acpsvsvr05 ltp-full-20070228]# cat Makefile
# To cross compile, override one or more of CC, AR, CROSS_CFLAGS,
# LOADLIBES, LDFLAGS, & LIB_DIR and be sure to always build from the top level.
# To override them from the make commandline, do something like this:
# $ CROSS_COMPILER=/opt/cegl-1.4/hardhat/devkit/ppc/405/bin/powerpc-linux-
# $ make \
#     CROSS_CFLAGS="-mcpu=403 -D__PPC405__" \
#     LDFLAGS=-static \
#     LOADLIBES="-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc"
# Alternately, to override them by editing this file, uncomment the
# following lines:
#   CROSS_COMPILER=/opt/ppc64/powerpc64-linux/bin/powerpc64-linux-
#   CROSS_COMPILER=/usr/libexec/gcc/i386-redhat-linux/3.4.3/cc1
#   CROSS_CFLAGS= -mpowerpc64
#   LDFLAGS=-static
#   LOADLIBES=-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc
#   LIB_DIR=/lib64
# Or, you can save all your settings into the local '' file.
# Just use the same syntax as above for the Makefile.
# uClinux Users: make sure you add -DUCLINUX to your CFLAGS
# Note: If you override a variable from the commandline all
# assignments to it in the Makefiles will be ignored. To set it both
# in the commandline and in the Makefiles use a dummy variable like in


Do I have cc?  How can I get it and install it?  I tried some of these but dont have a KEY?
[root@acpsvsvr05 /]# ls *rpm
compat-gcc-32-3.2.3-47.3.src.rpm  compat-glibc-2.3.2-95.30.src.rpm  gcc4-4.0.0-0.14.EL4.src.rpm

[root@acpsvsvr05 /]# rpm -i gcc4-4.0.0-0.14.EL4.src.rpm
warning: gcc4-4.0.0-0.14.EL4.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
[root@acpsvsvr05 /]#

 Just help me get the LTP installed whatever is the easiest way!

[root@acpsvsvr05 /]# cat /etc/issue
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
Kernel \r on an \m

[root@acpsvsvr05 /]# uname -a
Linux 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux
Question by:sillygoose
  • 3
  • 2
LVL 24

Expert Comment

ID: 18840021
> Do I have cc?  How can I get it and install it?  I tried some of these but dont have a KEY?
> [root@acpsvsvr05 /]# ls *rpm
> compat-gcc-32-3.2.3-47.3.src.rpm  compat-glibc-2.3.2-95.30.src.rpm  gcc4-4.0.0-0.14.EL4.src.rpm

You need gcc, the above packages are src.rpm they are not the binary rpms.  Use up2date if possible, that's the easier way:

# up2date -i gcc

then try to make again.

Author Comment

ID: 18851237
I tried it, Apparently I don't have a subscription # for redhat.

Is there another way?

Author Comment

ID: 18853764
Ahh, I got the CDs so I think I can just add it
LVL 24

Accepted Solution

slyong earned 500 total points
ID: 18854903
Sorry for the late reply.  Seems that you can get the RPMs from the CD, if you are still having problem, leave me a message.

Author Comment

ID: 18858846
sweet.  it's working now

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now