Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using 12.10, updated to this day. The Realtek USB Wi-fi dongle doesn't work. I've seen lots of discussions in forums that suggests downloading the official driver.

However, when I run "sudo bash install.sh", it gives me this error:

...
cd os_dep ; rm -fr *.mod.c *.mod *.o .*.cmd *.ko 
Authentication requested [root] for make driver:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.5.0-27-generic/build M=/home/kelvin/Downloads/RTL8188C_8192C_USB_linux_v3.4.4_4749.20121105/driver/rtl8188C_8192C_usb_linux_v3.4.4_4749.20121105  modules
make: *** /lib/modules/3.5.0-27-generic/build: No such file or directory.  Stop.
make: *** [modules] Error 2
##################################################
Compile make driver error: 2
Please check error Mesg
##################################################

I'm unable to decipher what the error means.

Help, please. Thanks.

share|improve this question
    
Is this your actual kernel 3.5.0-27-generic? –  thefourtheye May 1 '13 at 17:42
1  
You probably need to install the headers sudo apt-get install linux-headers-$(uname -r) –  bodhi.zazen May 1 '13 at 18:57
    
@thefourtheye Yes, it is. –  kelvinilla May 2 '13 at 9:37
1  
@thefourtheye Yes, it did. I've installed linux-headers-generic (since this will get the latest and so I won't have to look through the list) from the Software Center. It's now compiled, and I'm posting using the wireless. –  kelvinilla May 2 '13 at 13:50
1  
@bodhi.zazen It worked! Put up the answer if you want to. –  kelvinilla May 2 '13 at 13:51
show 5 more comments

1 Answer

up vote 1 down vote accepted

You probably need to install the headers

sudo apt-get install linux-headers-$(uname -r)
share|improve this answer
    
You may also just install "linux-headers-generic" (Generic Linux Kernel Headers) if you have the latest kernel anyway. –  kelvinilla May 2 '13 at 22:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.