Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Code: [manu@fedacrylic Module]$ cp Makefile.6 ./Makefile [manu@fedacrylic Module]$ make install make -C /lib/modules/2.6.27.24-170.2.68.fc10.i686/build INSTALL_MOD_DIR=extra SUBDIRS=/media/disk/dwl-g122/2009_0206_RT73_Linux_STA_Drv1.1.0.2/Module \ modules_install make: *** /lib/modules/2.6.27.24-170.2.68.fc10.i686/build: No such file or directory. Stop. make: *** [install] Error ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    55

    error 2 on compiling driver for wireless adaptor

    Code:
    [manu@fedacrylic Module]$ cp Makefile.6 ./Makefile
    [manu@fedacrylic Module]$ make install
    make -C /lib/modules/2.6.27.24-170.2.68.fc10.i686/build
    INSTALL_MOD_DIR=extra SUBDIRS=/media/disk/dwl-g122/2009_0206_RT73_Linux_STA_Drv1.1.0.2/Module \
    	modules_install 
    make: *** /lib/modules/2.6.27.24-170.2.68.fc10.i686/build: No such file or directory.  Stop.
    make: *** [install] Error 2
    [manu@fedacrylic Module]$
    i get the above error when trying to compile driver for my USB adaptor, can anyone help me...

    by the way i'm trying to compile driver for a D-Link DWL-G122 Version C

  2. #2
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    You should install the kernel headers and the kernel source before compiling kernel drivers.
    Code:
    yum install kernel-devel kernel-headers-`uname -r`
    That driver can be installed from the RPMFusion repository. Enable it for YUM, and then you can install using YUM.

    RPM Fusion - RPM Fusion

    It is in the non-free section, called "kmod-wl".

    EDIT: Are you using the latest version of that driver? The latest can always be found at the Broadcom web site.
    Broadcom Corporation - Broadcom 802.11 Linux STA driver

    Also, it appears that you are trying to compile the driver on an external drive. You may get a failure because of this. It is always better to do driver compiling on a local disk.
    Last edited by waterhead; 05-29-2009 at 01:26 PM.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    55
    thats the problem, i don't have internet... is there a way of downloading this on another machine?

    i'll try copying the files into the local drive and have another go...

  4. #4
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    It's probably easier then to compile the driver. You can get the kernel source and kernel headers from the installation DVD. I would still get the latest source from Broadcom.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  5. #5
    Just Joined!
    Join Date
    Feb 2009
    Posts
    55
    Index of /ftp/fedora10-i386.updates
    RPM resource kernel-devel-uname-r
    RPM resource kernel-headers

    from the above links i manage to get

    1) kernel-devel-2.6.27.24-170.2.68.fc10.i686

    but can only find

    2) kernel-headers-2.6.27.24-170.2.68.fc10.i386

    is there a difference between installing a i386 and i686?

    cheers

  6. #6
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    That should be fine. Don't you have the installation DVD for this?

    The YUM command that I gave had the `uname -r` surrounded by backticks. You can have a command within a command, by enclosing it in backticks. You can run this command separately.
    Code:
    uname -r
    It will give you your kernel version. When I included in the YUM command, it was to automatically determine your kernel version.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  7. #7
    Just Joined!
    Join Date
    Feb 2009
    Posts
    55
    i installed both rpms above which went well but encountered another issue

    Code:
    [manu@fedacrylic dwl-g122]$ cd ./rt73-k2wrlz-3.0.2/Module/
    [manu@fedacrylic Module]$ make && make install
    /usr/src/kernels/2.6.27.24-170.2.68.fc10.i686/scripts/gcc-version.sh: line 25: gcc: command not found
    /usr/src/kernels/2.6.27.24-170.2.68.fc10.i686/scripts/gcc-version.sh: line 26: gcc: command not found
    make[1]: gcc: Command not found
    make[1]: Entering directory `/usr/src/kernels/2.6.27.24-170.2.68.fc10.i686'
      CC [M]  /home/manu/Download/aps/rpm/dwl-g122/rt73-k2wrlz-3.0.2/Module/rtmp_main.o
    /bin/sh: gcc: command not found
    make[2]: *** [/home/manu/Download/aps/rpm/dwl-g122/rt73-k2wrlz-3.0.2/Module/rtmp_main.o] Error 127
    make[1]: *** [_module_/home/manu/Download/aps/rpm/dwl-g122/rt73-k2wrlz-3.0.2/Module] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.27.24-170.2.68.fc10.i686'
    rt73.ko failed to build!
    make: *** [module] Error 1
    [manu@fedacrylic Module]$ sudo make && make install
    [sudo] password for manu: 
    /usr/src/kernels/2.6.27.24-170.2.68.fc10.i686/scripts/gcc-version.sh: line 25: gcc: command not found
    /usr/src/kernels/2.6.27.24-170.2.68.fc10.i686/scripts/gcc-version.sh: line 26: gcc: command not found
    make[1]: gcc: Command not found
    make[1]: Entering directory `/usr/src/kernels/2.6.27.24-170.2.68.fc10.i686'
      CC [M]  /home/manu/Download/aps/rpm/dwl-g122/rt73-k2wrlz-3.0.2/Module/rtmp_main.o
    /bin/sh: gcc: command not found
    make[2]: *** [/home/manu/Download/aps/rpm/dwl-g122/rt73-k2wrlz-3.0.2/Module/rtmp_main.o] Error 127
    make[1]: *** [_module_/home/manu/Download/aps/rpm/dwl-g122/rt73-k2wrlz-3.0.2/Module] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.27.24-170.2.68.fc10.i686'
    rt73.ko failed to build!
    make: *** [module] Error 1
    [manu@fedacrylic Module]$
    correct me if i'm wrong but it looks like i need gcc compiler? yea?

  8. #8
    Just Joined!
    Join Date
    Feb 2009
    Posts
    55
    Quote Originally Posted by waterhead View Post
    That should be fine. Don't you have the installation DVD for this?

    The YUM command that I gave had the `uname -r` surrounded by backticks. You can have a command within a command, by enclosing it in backticks. You can run this command separately.
    Code:
    uname -r
    It will give you your kernel version. When I included in the YUM command, it was to automatically determine your kernel version.
    i've got kernel-2.6.27.24-170.2.68.fc10.i686

  9. #9
    Linux Guru waterhead's Avatar
    Join Date
    Jul 2004
    Location
    Franklin, Wisconsin
    Posts
    4,577
    That is correct, install gcc.
    Paul

    Please do not send Private Messages to me with requests for help. I will not reply.

  10. #10
    Just Joined!
    Join Date
    Feb 2009
    Posts
    55
    i'm gonna try and install gcc offline (since i can't get internet through fedora) how do i know which dependencies to include?

    or do i just install gcc and see what other errors would come up?

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
  •  
...