LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-19-2009, 09:43 AM   #1
Junior Learner
LQ Newbie
 
Registered: Jul 2009
Posts: 11

Rep: Reputation: 0
make, gcc & yum related problems


Good Day All:

I'm totally new and using CentOS 5.3 Final.

I'm logging in as root. In the attempt to try the below commands:
1. make config
2. make menuconfig
3. make xconfig


I got the error of:
make: *** No rule to make target 'xconfig' or 'menuconfig' or 'xconfig' respectively.

I had been searching through net for all the suggested solutions which didn't work.

Initially found the linux was missing from the /usr/src
I "successfully" install the file and had the linux pointed to linux-2.6.30.1

If I run any of the above commands at the root, I still getting the same error message but if the commands were run on the /usr/src/linux, I got a new error message of:
HOSTCC scripts/basic/fixdep
/bin/sh: gcc command not found
make[1]: *** [scripts/basic/fixdep] Error 127
make: *** [scripts/basic] Error 2


I was then being asked to install the gcc using the below:

1. #system-config-packages &
result: it fails with error Unable to retrieve software information

2. # rpm -ivh gcc* to install from CD
result: can't perform it as I don't have CD reader. The CentOS was being installed using an external CD reader, now I no longer have it.

3. #yum install gcc gcc-c++ autoconf automake
result: failed as it Cannot find a valid baseurl for repo: contrib
This I believe could be due to CentOS system is not connecting to network. I got another laptop is able to connect to internet. If this is a workable solution, please lead me step-by-step where to download the file and how to unzip and install.

I then was too believe somehow my CentOS yum is not working. I tried all the solutions I was able to find in the net but to no avail.


May someone kindly give me a proper step-by-step workable solution to allow me successfully run the above three commands.

Your direct and clear instructions to resolve this problem is very much appreciated. tx!

p/s: I had been spending days and countless hours to resolve this.
 
Old 07-22-2009, 04:28 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Do you have a working internet connection?
What is the output of 'yum repolist' ?

About the kernel, try this guide:
http://wiki.centos.org/HowTos/Custom_Kernel
 
Old 07-24-2009, 05:07 PM   #3
Junior Learner
LQ Newbie
 
Registered: Jul 2009
Posts: 11

Original Poster
Rep: Reputation: 0
many thanks for the input.

the "#yum repolist" returns me a very long list of errors.

by using the "#rpm -q kernel-source", it returns "package kernel-source is not installed" error.

I tried "#yum install kernel-devel", it returns another long list of errors.

Any possibilities can send me a link to install the "package kernel-source" in details.

Thanks.
 
Old 07-24-2009, 05:09 PM   #4
Junior Learner
LQ Newbie
 
Registered: Jul 2009
Posts: 11

Original Poster
Rep: Reputation: 0
ok...I'm struggling to work on the link given. will update you. many thanks!
 
Old 07-24-2009, 06:49 PM   #5
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
I think it may help if you list some (if not all) of the output of the yum command showing the errors.

What type of internet connection do you have?
 
Old 07-25-2009, 03:27 PM   #6
Junior Learner
LQ Newbie
 
Registered: Jul 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Good Day mjmwired

Many thanks for your reply. Problem resolved by installing it from the kernel-2.6.18-128.2.1.el5.src.rpm

Again thanks a lot!
 
  


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
gcc, make, yum problems. presarioch Programming 3 06-19-2008 11:20 PM
newbie questioning about gcc, make, yum...... presarioch Linux - Newbie 9 06-19-2008 08:08 PM
Problem with new installation of SUSE, gcc & make not found abefroman SUSE / openSUSE 5 01-18-2008 12:36 PM
GCC & Make dependencies Chev Red Hat 1 07-26-2006 04:18 PM
yum & gcc => dependency problems ltorres321 Linux - Newbie 1 01-30-2006 11:29 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 02:10 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
Open Source Consulting | Domain Registration