LinuxQuestions.org
Review your favorite Linux distribution.
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 10-22-2009, 12:21 AM   #1
Isuru Divarathne
LQ Newbie
 
Registered: Oct 2009
Posts: 9

Rep: Reputation: 0
Unhappy Errors installing gcc on RHEL 4


[root@localhost ~]# cd /usr/lib
[root@localhost lib]# find gcc-lib
gcc-lib
gcc-lib/i386-redhat-linux
gcc-lib/i386-redhat-linux/2.96
gcc-lib/i386-redhat-linux/2.96/crtend.o
gcc-lib/i386-redhat-linux/2.96/libgcc_eh.a
gcc-lib/i386-redhat-linux/2.96/crtbegin.o
gcc-lib/i386-redhat-linux/2.96/crtbeginS.o
gcc-lib/i386-redhat-linux/2.96/libgcc.a
gcc-lib/i386-redhat-linux/2.96/crtendS.o


[root@localhost ~]# cd /usr/libexec/
[root@localhost libexec]# find gcc
gcc
gcc/i386-redhat-linux
gcc/i386-redhat-linux/3.4.3
gcc/i386-redhat-linux/3.4.3/cc1
gcc/i386-redhat-linux/3.4.5







[root@localhost ~]# rpm -qa | grep gcc
libgcc-3.4.5-2
compat-libgcc-296-2.96-132.7.2




[root@localhost ~]# rpm -ivh gcc-version.rpm
error: open of gcc-version.rpm failed: No such file or directory


i tried installing libpcap got following results

[root@localhost libpcap-1.0.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 gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
 
Old 10-22-2009, 12:33 AM   #2
bobthebaritone
Member
 
Registered: Aug 2003
Location: Newington, Sydney, Australia
Distribution: Fedora Whitebox 4 Ubuntu
Posts: 40

Rep: Reputation: 15
Why not use YUM to work out the dependencies for you? RPM is still vaulable, but my whitebox system uses YUM.
eg yum info gcc.
 
Old 10-22-2009, 12:37 AM   #3
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by Isuru Divarathne View Post
[root@localhost ~]# cd /usr/lib
[root@localhost lib]# find gcc-lib
gcc-lib
gcc-lib/i386-redhat-linux
gcc-lib/i386-redhat-linux/2.96
gcc-lib/i386-redhat-linux/2.96/crtend.o
gcc-lib/i386-redhat-linux/2.96/libgcc_eh.a
gcc-lib/i386-redhat-linux/2.96/crtbegin.o
gcc-lib/i386-redhat-linux/2.96/crtbeginS.o
gcc-lib/i386-redhat-linux/2.96/libgcc.a
gcc-lib/i386-redhat-linux/2.96/crtendS.o


[root@localhost ~]# cd /usr/libexec/
[root@localhost libexec]# find gcc
gcc
gcc/i386-redhat-linux
gcc/i386-redhat-linux/3.4.3
gcc/i386-redhat-linux/3.4.3/cc1
gcc/i386-redhat-linux/3.4.5







[root@localhost ~]# rpm -qa | grep gcc
libgcc-3.4.5-2
compat-libgcc-296-2.96-132.7.2




[root@localhost ~]# rpm -ivh gcc-version.rpm
error: open of gcc-version.rpm failed: No such file or directory


i tried installing libpcap got following results

[root@localhost libpcap-1.0.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 gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Code:
# rpm -ivh gcc-version.rpm
error: open of gcc-version.rpm failed: No such file or directory
No error message was so informative. The reason that gcc-version.rpm didn't get installed is because it doesn't exist. The magical trick to getting rpm to work is to provide it with the name of an actual file, one that actually exists in reality.

1. Before moving on to step (2), make sure the file you intend to install is present on your computer. One way to do this is to create a directory listing and read the file names in the directory. If one of the names in the directory listing matches the file you intend to install, then it's all right to move on to step 2. Otherwise it is not all right to move on to step 2.

2. # rpm -ivh (filename)

3. You do understand, don't you, that when I type "rpm (filename)", that my typing (filename) is just a make-believe example file name, and you're supposed to replace (filename) with an actual file name that is located on your computer, in your house. Yes?

4. If this is all too overwhelming, try starting again at step (1) above. This time read more slowly.
 
Old 10-22-2009, 01:23 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,923

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
Yum is not installed by default , Redhat EL 4.
'up2date' is used to get packages from Redhat,
if you remembered to sign up .. and pay.

The system gcc is 3.4.x , the latest update is
3.4.6-11 ( gcc-3.4.6-11.i386.rpm )
gcc4 = gcc4-4.1.2-44.EL4.i386.rpm is available too.
( You can have as many compilers, as you want.)
Example link for these packages :
http://mirror.centos.org/centos/4.8/...6/CentOS/RPMS/

If you don't have a Redhat account , and not wanting
one, why not install the free version of Redhat EL =
CentOS ...
.....
.....
The command # 'rpm -ivh <package>' is a one time /
first time only for that package.
The versatile command is 'rpm -Uvh <package>' .
Please read 'man rpm' to see why.
.....

Last edited by knudfl; 10-22-2009 at 01:28 AM.
 
  


Reply

Tags
el4


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
Installing vmware on Open Suse 11.1 - Requires original gcc 4.32 - gcc now 4.3 cyclops.matrix Linux - Software 2 08-31-2009 02:52 PM
Ghostscript errors after upgrading from RHEL AS 4 to RHEL 5.1. mightyscotchpine Linux - Server 0 04-03-2008 07:38 PM
Installing Gcc Compiler on RHEL 4 anilhyd Linux - Software 1 11-01-2007 04:45 PM
GCC-4.0.3 - Pass 1 failed on RHEL 4 shailesh_mishra Linux From Scratch 4 05-31-2007 11:44 PM
Installing gcc 2.95 in RHEL 3 airizar Red Hat 2 09-14-2005 05:55 PM


All times are GMT -5. The time now is 09:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration