Page 1 of 6 123 ... LastLast
Results 1 to 10 of 54

Thread: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

  1. #1
    Join Date
    Oct 2016
    Beans
    31

    Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    I just bought a Realtek usb wifi adapter for an old computer I got running linux. I'm completely fresh to linux so all of this is very new to me. When I run the installation bash script (install.sh), I'm getting this error:

    scripts/Makefile.build:258: recipe for target '/home/nick/Documents/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o' failed
    make[2]: *** [/home/nick/Documents/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51/core/rtw_cmd.o] Error 1
    Makefile:1403: recipe for target '_module_/home/nick/Documents/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51' failed
    make[1]: *** [_module_/home/nick/Documents/linux/driver/rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-31-generic'
    Makefile:1551: recipe for target 'modules' failed
    make: *** [modules] Error 2
    ##################################################
    Compile make driver error: 2
    Please check error Mesg

    Realtek makes it seem like this particular adapter might not work for the kernel version I'm using (4.3.14), but I've read things that make it sound like it's possible to get it running. Anyone know how to troubleshoot this? Thanks!

    Oh and I've done already done [sudo apt-get update] and [sudo apt-get dist-upgrade].
    Last edited by hunterni; October 14th, 2016 at 04:25 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,644
    Distro
    Ubuntu Development Release

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    Just because we love to be precise (read: insecure), we'd love to verify the device first. Please run and post:
    Code:
    lsusb
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  3. #3
    Join Date
    Oct 2016
    Beans
    31

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    Ok. I'm at work now but when I get home I will.

  4. #4
    Join Date
    Oct 2016
    Beans
    31

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    After running lsusb it returned this:

    Bus 001 Device 002: ID 0bda:0811 Realtek Semiconductor Corp.

  5. #5
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,644
    Distro
    Ubuntu Development Release

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    Please try:

    Code:
    sudo apt-get update
    sudo apt-get install rtl8812au-dkms
    You should be all set.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  6. #6
    Join Date
    Oct 2016
    Beans
    31

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    It looked really promising as it ran for a bit! But then it gave the same exact error message.

    The part that says "please check error Mesg", any idea how to do that and if that would diagnose the problem?

  7. #7
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    25,644
    Distro
    Ubuntu Development Release

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    Doesn't it say:
    Consult /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/make.log for more information.
    ...Or some such. You look exactly there!
    Code:
    cat  /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/make.log
    I suspect we have a train-wreck and need to report a bug. If so, we'll do so and then look elsewhere for a driver.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D., Sc.D.

  8. #8
    Join Date
    Oct 2016
    Beans
    31

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    I checked that path (how did you find that by the way?) and there isn't a make.log file. There exist the directories: core, hal, include, os_dep, and platform. And also the files: dkms.conf, Kconfig, and Makefile.

    What are the first steps in reporting a bug? I feel so lost in all of this! But I really am bowled over by the support from this forum/community! Thank you, chili555.

  9. #9
    Join Date
    May 2014
    Location
    /home
    Beans
    9,615
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    Show the result for
    Code:
    ls /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/

  10. #10
    Join Date
    Oct 2016
    Beans
    31

    Re: Compiling RTL8821AU Wifi USB adapter failure (Compile make driver error: 2)

    Code:
    nick@ubuntu:/var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build$ ls -a
    .  ..  core  dkms.conf  hal  include  Kconfig  Makefile  os_dep  platform

Page 1 of 6 123 ... LastLast

Bookmarks

Posting Permissions

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