Make Ndiswrapper cant find path kernel head src.

Asked by cricksen

runing edgy want to use wpa w ndiswrapper. i cant run make says path to kernel not found. I did put in links and have installed wireless-tools wpa_supicant and devl pkgs.
Thanks for any help offered.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu konversation Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
cricksen (cricksen) said :
#1

make -C driver
make[1]: Entering directory `/download/ndiswrapper-1.41/driver'
Can't find kernel build files in /lib/modules/2.6.17-10-386/build;
  give the path to kernel build directory with
  KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/download/ndiswrapper-1.41/driver'
make: *** [all] Error 2
  I do have ln -s

Revision history for this message
cricksen (cricksen) said :
#2

Can't find kernel build files in /lib/modules/2.6.17-10-386/build;

Revision history for this message
cricksen (cricksen) said :
#3

in /lib/modules/2.6.17-10-386/build I created and have :

ln -s /usr/src/2.6.17-10-386 /lib/modules/2.6.17-10-386/build

Revision history for this message
cricksen (cricksen) said :
#4

I anually created the /lib/modules/2.6.17-10-386/build directory and there is nothing in there

Revision history for this message
cricksen (cricksen) said :
#5

previously added pkg apt-get install build-essential

Revision history for this message
David Portwood (dzportwood) said :
#6

Have you installed the kernel headers/source? , this also is not for package konversation, please be more careful in package selection.

Revision history for this message
cricksen (cricksen) said :
#7

David Portwood wrote:
> Your question #5014 on konversation in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/konversation/+ticket/5014
>
> Status: Open => Answered
>
> David Portwood proposed the following answer:
> Have you installed the kernel headers/source? , this also is not for
> package konversation, please be more careful in package selection.
>
> _______________________________________________________________________
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+source/konversation/+ticket/5014/+confirm?answer_id=5
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/konversation/+ticket/5014
>
>
Dave,
Thanks for the reply. How do I get the linux-source? I am running
2.6.17-10-386 .... uname -r

I appreciate your help.
Chris

Revision history for this message
David Portwood (dzportwood) said :
#8

For the kernel source and headers: 'sudo apt-get linux-source-2.6.17 linux-headers-2.6.17-10-386'

One other thing, your kernel is not the latest for Edgy, I recommend 'sudo apt-get update && sudo apt-get dist-upgrade' ; if you do this first you will also need to change to linux-headers-2.6.17-11-386

Revision history for this message
David Portwood (dzportwood) said :
#9

Typo above 'sudo apt-get install linux-source...........'

Revision history for this message
cricksen (cricksen) said :
#10

Dave,
Thanks
I tried to get linus-sourc-2.6.17-10.386 but could not

root@laptop:/home/chris# apt-get install linux-source-2.6.17-10-386
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-source-2.6.17-10-386
root@laptop:/home/chris# apt-get install linux-source-2.6.17
 Then tried apt-get linux-source-2.6.17 OK and it installed this version

After unpacking 46.2MB of additional disk space will be used.
Get:1 http://security.ubuntu.com edgy-security/main linux-source-2.6.17 2.6.17.1-11.37 [46.1MB]
Fetched 46.1MB in 2m15s (339kB/s)
Selecting previously deselected package linux-source-2.6.17.
(Reading database ... 151366 files and directories currently installed.)
Unpacking linux-source-2.6.17 (from .../linux-source-2.6.17_2.6.17.1-11.37_all.deb) ...
Setting up linux-source-2.6.17 (2.6.17.1-11.37) ...

Is this a rang of source because my kernel is 2.6.17-10-386

I got the linux-headers before ... I will try make on ndiswarpper and let you know

Revision history for this message
cricksen (cricksen) said :
#11

same failure on mak doing dist-upgrade know

Revision history for this message
cricksen (cricksen) said :
#12

uname kernel new now

root@laptop:/home/chris# uname -r
2.6.17-11-server

I will probably have to change ln to source... the source is in bz2 format??

Revision history for this message
cricksen (cricksen) said :
#13

Made new link
Still can't run make... fails

root@laptop:/lib/modules/2.6.17-11-server/build# ln -s /usr/src/linux-
linux-headers-2.6.17-10/ linux-headers-2.6.17-10-server/ linux-headers-2.6.17-11-386/
linux-headers-2.6.17-10-386/ linux-headers-2.6.17-11/ linux-source-2.6.17.tar.bz2

root@laptop:/lib/modules/2.6.17-11-server/build# ln -s /usr/src/linux-source-2.6.17.tar.bz2 /lib/modules/2.6.17-11-server/build/

root@laptop:/lib/modules/2.6.17-11-server/build# ls
linux-source-2.6.17.tar.bz2

Make fails with

root@laptop:/home/chris# cd /download/ndiswrapper-1.41
root@laptop:/download/ndiswrapper-1.41# make
make -C driver
make[1]: Entering directory `/download/ndiswrapper-1.41/driver'
Can't find kernel build files in /lib/modules/2.6.17-11-server/build;
  give the path to kernel build directory with
  KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/download/ndiswrapper-1.41/driver'
