LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-25-2006, 05:13 AM   #1
*matt*
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
Ndiswrapper installation problem


I’m new to Linux and having a problem installing ndiswrapper when I type make or make install I get this response

[root@localhost ndiswrapper-1.8]# make install
make -C driver install
make[1]: Entering directory `/home/matthew/ndiswrapper-1.8/driver'
Can't find kernel sources in /lib/modules/2.6.11-1.1369_FC4/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/matthew/ndiswrapper-1.8/driver'
make: *** [install] Error 2
[root@localhost ndiswrapper-1.8]

This is with a fresh install of Fedora core 4 I have spent two days searching the Internet and trying things but I have run out of ideas.

Thanks

Matt

PS here are all the commands from the beginning if it helps.

[matthew@localhost ~]$ su
Password:
[root@localhost matthew]# tar zxvf ndiswrapper-1.8.tar.gz
ndiswrapper-1.8/
ndiswrapper-1.8/AUTHORS
ndiswrapper-1.8/ChangeLog
ndiswrapper-1.8/INSTALL
ndiswrapper-1.8/Makefile
ndiswrapper-1.8/README
ndiswrapper-1.8/ndiswrapper.spec
ndiswrapper-1.8/version
ndiswrapper-1.8/ndiswrapper.8
ndiswrapper-1.8/utils/
ndiswrapper-1.8/utils/Makefile
ndiswrapper-1.8/utils/ndiswrapper
ndiswrapper-1.8/utils/loadndisdriver.c
ndiswrapper-1.8/utils/ndiswrapper-buginfo
ndiswrapper-1.8/driver/
ndiswrapper-1.8/driver/divdi3.c
ndiswrapper-1.8/driver/hal.c
ndiswrapper-1.8/driver/iw_ndis.c
ndiswrapper-1.8/driver/iw_ndis.h
ndiswrapper-1.8/driver/loader.c
ndiswrapper-1.8/driver/loader.h
ndiswrapper-1.8/driver/longlong.h
ndiswrapper-1.8/driver/Makefile
ndiswrapper-1.8/driver/misc_funcs.c
ndiswrapper-1.8/driver/ndis.c
ndiswrapper-1.8/driver/ndis.h
ndiswrapper-1.8/driver/ndiswrapper.h
ndiswrapper-1.8/driver/ntoskernel.c
ndiswrapper-1.8/driver/ntoskernel.h
ndiswrapper-1.8/driver/ntoskernel_io.c
ndiswrapper-1.8/driver/pe_linker.c
ndiswrapper-1.8/driver/pe_linker.h
ndiswrapper-1.8/driver/pnp.c
ndiswrapper-1.8/driver/pnp.h
ndiswrapper-1.8/driver/proc.c
ndiswrapper-1.8/driver/usb.c
ndiswrapper-1.8/driver/usb.h
ndiswrapper-1.8/driver/winnt_types.h
ndiswrapper-1.8/driver/wrapper.c
ndiswrapper-1.8/driver/wrapndis.h
ndiswrapper-1.8/driver/wrapndis.c
ndiswrapper-1.8/driver/x86_64_stubs.S
ndiswrapper-1.8/debian/
ndiswrapper-1.8/debian/Makefile
ndiswrapper-1.8/debian/changelog.modules
ndiswrapper-1.8/debian/changelog.source
ndiswrapper-1.8/debian/changelog.utils
ndiswrapper-1.8/debian/control.modules
ndiswrapper-1.8/debian/control.source
ndiswrapper-1.8/debian/control.utils
ndiswrapper-1.8/debian/copyright
ndiswrapper-1.8/debian/dirs.utils
ndiswrapper-1.8/debian/docs
ndiswrapper-1.8/debian/postinst.modules
ndiswrapper-1.8/debian/README.Debian
ndiswrapper-1.8/debian/rules
[root@localhost matthew]# cd ndiswrapper-1.8
[root@localhost ndiswrapper-1.8]# make
make -C driver
make[1]: Entering directory `/home/matthew/ndiswrapper-1.8/driver'
Can't find kernel sources in /lib/modules/2.6.11-1.1369_FC4/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/matthew/ndiswrapper-1.8/driver'
make: *** [all] Error 2
[root@localhost ndiswrapper-1.8]# make install
make -C driver install
make[1]: Entering directory `/home/matthew/ndiswrapper-1.8/driver'
Can't find kernel sources in /lib/modules/2.6.11-1.1369_FC4/build;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/matthew/ndiswrapper-1.8/driver'
make: *** [install] Error 2
[root@localhost ndiswrapper-1.8]
 
Old 01-25-2006, 05:20 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033
Quote:
Can't find kernel sources in /lib/modules/2.6.11-1.1369_FC4/build;
You must install the kernel-source in order to be able to compile things from source. Use your packege manager to install the kernel-source that matches your kernel version (2.6.11-1.1369_FC4).
 
Old 01-25-2006, 05:57 AM   #3
*matt*
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the quick reply

I had a look in add or remove packages but can’t find kernel-source.
 
Old 01-25-2006, 06:15 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033
OK it should be kernel-devel? Take a look here for more details.

Regards
 
Old 01-25-2006, 07:50 AM   #5
*matt*
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Original Poster
Rep: Reputation: 0
I found kernel-devel-2.6.11-1.1369_FC4.i586.rpm on FC4-i386-disc4 this is what happens

[matthew@localhost ~]$ rpm -Uvh kernel-devel-2.6.11-1.1369_FC4.i586.rpm
warning: kernel-devel-2.6.11-1.1369_FC4.i586.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
/usr/sbin/hardlink is needed by kernel-devel-2.6.11-1.1369_FC4.i586
[matthew@localhost ~]$
 
Old 01-25-2006, 07:59 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033
I'm not a Fedora expert but I think "yum" can solve the dependencies problem, or you have to install the missing package (hardlink) an so on.
 
Old 01-25-2006, 08:56 AM   #7
*matt*
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Original Poster
Rep: Reputation: 0
I can't use yum because I don't have an internet connection that’s why I’m trying to install ndiswrapper so I can access the internet via my wireless pci card.

Thanks for all the help I’m starting to lose hope I’ve been trying to install ndiswrapper for 3 days maybe I should try a different distribution.
 
Old 01-25-2006, 09:07 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033
Quote:
[matthew@localhost ~]$ rpm -Uvh kernel-devel-2.6.11-1.1369_FC4.i586.rpm
Did you run the command under your account, because $ is the normal user prompt? You should be root to install packages.
 
Old 01-26-2006, 07:27 AM   #9
*matt*
LQ Newbie
 
Registered: Jan 2006
Posts: 5

Original Poster
Rep: Reputation: 0
It works!!!!!!

I'm typing this from Linux.

I downloaded and installed kernel-module-ndiswrapper-2.6.11-1.1369_FC4-1.2-0.lvn.3.4.i686 and ndiswrapper-1.2-0.lvn.3.4.i386 from washington.kelkoo.net/ftp/pu.../i386/RPMS.lvn

then just followed the ndiswrapper installation guide it all worked perfectly

Thank you for the help

Matt
 
Old 01-26-2006, 07:35 AM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,167
Blog Entries: 1

Rep: Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033Reputation: 2033
Glad to see you have made it.

Cheers
 
  


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
ndiswrapper installation n00bDanimal Linux - Software 6 09-19-2005 01:32 AM
ndiswrapper installation PulsarSL Linux - Newbie 1 08-27-2005 09:58 PM
NdisWrapper installation PEACEYALL Debian 1 01-16-2005 03:39 AM
ndiswrapper installation problem KulaShaker Debian 3 12-15-2004 12:30 PM
Need help with ndiswrapper installation e11 Linux - Newbie 8 10-31-2004 07:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:31 AM.

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