Click to See Complete Forum and Search --> : no rule to make target
Taqwus
05-17-2004, 04:06 PM
I am trying to install Madwifi and had the dependency error so I am manually installing as per directions at
http://www.linuxquestions.org/questions/showthread.php?s=&forumid=14&threadid=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
Icarus
05-17-2004, 04:18 PM
is /usr/src/linux a link to the kernel source?
j79zlr
05-17-2004, 04:54 PM
that shouldn't matter as long as you are in the /usr/src/linux-versionnumber directory
Icarus
05-17-2004, 04:57 PM
Judging by the readme he postedhave used kbuild in the Makefile, which need to use some parts of the built kernelit's probably doing the nono of looking in the source tree at /usr/src/linux
JohnT
05-17-2004, 05:49 PM
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.
Taqwus
05-17-2004, 06:36 PM
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
JohnT
05-17-2004, 06:57 PM
Here is a RH guide to compiling kernels. This will work for any RH pre-2.6 kernel.
http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/ch-custom-kernel.html
Taqwus
05-17-2004, 09:07 PM
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
Taqwus
05-17-2004, 11:20 PM
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
JohnT
05-17-2004, 11:38 PM
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"?
Taqwus
05-18-2004, 12:14 AM
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
JohnT
05-18-2004, 01:09 AM
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
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.