LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-07-2006, 04:08 AM   #1
AcidSnake
LQ Newbie
 
Registered: Sep 2006
Location: Inside the matrix
Distribution: Red Hat AS 4
Posts: 8

Rep: Reputation: 0
Problems installing GCC


Well Hi everyone,
this is my first post and I'm also a newbie to linux...
And here's my first snag:
While installing oracle 10g R1 It warned me that I didn't have GCC...
So I downloaded GCC 4.0.2
But when configuring it said that cc and gcc couldn't be found...
I managed to fix that but now it says:

line xxx: rm: command not found
line xxx: sed: command not found

What does this mean?
Do I need even more programs just to enable the configuration of GCC?
I'm Red Hat 4 AS by the way...

Any help will be appreciated
 
Old 09-07-2006, 04:30 AM   #2
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Red Hat AS CD has GCC software in it.
Just get the CD and install the RPM.

Yes GCC needs other packages as well.But hopefully they will be installed in your system.

If you have a gui type the command

redhat-config-packages


This will give a GUI interface , here select and install GCC.


...Zulfi
 
Old 09-07-2006, 04:32 AM   #3
erikvdh
LQ Newbie
 
Registered: Jul 2006
Posts: 8

Rep: Reputation: 0
rm is a command to delete a file/directory (remove)
sed is a stream editor

usually they are already installed
 
Old 09-07-2006, 04:35 AM   #4
AcidSnake
LQ Newbie
 
Registered: Sep 2006
Location: Inside the matrix
Distribution: Red Hat AS 4
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks I'll try searching the original cd's...

I assume the redhat-config-packages tells me which cd to insert as well?

I'll be back later...
 
Old 09-07-2006, 04:38 AM   #5
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Yes.It does.

Also ...
Welcome to LQ
:->
 
Old 09-07-2006, 05:00 AM   #6
AcidSnake
LQ Newbie
 
Registered: Sep 2006
Location: Inside the matrix
Distribution: Red Hat AS 4
Posts: 8

Original Poster
Rep: Reputation: 0
I think my dvdrom drive is a bit crazy...
It won't recognise the cd's I have to insert later...
And now it won't eject the cd...
Is there any way to make it eject manually even though linux doesn't believe the cd is inserted?

Not a promising start, but hey, I didn't expect a bed of roses
 
Old 09-07-2006, 05:07 AM   #7
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
eject

- This will eject the cd.Or should.

eject -t
- This will close the CD tray.

But if the cd-drive has a bit of problem try this [as root user]

insmod cdrom
kudzu

After that see if the CD`s are getting detected properly .
 
Old 09-07-2006, 05:45 AM   #8
AcidSnake
LQ Newbie
 
Registered: Sep 2006
Location: Inside the matrix
Distribution: Red Hat AS 4
Posts: 8

Original Poster
Rep: Reputation: 0
Haha...eject?
It really was that simple thanks...
Running insmod cdrom returns a 'no such file or directory'
The kudzu does something...no idea what though
 
Old 09-07-2006, 06:03 AM   #9
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
'kudzu' is a hardware Add/Remove wizard used in Redhat.

It updates the file "/etc/sysconfig/hwconf" with its findings.
You can check the file to see all devices detected by Kudzu and configured.



If 'insmod' fails then the cdrom module will not be available.
That should not be a problem.
 
Old 09-07-2006, 07:38 AM   #10
AcidSnake
LQ Newbie
 
Registered: Sep 2006
Location: Inside the matrix
Distribution: Red Hat AS 4
Posts: 8

Original Poster
Rep: Reputation: 0
kudzu doesn't launch anything apparently...
Now, no disc I insert is recognised anymore...

Should I just reboot?
What should the insmod do?

Are my questions typical newbie questions?
 
Old 09-07-2006, 07:51 AM   #11
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Ok open the file /etc/sysconfig/hwconf and check if the CDdrive has been detected by kudzu.

If "eject" command is working then the CD-drive has been detected but is finding some in reading.

Put a CD and try to mount the CD manually and check the contents.
Does it fail in mount?

The command prompt is the best place if you want to go for tracing the issue.

Does rebooting the PC help?

As for insmod the cdrom.o file may not be available.
That may not be an issue.

As for your questions,you are trying something and learnin on the run which is cool.
 
Old 09-07-2006, 08:03 AM   #12
AcidSnake
LQ Newbie
 
Registered: Sep 2006
Location: Inside the matrix
Distribution: Red Hat AS 4
Posts: 8

Original Poster
Rep: Reputation: 0
It goes like this:
I insert the first distro disk

Everything goes fine, I select the components containing gcc

It prompts me to insert the third disk
Which I do...
The disk goes in, the busy light of the dvdrom drive starts to flash and stops (as usual)

When giving the OK another prompt tells me it can't read from the disk...
The disk is also invisible from the file browser
Also it's now impossible to eject the disk via the traditional (press the button) mode...

Any thoughts?

Learning on the run is cool...
But I wouldn't be learning much if it weren't for your assistance...
 
Old 09-07-2006, 08:10 AM   #13
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
Can you mount the CD from command prompt and see if you can view the contents.

Insert the cd, go for a

mount /dev/cdrom
[or whatever disk it is]

Then cd to /mnt/cdrom and check if you can view the contents.

If thats possible then put in the third CD and install gcc rpm .


But first try to mount the cd in command prompt and check the contents.If cd got mounted automatically type

umount cdrom

to umount it and then mount again.
 
Old 09-07-2006, 08:34 AM   #14
AcidSnake
LQ Newbie
 
Registered: Sep 2006
Location: Inside the matrix
Distribution: Red Hat AS 4
Posts: 8

Original Poster
Rep: Reputation: 0
Nope, no use...
It doesn't seem to find the cdrom...

New method then:
Install the rpm manually
Without the prompts and such...

What do I have to install?
All rpm's with gcc in the title?
 
Old 09-07-2006, 09:05 AM   #15
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
If all other packages are installed then installing GCC will be easy.
Or a bit tedious if packages are not installed.

You will have to start with GCC libraries.
Hope they are installed .

So to start with you try to install the rpms starting with gcc .


The rpm install command is

rpm -ivh rpmname

Hope it gets installed without throwing any dependency.
[Note: If there are more than one gcc rpm with the same name
then install the one which corresponds with your architecture
(i386,i686,etc) ].
 
  


Reply



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
problems on installing gcc cn_gelare Linux - Newbie 5 07-14-2006 02:50 PM
Problems installing gcc HCLogo Mandriva 6 04-24-2004 03:48 PM
Problems with installing GCC TransAmJugo Linux - Software 2 08-04-2003 11:34 PM
Problems with installing GCC TransAmJugo Linux - General 1 07-31-2003 10:43 PM
Problems with installing GCC TransAmJugo Linux - Newbie 2 07-31-2003 02:37 PM

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

All times are GMT -5. The time now is 04:54 PM.

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
Open Source Consulting | Domain Registration