make: *** [all] Error 2
root@laptop:/download/ndiswrapper-1.41#

Revision history for this message
David Portwood (dzportwood) said :
#14

Can you 'ls -al /lib/modules/linux*' and paste me that?
You need to apt-get install linux-headers-2.6.17-11-server as that is not installed.

Revision history for this message
cricksen (cricksen) said :
#15

did apt-get install linux-headers-2.6.17-11-server

Do I have to unpack the linux-source-2.6.17.tar.bz2 ?

Below /usr/src directory

linux-headers-2.6.17-10 linux-headers-2.6.17-10-server linux-headers-2.6.17-11-386 linux-source-2.6.17.tar.bz2
linux-headers-2.6.17-10-386 linux-headers-2.6.17-11 linux-headers-2.6.17-11-server

Below is ls -al /lib/modules/linux* ... Note no /lib/modules/linux*

root@laptop:/home/chris# ls -al /lib/modules/linux*
ls: /lib/modules/linux*: No such file or directory
root@laptop:/home/chris# ls -al /lib/modules/
total 28
drwxr-xr-x 6 root root 4096 2007-04-16 11:13 .
drwxr-xr-x 17 root root 8192 2007-04-16 11:12 ..
drwxr-xr-x 6 root root 4096 2007-04-16 11:40 2.6.17-10-386
drwxr-xr-x 5 root root 4096 2007-04-16 11:14 2.6.17-10-server
drwxr-xr-x 2 root root 4096 2007-04-14 15:22 2.6.17-11-386
drwxr-xr-x 5 root root 4096 2007-04-16 11:46 2.6.17-11-server

THANKS DAVE!

Revision history for this message
cricksen (cricksen) said :
#16

root@laptop:/lib/modules/2.6.17-11-server# ls -al
total 1516
drwxr-xr-x 5 root root 4096 2007-04-16 11:46 .
drwxr-xr-x 6 root root 4096 2007-04-16 11:13 ..
drwxr-xr-x 2 root root 4096 2007-04-16 11:49 build
drwxr-xr-x 2 root root 4096 2007-04-16 11:13 initrd
drwxr-xr-x 11 root root 4096 2007-04-16 11:13 kernel
-rw-r--r-- 1 root root 324432 2007-04-16 11:14 modules.alias
-rw-r--r-- 1 root root 69 2007-04-16 11:14 modules.ccwmap
-rw-r--r-- 1 root root 351324 2007-04-16 11:14 modules.dep
-rw-r--r-- 1 root root 813 2007-04-16 11:14 modules.ieee1394map
-rw-r--r-- 1 root root 806 2007-04-16 11:14 modules.inputmap
-rw-r--r-- 1 root root 22378 2007-04-16 11:14 modules.isapnpmap
-rw-r--r-- 1 root root 74 2007-04-16 11:14 modules.ofmap
-rw-r--r-- 1 root root 256173 2007-04-16 11:14 modules.pcimap
-rw-r--r-- 1 root root 1135 2007-04-16 11:14 modules.seriomap
-rw-r--r-- 1 root root 139199 2007-04-16 11:14 modules.symbols
-rw-r--r-- 1 root root 387891 2007-04-16 11:14 modules.usbmap
root@laptop:/lib/modules/2.6.17-11-server#

Revision history for this message
cricksen (cricksen) said :
#17

EXtrackted linux-source-2.6.17-11-server

set ln-s

root@laptop:/lib/modules/2.6.17-11-server/build# ln -s /usr/src/linux-source-2.6.17 /lib/modules/2.6.17-11-server/build/

in /download/ndiswrapper -1.42 did make and same error

root@laptop:/download/ndiswrapper-1.42# make
make -C driver
make[1]: Entering directory `/download/ndiswrapper-1.42/driver'
Can't find kernel build files in /lib/modules/2.6.17-11-server/build;
  give the path to kernel build directory with
  KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/download/ndiswrapper-1.42/driver'
make: *** [all] Error 2
root@laptop:/download/ndiswrapper-1.42#

Revision history for this message
cricksen (cricksen) said :
#18

Below /lib/module/linux-source-2.6.17

root@laptop:/lib/modules/2.6.17-11-server/build# cd /usr/src/linux-source-2.6.17
root@laptop:/usr/src/linux-source-2.6.17# ls
arch COPYING debian drivers include Kbuild kernel-versions.in Makefile net README.Debian security
block CREDITS Debian.src.changelog firmware init kernel lib mm package-list REPORTING-BUGS sound
conf.vars crypto Documentation fs ipc kernel-versions MAINTAINERS modules README scripts usr
root@laptop:/usr/src/linux-source-2.6.17#

Revision history for this message
David Portwood (dzportwood) said :
#19

You may have already done this, but can you do make clean and redo your ./configure with the following options:

./configure KBUILD=/lib/modules/2.6.17-11-server/build/

Can you help with this problem?

Provide an answer of your own, or ask cricksen for more information if necessary.

To post a message you must log in.