Error with 'make'
I downloaded the driver for my WiFi (Realtek RTL8188CE) and I'm trying to install it. The readme file says to run # make, which I did.
I get back this make: *** [all] Error 2 Any ideas? Thank you. |
Quote:
Either that or post all of what it printed, you've left off the useful part. |
Ooops, sorry... It says:
make[1]: Entering directory `/lib/modules/2.6.32-5-686/build' make[1]: *** No rule to make target `modules'. Stop. make[1]: Leaving directory `/lib/modules/2.6.32-5-686/build' make: *** [all] Error 2 I don't know what "no rule to make target 'modules'" means. Looking at the make file it seems it wants to create some new directories. |
Quote:
Unfortunately, you can't build a kernel module without the source to your kernel. Try the command: Code:
ls /lib/modules/2.6.32-5-686/build/* |
I am not sure of what I need to download/install. I used Synaptic and under Kernel and modules I installed linux-headers-2.6-686, linux-source-2.6.32, kernel-package, but I still don't have anything under /lib/modules/2.6.32-5-686. What else do I need??
|
Try rerunning the compile; if it fails, post the relevant error messages.
Please remember to press the "Go Advanced" button below and surround them with "Code" tags. |
I did get a little further. I changed in Makefile the path to the Linux headers. I don't know if that's what it was looking for...but I did it. I ran make and it ran nicely all the way to the end, without any error messages. How can I verify that it ran successfully?
Then I ran make install, and this didn't work. It looked again for that same path that doesn't exist (which I change in Makefile). The old path is obviously somewhere else besides Makefile, but I don't know where. |
Yes, I did it !! There was another Makefile in a subdirectory of the driver directory. I changed in there the path to where my Linux headers are...and it worked. I sure got lucky.
|
All times are GMT -5. The time now is 03:22 PM. |