SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-06-27 00:28:39

sml
New Member
Registered: 2011-06-27
Posts: 3
Website

[SOLVED] Problem with make

Hey all, I'm having the exact problem as stated in this thread: http://crunchbanglinux.org/forums/topic … with-make/

I would have responded there but it looks like it's been locked.

I've tried all that's mentioned in that thread, with the same results as the OP. Mine is not a Thinkpad though and I am installing a different wireless usb device (Belkin F7D1101).

Output is as follows:

make: *** /lib/modules/2.6.32-5-686/build: No such file or directory.  Stop.
make: *** [modules] Error 2

I have minimal experience with linux. Any help would be appreciated.

Last edited by sml (2011-06-27 13:28:57)

Offline

Help fund CrunchBang, donate to the project!

#2 2011-06-27 01:31:28

tranche
#! CrunchBanger
Registered: 2011-02-04
Posts: 111
Website

Re: [SOLVED] Problem with make

Good for you for trying to build your own driver from source!

One of the general principles of compiling things from source is that if make complains, give it what it's asking for and see what, if anything, it complains about next.  This is sometimes called "the cookie principle".   If make wants a cookie, give it one.  If it wants icing on the cookie, that's likely to be its next complaint.

Try

sudo mkdir /lib/modules/2.6.32-5-686/build

What you're doing is called a "build".  The directory "build" is a place in which things take place during a build.  That may be all you need to do.

Last edited by tranche (2011-06-27 01:36:52)

Offline

#3 2011-06-27 01:33:14

snowpine
#!-a-roo
Registered: 2008-11-24
Posts: 2,554

Re: [SOLVED] Problem with make

Have you installed "build-essential" yet?


/hugged

Offline

#4 2011-06-27 01:41:40

sml
New Member
Registered: 2011-06-27
Posts: 3
Website

Re: [SOLVED] Problem with make

@tranche: I gave that a try and certainly it is throwing up a slightly different error, though I am at a loss as what to make of it.

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: *** [modules] Error 2

@snowpine: I've tried doing that as instructed in the original thread, it is reporting that I already have the newest version.

Thanks for the fast replies!

Last edited by sml (2011-06-27 01:41:57)

Offline

#5 2011-06-27 01:47:28

tranche
#! CrunchBanger
Registered: 2011-02-04
Posts: 111
Website

Re: [SOLVED] Problem with make

Make is telling you it wants icing on the cookie.

Google "No rule to make target `modules'".    You'll get lots of hits.

Make is probably looking for a missing Makefile with a rule to create something called "modules". It expects to find this file in the build directory.  You may have needed to run some program to create that file.

Also make sure that your "kernel headers" are properly installed.  Do a search on "linux-headers" in the Synaptic package manager, or run:

apt-get search linux-headers

Last edited by tranche (2011-06-27 02:00:58)

Offline

#6 2011-06-27 13:26:59

sml
New Member
Registered: 2011-06-27
Posts: 3
Website

Re: [SOLVED] Problem with make

A couple beers and a good nights sleep did me well, I have figured it out.

Apt-get reported my linux-headers to be installed correctly, but Synaptic said otherwise. I installed them, then needed to modify the driver Makefile to point to '/usr/src/linux-headers-2.6.32-5-686' rather than '/lib/modules/$(KVER)/build'.

After a restart, phew, I have wifi.

Thank you for the support, each day I learn a little more.

You'll probably see me lurking around the irc channel soon now that I have stable internet.

Offline

#7 2011-06-27 13:39:47

tranche
#! CrunchBanger
Registered: 2011-02-04
Posts: 111
Website

Re: [SOLVED] Problem with make

Hey, good for you.  Glad you got it solved.

Offline

#8 2012-08-06 03:32:50

jag8s
New Member
Registered: 2012-08-06
Posts: 3

Re: [SOLVED] Problem with make

Ok so I know this post is a little old but I am stuck at the point the last person solved it. Very new to Linux. How exactly do I modify the driver Makefile to point to '/usr/src/linux-headers-2.6.32-5-686' rather than '/lib/modules/$(KVER)/build'? I have searched the Makefile pretty thoroughly and I am unable to find a matching phrase. So far I seem to have had the exact same issues as the previous user.
I have been attempting to get the Tenda W311U usb dongle to work with a fresh install Statler.
Any help would most appreciated.

Offline

#9 2012-08-06 03:37:40

pidsley
#! Die Hard
Registered: 2012-05-23
Posts: 1,348

Re: [SOLVED] Problem with make

Welcome to #! jag8s. This thread is very old. Many people will not even look at new posts here because the thread is marked [solved]. You will get better help if you start a new thread (you can point back to this one, but necrobumping this thread is not really the best way to get good help).

If you're not too attached to Statler, I'd install Waldorf. It has a much newer kernel and works with more hardware. You can get it from here: http://crunchbang.org/download/testing

Last edited by pidsley (2012-08-06 03:38:38)

Offline

#10 2012-08-06 03:44:04

jag8s
New Member
Registered: 2012-08-06
Posts: 3

Re: [SOLVED] Problem with make

Thanks
I will try that. I apologize for any forum faux pas I may have committed (Necrobumping?). In the future I will begin a new thread with the necessary pointing.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo