LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2011, 04:39 PM   #1
zalmox
Member
 
Registered: Sep 2003
Location: SoCal
Posts: 45

Rep: Reputation: 1
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.
 
Old 09-04-2011, 05:06 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by zalmox View Post
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.
Look about 3 lines earlier in what it printed and it will tell you what is wrong.
Either that or post all of what it printed, you've left off the useful part.
 
Old 09-04-2011, 05:15 PM   #3
zalmox
Member
 
Registered: Sep 2003
Location: SoCal
Posts: 45

Original Poster
Rep: Reputation: 1
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.

Last edited by zalmox; 09-04-2011 at 05:17 PM.
 
Old 09-04-2011, 05:41 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by zalmox View Post
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.
The makefile is trying to build a kernel module.
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/*
If that directory doesn't exist it means you need to install the kernel development environment for your distro: source or header files.
 
1 members found this post helpful.
Old 09-04-2011, 07:11 PM   #5
zalmox
Member
 
Registered: Sep 2003
Location: SoCal
Posts: 45

Original Poster
Rep: Reputation: 1
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??
 
Old 09-04-2011, 10:11 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
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.
 
Old 09-04-2011, 10:48 PM   #7
zalmox
Member
 
Registered: Sep 2003
Location: SoCal
Posts: 45

Original Poster
Rep: Reputation: 1
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.
 
Old 09-04-2011, 11:08 PM   #8
zalmox
Member
 
Registered: Sep 2003
Location: SoCal
Posts: 45

Original Poster
Rep: Reputation: 1
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make: CC: Command not found make: *** [main.o] Error 127 on opensuse 11.3 Leo89 Linux - Newbie 6 11-30-2012 05:13 PM
RH9 make menuconfig error: make[1]: *** [lxdialog] Error 1 rrochele Linux - Kernel 3 02-07-2007 03:39 PM
make bzImage failure: make[1]: *** [init/version.o] Error 1 nmainak Linux - Kernel 2 07-16-2006 05:06 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 11:19 AM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration