Hola,

On Wed, Dec 02, 1998 at 07:38:29PM -0600, Jos� Paulo Zu�iga Vargas wrote:

> Estaba yo tratando de compilar el kernel, que baje de la UCR y me le� todo
> el README, ya corr� el mrproper y todo parec�a ir muy bien, pero vino lo
     ^^^^^^

 Uh...

 $ find -name \*README\* | grep config
 ./scripts/README.Menuconfig

 [...]
 NOTICE:  lxdialog requires the ncurses libraries to compile.  If you
          don't already have ncurses you really should get it.
 [...]

> inesperado. No me corri� el menuconfig, me da un error bien raro �?
> Algo as�:
> 
> In file included from lxdialog.c:22:
> dialog.h:29: curses.h: No such file or directory

 $ zgrep curses.h /usr/local/debian/dists/hamm/Contents-i386.gz
 usr/i486-linuxlibc1/include/curses.h                         oldlibs/ncurses3.0-altdev
 usr/i486-linuxlibc1/include/ncurses.h                        oldlibs/ncurses3.0-altdev
 usr/i486-linuxlibc1/include/slcurses.h                       oldlibs/slang0.99.34-dev
 usr/include/curses.h                                         devel/ncurses3.4-dev
 usr/include/ncurses.h                                        devel/ncurses3.4-dev
 usr/include/slcurses.h                                       devel/slang0.99.38-dev

 $ dpkg -s kernel-package
 Package: kernel-package
 Status: install ok installed
 Priority: optional
 Section: misc
 Installed-Size: 414
 Maintainer: Manoj Srivastava <[EMAIL PROTECTED]>
 Version: 5.13
 Depends: perl (>= 5.002-8), dpkg (>= 1.4), dpkg-dev (>= 1.4.0.9), fileutils (>= 
3.16-4)
 Recommends: libc-dev, gcc, debianutils, make
 Suggests: kernel-source
 Conffiles:
  /etc/kernel-pkg.conf 28320856966555b9d568cf827129bbf8
 Description: Debian Linux kernel package build scripts.
  This package provides the capability to create a debian
  kernel-image package by just running make-kpkg kernel_image in a
  kernel source directory tree.  It can also build the kernel source
  package as a debian file, the kernel headers package. In general, this
  package is very useful if you need to create a custom kernel, if, for
  example, the default kernel does not support some of your hardware, or
  you wish a leaner, meaner kernel.
  .
  If you are running on an intel x86 platform, and you wish to compile a
  custom kernel (why else are you considering this package?), then you may
  need the package bin86 as well.  (This is not required on other platforms).

 $ dpkg --print-avail kernel-source-2.0.35 | egrep '^(Suggests|Depends|Recommends):'
 Depends: binutils | gas
 Recommends: libc-dev, gcc, make
 Suggests: ncurses-dev, tk-dev, kernel-package, bin86
           ^^^^^^^^^^^

 Y como ese paquete es virtual entonces necesitas ncurses3.4-dev o
 libcurses4-dev. El paquete de Manoj es lo maximo para estas cosas... va
 algo asi como:

 $ cd linux
 $ make-kpkg clean
 $ make-kpkg --revision <revision> kernel_image

 donde <revision> podria ser:
 
   <version-del-kernel>.<maquina>.<algun numero>
    |                    |         |
    |                    |         +--> un numero (1, 2, ...) asignado
    |                    |              secuencialmente  
    +- obvio             +- scratchy, servidor, ws, netboot, ...

 $ cd ..
 $ dpkg -i kernel-image-<version>_<revision>_i386.deb

 para que tanto jaleo? Se pueden compilar kernels en una maquina rapida para
 una maquina mas lenta, se pueden compilar kernels para varias maquinas, se
 pueden compilar kernels en forma automatica, se pueden guardar versiones
 viejas de los kernels, se pueden reinstalar, se pueden poner en una cajita
 de zapatos...

 (No creo que sea necesario decir que todo lo anterior -- exceptuando la
 parte del readme -- es especifica a Debian)


                                                Marcelo

Responder a