Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
Hi friends ! i am new to kernel compilation. i downloaded linux-2.6.19.1 kernel source from kernel.org, untar it in /home/linux folder. it created linux-2.6.19.1 folder. i executed 'make mrproper' command. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Posts
    45

    Question kernel compilation: stuck in second step. make menuconfig.


    Hi friends !

    i am new to kernel compilation. i downloaded linux-2.6.19.1 kernel source from kernel.org, untar it in /home/linux folder. it created linux-2.6.19.1 folder. i executed 'make mrproper' command. output is
    Code:
    CLEAN   scripts/basic
    CLEAN   include/config
    when i executed 'make menuconfig' command, it threw a lot of error/warning messages.
    Code:
    HOSTCC  scripts/basic/fixdep
    HOSTCC  scripts/basic/docproc
    HOSTCC  scripts/kconfig/conf.o
    HOSTCC  scripts/kconfig/kxgettext.o
    HOSTCC  scripts/kconfig/lxdialog/checklist.o
    In file included from scripts/kconfig/lxdialog/checklist.c:24:
    scripts/kconfig/lxdialog/dialog.h:32:20: error: curses.h: No such file or directory
    In file included from scripts/kconfig/lxdialog/checklist.c:24:
    scripts/kconfig/lxdialog/dialog.h:97: error: expected specifier-qualifier-list before âchtypeâ
    scripts/kconfig/lxdialog/dialog.h:187: error: expected â)â before â*â token
    and a lot more...
    on executing 'make xconfig'
    Code:
    CHECK   qt
    *
    * Unable to find the QT installation. Please make sure that
    * the QT development package is correctly installed and
    * either install pkg-config or set the QTDIR environment
    * variable to the correct location.
    *
    sed < scripts/kconfig/lkc_proto.h > scripts/kconfig/lkc_defs.h 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
    HOSTCC  scripts/kconfig/kconfig_load.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/lex.zconf.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC  scripts/kconfig/zconf.tab.o
    make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck', needed by `scripts/kconfig/qconf.o'.  Stop.
    make: *** [xconfig] Error 2
    what am i missing? please advise.
    i am using Kubuntu 6.10 (edgy).

    TIA
    sandra

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    It looks like xconfig isn't working as you don't have qt installed. I'm not so sure about the menuconfig error, but my guess would be that you don't have ncurses installed either.

    You should look up both of these with your package manager, and see if you have them installed.
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    in terminal/konsole, execute these
    Code:
    sudo apt-get update
    sudo apt-get install build-essential fakeroot  ---# gcc is pulled in by build-essential 
    sudo apt-get install libncurses5-dev           -----# for make menuconfig
    sudo apt-get install libqt3-mt-dev               -----# for make xconfig



    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Jun 2006
    Posts
    45
    hi !

    thanx a lot devils_casper and smolloy. i installed libncurses5-dev and libqt3-mt-dev. both commands worked

    i executed 'make xconfig' command, followed other steps. but now problem is, i couldn't find 'mkinitrd' command.
    error message is
    Code:
    sandra@molloy:/boot: $ sudo mkinitrd /boot/initrd-2.6.19.
    Password:
    sudo: mkinitrd: command not found
    what am i missing now??

    TIA
    Sandra

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    hi Sandra !!

    you have to install kernel-package.
    Code:
    sudo apt-get install kernel-package
    navigate to boot folder of your arch and execute this code to create initrd image.
    Code:
    sudo mkinitramfs -o initrd-<version>.img <version>
    image created, follow next steps !



    Good Luck !
    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    It could also be because mkinitrd is not in the path of your regular user. Try using "su -" to become root first, and then do the mkinitrd command.




    Sandra: It looks like we share the same surname -- Molloy -- is that true?
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  7. #7
    Just Joined!
    Join Date
    Jun 2006
    Posts
    45
    hi devils_casper !!
    it worked and i successfully compiled kernel. million thanx.

    Quote Originally Posted by smolloy
    It could also be because mkinitrd is not in the path of your regular user. Try using "su -" to become root first, and then do the mkinitrd command.
    hi smolloy !
    i checked /usr/sbin folder. mkinitrd is not there. i think Kubuntu does not have this command. please correct me if i am wrong.

    Quote Originally Posted by smolloy
    Sandra: It looks like we share the same surname -- Molloy -- is that true?
    yes ! i am Sandra Molloy.

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    hi Sandra Molloy !

    mkinitrd command is not available in Kubuntu. i never tried to install it in Kubuntu coz mkinitramfs always worked for me.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Jan 2007
    Posts
    9

    kernels?

    i am a newbie installed fedora5 but after a couple of days d hidden menu appeared automatically i suppose the grub configure file got deleted
    so how to boot now its not detecting the kernel file wen i tried the command...
    pl help

  10. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    hi kanishk !

    i am not getting it. what is the hiddenmenu? what does your machine display at startup? i think its a GRUB problem not kernel's.






    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •