FC2 'No rule to make target 'mod

  • Clarke Pelz

    Clarke Pelz - 2004-10-21

    I'm running FC2 on compaq laptop trying to get my dlink DWL-630 card to work with my wireless network.

    I'm having a problem similar to that described in this thread:


    I've linked thus:

    ln -s /usr/src/linux-2.6.8-1.521/ /lib/modules/2.6.8-1.521/build

    When I make install I get the following:

    make -C driver install
    make[1]: Entering directory /home/cpelz/Wireless setup/ndiswrapper-0.11/driver' make -C /lib/modules/2.6.8-1.521/build SUBDIRS=/home/cpelz/Wireless setup/ndiswrapper-0.11/driver \ NDISWRAPPER_VERSION=0.11 \ EXTRA_VERSION= modules make[2]: Entering directory/usr/src/linux-2.6.8-1.521'
    Makefile:415: .config: No such file or directory
    make[2]: No rule to make target setup/ndiswrapper-0.11/driver'. Stop. make[2]: Leaving directory/usr/src/linux-2.6.8-1.521'
    [default] Error 2
    make[1]: Leaving directory `/home/cpelz/Wireless setup/ndiswrapper-0.11/driver'
    make: *** [install] Error 2

    If it weren't for RPMs and apt-get I'd never be able to run Linux. This sort of typifies my experience building from source so I'm at a loss. I've tried installing versions .11 and .10 with similar results.

    Anybody offer some insight?

    • Clarke Pelz

      Clarke Pelz - 2004-10-21

      Perhaps my problem is the directory named "Wireless setup" rather than "Wireless_setup" a la this post:


    • Clarke Pelz

      Clarke Pelz - 2004-10-22

      That moved things forward.
      This thread
      recommends the following:
      "...did you strictly type "make install" if you did then you need to type "make" first then do "make install." if you decide to run "make" again then you should type "make clean" first then type "make." "

      Running make generated the following complaints:


      make -C driver
      make[1]: Entering directory /home/cpelz/WirelessSetup/ndiswrapper-0.11/driver' Can't find kernel sources in /lib/modules/2.6.8-1.521/build; give the path to kernel sources with KSRC=<path> argument to make make[1]: *** [prereq_check] Error 1 make[1]: Leaving directory/home/cpelz/WirelessSetup/ndiswrapper-0.11/driver'
      make: *** [all] Error 2

      Which is strange because I loaded the source kernel rpm and performed the link to build as I believe the following ls's show:

      ls -al /lib/modules/2.6.8-1.521/

      total 692
      drwxr-xr-x 4 root root 4096 Oct 21 09:04 .
      drwxr-xr-x 4 root root 4096 Oct 16 17:54 ..
      lrwxrwxrwx 1 root root 27 Oct 21 09:04 build -> /usr/src/linux-2.6.8-1.521/
      drwxr-xr-x 17 root root 4096 Oct 20 22:42 build-old
      drwxr-xr-x 9 root root 4096 Oct 16 17:54 kernel
      -rw-r--r-- 1 root root 120115 Oct 16 17:54 modules.alias
      -rw-r--r-- 1 root root 69 Oct 16 17:54 modules.ccwmap
      -rw-r--r-- 1 root root 175693 Oct 16 17:54 modules.dep
      -rw-r--r-- 1 root root 443 Oct 16 17:54 modules.ieee1394map
      -rw-r--r-- 1 root root 357 Oct 16 17:54 modules.inputmap
      -rw-r--r-- 1 root root 15833 Oct 16 17:54 modules.isapnpmap
      -rw-r--r-- 1 root root 102383 Oct 16 17:54 modules.pcimap
      -rw-r--r-- 1 root root 80120 Oct 16 17:54 modules.symbols
      -rw-r--r-- 1 root root 155849 Oct 16 17:54 modules.usbmap

      ls /lib/modules/2.6.8-1.521/build

      arch COPYING.modules Documentation include kernel Makefile README security
      configs CREDITS drivers init lib mm REPORTING-BUGS sound
      COPYING crypto fs ipc MAINTAINERS net scripts usr

      Any ideas? Is the build link really pointing to the source directory? uname -r gives: 2.6.8-1.521

    • Clarke Pelz

      Clarke Pelz - 2004-10-22

      Before I installed my kernel source and made the
      ln -s /usr/src/linux-2.6.8-1.521/ /lib/modules/2.6.8-1.521/build
      link recommended in INSTALL a /lib/modules/2.6.8-1.521/build directory already existed. I renamed it build-old and proceded with the make process. Turns out make didn't find what it needed in the linked build directory. When I removed the link and renamed build-old build it compiled without a hitch.


Log in to post a comment.