kevin mudrick on Sun, 31 Mar 2002 12:20:48 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Can't compile kernel on Libranet


Mike,

Are you su'ing as root, while logged in as a normal user?  If this is the
case, do an "xhost +localhost" before running su.

However, I don't think you even need to be root for any of the kernel
compilation makes, except modules_install (and copying (b)zImage to your
boot directory.  From the kernel README:

If you install the full sources, put the kernel tarball in a
   directory where you have permissions (eg. your home directory) and
   unpack it:

                gzip -cd linux-2.4.XX.tar.gz | tar xvf -

   Replace "XX" with the version number of the latest kernel.

   Do NOT use the /usr/src/linux area! This area has a (usually
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   incomplete) set of kernel headers that are used by the library header
   files.  They should match the library, and not get messed up by
   whatever the kernel-du-jour happens to be.

Hope this helps,
kevin

> However, "make xconfig" gives me:
>
> root@minas-aran:/usr/src/linux# make xconfig
> rm -f include/asm
> ( cd include ; ln -sf asm-i386 asm)
> make -C scripts kconfig.tk
> make[1]: Entering directory `/usr/src/linux-2.4.16/scripts'
> cat header.tk >> ./kconfig.tk
> ./tkparse < ../arch/i386/config.in >> kconfig.tk
> echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk
> echo "set ARCH \"i386\"" >> kconfig.tk
> cat tail.tk >> kconfig.tk
> chmod 755 kconfig.tk
> make[1]: Leaving directory `/usr/src/linux-2.4.16/scripts'
> wish -f scripts/kconfig.tk
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> Application initialization failed: couldn't connect to display ":0.0"
> Error in startup script: invalid command name "button"
>     while executing
> "button .ref"
>     (file "scripts/kconfig.tk" line 51)
> make: *** [xconfig] Error 1
>
> Why would the connection be refused? "make menuconfig" works, so I could
> use that, but I prefer xconfig.
>
> (and yes, I did this from an xterm in KDE, like I always used to)


-- 
 (kevin mudrick)   (kevin@furhurts.com)   (www.bleachedwhale.com)
  pgp key available at http://www.bleachedwhale.com/kevinGPG.asc

 Despair: It's always darkest just before it goes pitch black.


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug