LinuxQuestions.org
Visit Jeremy's Blog.
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, 05:39 PM   #1
zalmox
LQ Newbie
 
Registered: Sep 2003
Posts: 29

Rep: Reputation: 0
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, 06:06 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,665

Rep: Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710
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, 06:15 PM   #3
zalmox
LQ Newbie
 
Registered: Sep 2003
Posts: 29

Original Poster
Rep: Reputation: 0
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 06:17 PM.
 
Old 09-04-2011, 06:41 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,665

Rep: Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710Reputation: 710
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, 08:11 PM   #5
zalmox
LQ Newbie
 
Registered: Sep 2003
Posts: 29

Original Poster
Rep: Reputation: 0
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, 11:11 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,667
Blog Entries: 12

Rep: Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894Reputation: 2894
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, 11:48 PM   #7
zalmox
LQ Newbie
 
Registered: Sep 2003
Posts: 29

Original Poster
Rep: Reputation: 0
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-05-2011, 12:08 AM   #8
zalmox
LQ Newbie
 
Registered: Sep 2003
Posts: 29

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:13 PM
RH9 make menuconfig error: make[1]: *** [lxdialog] Error 1 rrochele Linux - Kernel 3 02-07-2007 04:39 PM
make bzImage failure: make[1]: *** [init/version.o] Error 1 nmainak Linux - Kernel 2 07-16-2006 06:06 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 12:19 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 10:58 AM


All times are GMT -5. The time now is 07:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration