sillygoose
asked on
need to get LTP installed - edit makefile install cc gcc no KEY for RPM , however
I just want to install and use LTP / DOTS (http://ltp.sourceforge.net/). 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/k erberos/bi n:/usr/loc al/sbin:/u sr/local/b in:/sbin:/ bin:/usr/s bin:/usr/b in:/usr/X1 1R6/bin:/o pt/avaya/1 xp/weblm/t omcat5/_jv m/bin:/roo t/bin)
[root@acpsvsvr05 ltp-full-20070228]#
I have this, I think it's c++ ?? ...
[root@acpsvsvr05 ltp-full-20070228]# locate cc1
/usr/libexec/gcc/i386-redh at-linux/3 .4.3/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/pp c/405/bin/ powerpc-li nux-
# $ 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/libexe c/gcc/i386 -redhat-li nux/3.4.3/ cc1
# CROSS_CFLAGS= -mpowerpc64
# LDFLAGS=-static
# LOADLIBES=-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc
# LIB_DIR=/lib64
# export LOADLIBES LIB_DIR
#
# Or, you can save all your settings into the local 'config.mk' 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
# CFLAGS
ifdef CROSS_COMPILE
CROSS_COMPILER = $(CROSS_COMPILE)
endif
ifdef CROSS_COMPILER
CC=$(CROSS_COMPILER)gcc
AR=$(CROSS_COMPILER)ar
endif
...
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.s rc.rpm compat-glibc-2.3.2-95.30.s rc.rpm gcc4-4.0.0-0.14.EL4.src.rp m
[root@acpsvsvr05 /]# rpm -i gcc4-4.0.0-0.14.EL4.src.rp m
warning: gcc4-4.0.0-0.14.EL4.src.rp m: 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 acpsvsvr05.blahblahblah.co m 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux
[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/k
[root@acpsvsvr05 ltp-full-20070228]#
I have this, I think it's c++ ?? ...
[root@acpsvsvr05 ltp-full-20070228]# locate cc1
/usr/libexec/gcc/i386-redh
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
# $ 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/
# CROSS_COMPILER=/usr/libexe
# CROSS_CFLAGS= -mpowerpc64
# LDFLAGS=-static
# LOADLIBES=-lpthread -lc -lresolv -lnss_dns -lnss_files -lm -lc
# LIB_DIR=/lib64
# export LOADLIBES LIB_DIR
#
# Or, you can save all your settings into the local 'config.mk' 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
# CFLAGS
ifdef CROSS_COMPILE
CROSS_COMPILER = $(CROSS_COMPILE)
endif
ifdef CROSS_COMPILER
CC=$(CROSS_COMPILER)gcc
AR=$(CROSS_COMPILER)ar
endif
...
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.s
[root@acpsvsvr05 /]# rpm -i gcc4-4.0.0-0.14.EL4.src.rp
warning: gcc4-4.0.0-0.14.EL4.src.rp
[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 acpsvsvr05.blahblahblah.co
ASKER
I tried it, Apparently I don't have a subscription # for redhat.
Is there another way?
Is there another way?
ASKER
Ahh, I got the CDs so I think I can just add it
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sweet. it's working now
> [root@acpsvsvr05 /]# ls *rpm
> compat-gcc-32-3.2.3-47.3.s
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.