no rule to make target


Results 1 to 12 of 12

Thread: no rule to make target

  1. #1
    Join Date
    Apr 2003
    Posts
    97

    no rule to make target

    I am trying to install Madwifi and had the dependency error so I am manually installing as per directions at
    http://www.linuxquestions.org/questi...hreadid=163192
    When I got to run make && make install I get
    no rule to make target 'module' stop
    I searched around and it said I need to recompile my kernel first :
    If you've just installed a RedHat kernel package, have all of the correct symlinks, and it still won't work, then it could be because you don't have a built/configured kernel. To fix this problem cd into your kernel tree and build it as normal. [Note: previous driver incarnations did not require a built kernel tree, however recent versions (post Dec 2003) have used kbuild in the Makefile, which need to use some parts of the built kernel.]
    What do I need to do when I recompile the kernel. I tried once, I ran make menuconfig, then saved it and ran make dep
    Any ideas what to do next I am still getting the same errors

  2. #2
    Join Date
    Aug 2001
    Location
    Somewhere, Texas
    Posts
    9,628
    is /usr/src/linux a link to the kernel source?

  3. #3
    Join Date
    Aug 2003
    Location
    Chicago, IL
    Posts
    702
    that shouldn't matter as long as you are in the /usr/src/linux-versionnumber directory
    I haven't cried like this since I paid for Godfather III --Fat Tony

    Currently breaking:
    Gentoo Stage 1 w/gentoo-dev-2.6.14-r2 kernel
    FreeBSD 6.0
    XP Pro, well thats already broken

  4. #4
    Join Date
    Aug 2001
    Location
    Somewhere, Texas
    Posts
    9,628
    Judging by the readme he posted
    have used kbuild in the Makefile, which need to use some parts of the built kernel
    it's probably doing the nono of looking in the source tree at /usr/src/linux

  5. #5
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,054
    It also says in that thread you referenced......
    If they complain about symbolic links, you need to recompile your kernel. Edit the .config file in your kernel source directory and look for the line CONFIG_MODVERSIONS= make sure it says ``n''. If it doesn't, change the ``y'' to ``n'' and recompile your kernel. Note; you only need to remake your image! ``make bzImage''. Copy it to the correct place and reboot Linux.
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

  6. #6
    Join Date
    Apr 2003
    Posts
    97
    I did
    If they complain about symbolic links, you need to recompile your kernel. Edit the .config file in your kernel source directory and look for the line CONFIG_MODVERSIONS= make sure it says ``n''. If it doesn't, change the ``y'' to ``n'' and recompile your kernel. Note; you only need to remake your image! ``make bzImage''. Copy it to the correct place and reboot Linux
    I changed the file /usr/src/linux.2.4.22.1-i686/kernel-2.4.22....config
    Is that the correct file, there was a few others in that directory
    Now it says make bzImage. What is that and where do I copy it to

    Edit

    I found where to type in make bzImage now just wonder where I need to copy it too
    Last edited by Taqwus; 05-17-2004 at 06:41 PM.

  7. #7
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,054
    Here is a RH guide to compiling kernels. This will work for any RH pre-2.6 kernel.
    http://www.redhat.com/docs/manuals/l...om-kernel.html
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

  8. #8
    Join Date
    Apr 2003
    Posts
    97
    Is there any option I am supposed to be adding into the kernel all it really says is rebuild it, but it never says what to add to it

  9. #9
    Join Date
    Apr 2003
    Posts
    97
    well I have compiled a new kernel (didnt know it took that long) and rebooted and I am still getting the same error. Also my USB mouse does not work
    I did get it to run to a new error
    /usr/bingcc: Command not found
    *** [if_ath_module.o] Error 127


    Sorry for all the questions, trying to fix this card in between installing sheetrock
    Last edited by Taqwus; 05-17-2004 at 11:27 PM.

  10. #10
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,054
    Originally posted by Taqwus
    Is there any option I am supposed to be adding into the kernel all it really says is rebuild it, but it never says what to add to it
    LOL.....we covered this in the first few post about changing your .config file before compiling.
    Also my USB mouse does not work
    Did you enable the USB options as a module when doing "xconfig"?
    Last edited by JohnT; 05-17-2004 at 11:40 PM.
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

  11. #11
    Join Date
    Apr 2003
    Posts
    97
    xconfig never loaded up correctly so I used menuconfig

    I can glance through to see if the USB is not configured or is there a way to use the .config file from the working good kernel and just look for the changes


    I really dont know what is worse hauling and installing sheetrock or configuring linux

  12. #12
    Join Date
    Jul 2002
    Location
    Vladivostok, Russia
    Posts
    9,054
    Originally posted by Taqwus
    xconfig never loaded up correctly so I used menuconfig

    I can glance through to see if the USB is not configured or is there a way to use the .config file from the working good kernel and just look for the changes


    I really dont know what is worse hauling and installing sheetrock or configuring linux
    LOL...its a toss-up with overhead hanging.
    These are minimum on my system for mouse.

    # USB Host Controller Drivers
    #
    CONFIG_USB_EHCI_HCD=m
    CONFIG_USB_UHCI=m
    CONFIG_USB_UHCI_ALT=m
    CONFIG_USB_OHCI=m
    # USB Human Interface Devices (HID)
    #
    CONFIG_USB_HID=m
    CONFIG_USB_HIDINPUT=y
    CONFIG_USB_HIDDEV=y
    CONFIG_USB_KBD=m
    CONFIG_USB_MOUSE=m
    CONFIG_USB_AIPTEK=m
    CONFIG_USB_WACOM=m
    #
    #Here's whats loaded at boot (lsmod):
    ppp_synctty 6016 0 (unused)
    ppp_async 7520 1
    ppp_generic 15452 3 [ppp_synctty ppp_async]
    slhc 5040 0 [ppp_generic]
    ipt_state 536 1 (autoclean)
    ip_conntrack 18016 1 (autoclean) [ipt_state]
    iptable_filter 1644 1 (autoclean)
    ip_tables 11768 2 [ipt_state iptable_filter]
    keybdev 1952 0 (unused)
    mousedev 4212 1
    hid 18596 0 (unused)
    usbmouse 2008 0 (unused)
    input 3200 0 [keybdev mousedev hid usbmouse]
    8139too 15272 1
    mii 2240 0 [8139too]
    usb-ohci 18856 0 (unused)
    ehci-hcd 14632 0 (unused)
    usbcore 58144 1 [hid usbmouse usb-ohci ehci-hcd]
    cmpci 24976 0
    soundcore 3332 2 [cmpci]
    ide-scsi 8048 0
    apm 9608 2
    ntfs
    Last edited by JohnT; 05-18-2004 at 01:11 AM.
    "I was pulled over for speeding today. The officer said, "Don't you know
    the speed limit is 55 miles an hour?" And I said, "Yes, but I wasn't going
    to be out that long."

    How To Ask Questions The Smart Way
    COME VISIT ME IN RUSSIA NOW!!

Posting Permissions

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