0

I tried the following instructions as given on D-Link's website to install the necessary drivers:

Supported OS and kernel version : LINUX (kernel 2.6.18 ~ 2.6.37)

tar zxvf rtl8192CU_linux_v2.0.1406.20110309.tar.gz
cd rtl8192CU_linux_v2.0.1406.20110309
make
su
make install
reboot

But I get errors when I run make. How to deal the error?

Flimm
  • 44,031
dg91
  • 13

3 Answers3

2

I assume you are not using the built-in rtl8192cu because it doesn't actually connect.

The package you downloaded, written for 2.6.xx kernels, is probably never going to compile correctly in 12.04, using a 3.2.0-x kernel. Also, an error at 'make' suggests you haven't installed the necessary build tools. With a temporary ethernet connection, open a terminal and do:

sudo apt-get install linux-headers-generic build-essential
wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.6/compat-wireless-3.6.6-1.tar.bz2
tar -jxf compat-wireless-3.6.6-1.tar.bz2
cd compat-wireless-3.6.6-1/
./scripts/driver-select rtlwifi
make
sudo make install
sudo modprobe rtl8192cu
chili555
  • 61,330
1

It appears your device is supported in newer releases of the Linux kernel. Ubuntu provides a package with 'backports' of this. This is fairly the same as the answer of chili555, but without downloading from a 3rd party website (potentially untrusted and unsafe) and without the need to compile.

Just do:

sudo apt-get install linux-backports-modules-cw-3.6-precise-generic

and reboot.

You would have come to this step also when following my guide:

gertvdijk
  • 69,427
0

The problem is you don't have a compiler for C (the Programming Language) installed.

First of all run the following command in your terminal to install build-essential.

sudo apt-get install build-essential

Then run all the commands as given in instructions.

Aditya
  • 13,616