LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-11-2009, 02:19 AM   #1
gileravxr
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Rep: Reputation: 0
Smile GCC


Hi,

I am using RHEL 4 (2.6.9-82.EL.smp). I am not able to run gcc.
What I did, run the following command #up2date -i gcc
Then i got the following message:


Fetching Obsoletes list for channel: rhel-i386-as-4...

Fetching rpm headers...

Name Version Rel Arch
----------------------------------------------------------------------------------------
gcc 3.4.6 11 i386


Testing package set / solving RPM inter-dependencies...
gcc-3.4.6-11.i386.rpm: Retrieved.
glibc-devel-2.3.4-2.43.i386 Retrieved.
glibc-headers-2.3.4-2.43.i3 Retrieved.
glibc-kernheaders-2.4-9.1.1 Retrieved.
Trying to Resolve Dependencies
An error has occurred:
exceptions.TypeError
See /var/log/up2date for more information


I am not sure wether my up2date -i gcc is successful. Kindly assist, thanks.
 
Old 07-11-2009, 02:23 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
did you read the error you pasted in here? "See /var/log/up2date for more information"
 
Old 07-11-2009, 02:38 AM   #3
gileravxr
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Smile gcc

Ok. I already run #cat /var/log/up2date. Please guide me to translate ..

[Sat Jul 11 12:47:19 2009] up2date updating login info
[Sat Jul 11 12:47:19 2009] up2date logging into up2date server
[Sat Jul 11 12:47:21 2009] up2date successfully retrieved authentication token from up2date server
[Sat Jul 11 12:47:21 2009] up2date availablePackageList from network
[Sat Jul 11 12:48:14 2009] up2date solving dep for: ['glibc-devel']
[Sat Jul 11 12:48:19 2009] up2date solving dep for: ['glibc-headers', 'glibc-headers']
[Sat Jul 11 12:48:25 2009] up2date solving dep for: ['kernel-headers', 'kernel-headers']
[Sat Jul 11 12:48:33 2009] up2date installing packages: ['gcc-3.4.6-11', 'glibc-devel-2.3.4-2.43', 'glibc-headers-2.3.4-2.43', 'glibc-kernheaders-2.4-9.1.103.EL']
[Sat Jul 11 12:48:41 2009] up2date allAvailablePackageList from network
[Sat Jul 11 12:49:28 2009] up2date File "/usr/sbin/up2date", line 1315, in ?
sys.exit(main() or 0)
File "/usr/sbin/up2date", line 816, in main
fullUpdate, dryRun=options.dry_run))
File "/usr/sbin/up2date", line 1163, in batchRun
batch.run()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 99, in run
self.__installPackages()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 258, in __installPackages
self.kernelsToInstall = up2date.installPackages(self.packagesToInstall, self.rpmCallback)
File "/usr/share/rhn/up2date_client/up2date.py", line 867, in installPackages
runTransaction(ts, added, removed,rpmCallback, rollbacktrans = rollbacktrans)
File "/usr/share/rhn/up2date_client/up2date.py", line 728, in runTransaction
(ts, deps, added) = solve_deps(ts, deps, added)
File "/usr/share/rhn/up2date_client/up2date.py", line 673, in solve_deps
if pkg[:4] not in final_pkg_set:

[Sat Jul 11 12:53:34 2009] up2date updating login info
[Sat Jul 11 12:53:34 2009] up2date logging into up2date server
[Sat Jul 11 12:53:39 2009] up2date successfully retrieved authentication token from up2date server
[Sat Jul 11 12:53:39 2009] up2date availablePackageList from network
[Sat Jul 11 12:54:09 2009] up2date solving dep for: ['glibc-devel']
[Sat Jul 11 12:54:24 2009] up2date solving dep for: ['glibc-headers', 'glibc-headers']
[Sat Jul 11 12:54:30 2009] up2date solving dep for: ['kernel-headers', 'kernel-headers']
[Sat Jul 11 12:54:38 2009] up2date installing packages: ['gcc-3.4.6-11', 'glibc-devel-2.3.4-2.43', 'glibc-headers-2.3.4-2.43', 'glibc-kernheaders-2.4-9.1.103.EL']
[Sat Jul 11 12:54:45 2009] up2date allAvailablePackageList from network
[Sat Jul 11 12:55:05 2009] up2date File "/usr/sbin/up2date", line 1315, in ?
sys.exit(main() or 0)
File "/usr/sbin/up2date", line 816, in main
fullUpdate, dryRun=options.dry_run))
File "/usr/sbin/up2date", line 1163, in batchRun
batch.run()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 99, in run
self.__installPackages()
File "/usr/share/rhn/up2date_client/up2dateBatch.py", line 258, in __installPackages
self.kernelsToInstall = up2date.installPackages(self.packagesToInstall, self.rpmCallback)
File "/usr/share/rhn/up2date_client/up2date.py", line 867, in installPackages
runTransaction(ts, added, removed,rpmCallback, rollbacktrans = rollbacktrans)
File "/usr/share/rhn/up2date_client/up2date.py", line 728, in runTransaction
(ts, deps, added) = solve_deps(ts, deps, added)
File "/usr/share/rhn/up2date_client/up2date.py", line 673, in solve_deps
if pkg[:4] not in final_pkg_set:


