LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Errors when 'make xconfig' (http://www.linuxquestions.org/questions/linux-general-1/errors-when-make-xconfig-830728/)

Cassanova 09-07-2010 02:56 AM

Errors when 'make xconfig'
 
Hi! I'm building a file server, but before the admins move this to the networking forum' this IS about the kernel.

anyway, I'm building a file server... a very basic thing. not much to it at all.. which is kinda the root of the problem... this is an old Dell (ugh! I know!) Dimension 8300. it's running a 2.6 GHz Celeron (Northwood die, so single-core), with (at the moment) a mere 256 MB of RAM... so I wanted to build a kernel that really minimizes its presence in my minuscule amount of RAM using this guide, I have gotten so far as the actual Kernel configuration. wherein it says to cd to your kernel's directory and use the 'make xconfig' command... but when I do this, it gives me the following error:

Code:

[2:46 What is thy bidding?]/usr/src/linux# make xconfig
  HOSTCXX scripts/kconfig/qconf.o
/bin/sh: g++: command not found
make[1]: *** [scripts/kconfig/qconf.o] Error 127
make: *** [xconfig] Error 2

so I've never compiled my own kernel before, so I haven't a clue what's wrong, or what I need to do

any tips or help is appreciated!!! thank You!

EricTRA 09-07-2010 03:03 AM

Hello,

If this is about the kernel then why did you post it in General? Better go to the forum where you want to post and create a thread in it. Now you'll have to ask the mods to move it to Kernel or Server or whatever is appropriate.

On what distro are you working? Did you install your gcc compiler correctly without errors? What do you get when you type:
Code:

g++
at the console?

Kind regards,

Eric

CincinnatiKid 09-07-2010 10:32 AM

Do you have qt3 installed? It is required for xconfig.

Cassanova 09-07-2010 03:11 PM

Code:

[15:06 What is thy bidding?]~% g++
zsh: command not found: g++

My Guess is that's a problem. If that can be solved, I'll be happy to learn!
As for qt3, I did double check, and found that I do in fact have it.

AlucardZero 09-07-2010 03:28 PM

Install g++ and other development tools (gcc, make, ...).

You didn't mention what distro you're compiling on so we can't tell you how to install them. It is easily searchable however.

Quote:

I haven't a clue what's wrong
For your own good you should learn to read the output of the commands you run. If the error is not obvious then take a guess and Google the message to see if there's any help there. It will save you time and teach you, too. In this case, the error is right under your nose:
Code:

/bin/sh: g++: command not found
Not being able to find a command seems pretty fatal to the process.

knudfl 09-07-2010 04:05 PM

Installing the Fedora g++ :

# yum install gcc-c++

..

EricTRA 09-08-2010 12:01 AM

Quote:

Originally Posted by Cassanova (Post 4090685)
Code:

[15:06 What is thy bidding?]~% g++
zsh: command not found: g++

My Guess is that's a problem. If that can be solved, I'll be happy to learn!
As for qt3, I did double check, and found that I do in fact have it.

Hello,

I imagine you guessed right ;) Can you let us know what distro you are using to compile your kernel?

Kind regards,

Eric

Cassanova 09-08-2010 09:44 PM

Quote:

Can you let us know what distro you are using to compile your kernel?
I'm compiling in Fedora 12 (686) but I'd like to base the compiled kernel on Either Fedora i386 or (preferably) CentOS i386, as this further limits the information being forced on this very old (and slow) processor; thus I think based off of a suggestion from my "parralell" post on Fedora Forum, I will use koji, as I was told that makes it easier to compile in this manner

EricTRA 09-09-2010 12:02 AM

Hello,

We're you able to install the missing packages with yum like knudfl pointed out? And could you compile your kernel this time or are the other errors?

Kind regards,

Eric

Cassanova 09-09-2010 08:53 AM

I'm having a hard time figuring out everything I need. It seems as if there are almost as many ways to go about compiling as there are ppl compiling. the latest error in my 'make xconfig' reads
Quote:

HOSTLD scripts/kconfig/qconf
/usr/bin/ld: cannot find -lXi
collect2: ld returned 1 exit status
make[1]: *** [scripts/kconfig/qconf] Error 1
make: *** [xconfig] Error 2
a cursory Google search turned up very little

thank you all for your patience with me in this process

knudfl 09-09-2010 10:22 AM

Quote:

/usr/bin/ld: cannot find -lXi
The l in lXi means lib.
I.e. /usr/bin/ld is looking for libXi.so .

# 'yum install libXi-devel' will do the trick.

..

theNbomr 09-09-2010 01:53 PM

Or, simply use 'make menuconfig', which provides the same functionality, without the need for GUI libraries; just ncurses.
--- rod.

Cassanova 09-10-2010 12:08 PM

Okay. After much question asking both here and over at Fedora Forum, I've got x config up and running! Thank you all for all of you patience and input. the community willingness to help is one of the main reasons I love Linux so much!!!

EricTRA 09-10-2010 04:09 PM

Hello,

Great you got it fixed. Could you please post the solution that worked for you so future users can take advantage of it too? Also if you consider your question/problem solved then please mark it as such using the Thread Tools.

Kind regards,

Eric

Cassanova 09-14-2010 01:00 PM

**Update**

after installing libXi-devel, xconfig is finally running. Thank you all for your patience


All times are GMT -5. The time now is 10:40 PM.