Please guide me to translate ..
 
Old 07-11-2009, 02:40 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
He did just that in a duplicate post in the Newbie section.

Gileravxr, please don't double post. It looks like you noticed that Linux-Software was a better location for your post. If that ever happens, please click on `Report' and request that your post be moved.
 
Old 07-11-2009, 04:10 AM   #5
gileravxr
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Thumbs down

Hi,

I already try to manually copy all related/depencies gcc rpm file.
However, it cannot work. Can you recommend other step? Kindly assist, thanks.
 
Old 07-11-2009, 04:28 AM   #6
gileravxr
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Smile

Hi,

Fyi, i got some warning message after i run #up2date -i gcc
The message is:


warning: package gcc = 3.4.6-11 was already added, replacing with gcc <= 3.4.6-11


Please recommend me the next step ... thanks..
 
Old 07-11-2009, 08:15 AM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
you sure you don't have it already?
 
Old 07-11-2009, 08:25 PM   #8
gileravxr
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Smile

Hi,

should i restart the RHEL 4 box?
 
Old 07-11-2009, 09:09 PM   #9
gileravxr
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Smile

Hi,

I run #gcc --version
bash: gcc: command not found

Kindly assist, thanks.
 
Old 07-11-2009, 10:38 PM   #10
gileravxr
LQ Newbie
 
Registered: Jul 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Smile gcc

Ok. Now I am installing manual with gcc-4.4.0.tar.gz
then i go into /opt/gcc-4.4.0
#./configure


checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-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 gcc... no
checking for cc... no
checking for cc... no
checking for cl... no

then i paste together the config.log


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = redhat4
uname -m = i686
uname -r = 2.6.9-82.ELsmp
uname -s = Linux
uname -v = #1 SMP Wed Feb 25 12:32:37 EST 2009

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /root/bin
PATH: /usr/libexec


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1563: checking build system type
configure:1581: result: i686-pc-linux-gnu
configure:1616: checking host system type
configure:1630: result: i686-pc-linux-gnu
configure:1638: checking target system type
configure:1652: result: i686-pc-linux-gnu
configure:1696: checking for a BSD-compatible install
configure:1762: result: /usr/bin/install -c
configure:1773: checking whether ln works
configure:1795: result: yes
configure:1799: checking whether ln -s works
configure:1803: result: yes
configure:3002: checking for gcc
configure:3031: result: no
configure:3082: checking for cc
configure:3111: result: no
configure:3124: checking for cc
configure:3170: result: no
configure:3223: checking for cl
configure:3252: result: no
configure:3265: error: in `/opt/gcc-4.4.0':
configure:3268: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_target=i686-pc-linux-gnu
ac_cv_target_alias=i686-pc-linux-gnu
acx_cv_prog_LN=ln

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET=''
BISON=''
CC=''
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET=''
CFLAGS=''
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT=''
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET=''
GNATBIND=''
GNATMAKE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET=''
OBJCOPY=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SHELL='/bin/sh'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='./configure'
WINDMC=''
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_GNATBIND=''
ac_ct_GNATMAKE=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_configargs=''
build_configdirs='build-libiberty build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_noncanonical='i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_tooldir=''
build_vendor='pc'
clooginc=''
clooglibs=''
config_shell='/bin/sh'
configdirs='intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr ppl cloog libiconv texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools'
datadir='${prefix}/share'
datarootdir=''
do_compare=''
docdir=''
exec_prefix='NONE'
gmpinc=''
gmplibs=''
host='i686-pc-linux-gnu'
host_alias=''
host_configargs=''
host_cpu='i686'
host_noncanonical='i686-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='host-i686-pc-linux-gnu'
host_vendor='pc'
htmldir=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
pdfdir=''
pplinc=''
ppllibs=''
prefix='NONE'
program_transform_name='s,y,y,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_configargs=''
target_cpu='i686'
target_noncanonical='i686-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='i686-pc-linux-gnu'
target_vendor='pc'
tooldir=''

## ------------- ##
## Output files. ##
## ------------- ##

alphaieee_frag=''
host_makefile_frag='config/mh-x86omitfp'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 1
 
Old 07-11-2009, 11:32 PM   #11
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
maybe up2date up2date?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile error, 'H5G_obj_t' does not name a type, is gcc 4.3 incompatible with gcc 3 ? samrat_rao Linux - Software 5 03-03-2009 03:28 PM
yum install gcc doesn't set the lastest gcc ver 4.3.x kim,jw Linux - Newbie 3 12-23-2008 12:51 AM
pkg-get install gcc ERROR: gcc unrecognized Raidmax Solaris / OpenSolaris 10 08-30-2007 01:51 PM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 03:13 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 01:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration