LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ndiswrapper installation problem (https://www.linuxquestions.org/questions/linux-software-2/ndiswrapper-installation-problem-407737/)

*matt* 01-25-2006 05:13 AM

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]

bathory 01-25-2006 05:20 AM

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).

*matt* 01-25-2006 05:57 AM

Thanks for the quick reply

I had a look in add or remove packages but can’t find kernel-source.

bathory 01-25-2006 06:15 AM

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

Regards

*matt* 01-25-2006 07:50 AM

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 ~]$

bathory 01-25-2006 07:59 AM

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.

*matt* 01-25-2006 08:56 AM

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.

bathory 01-25-2006 09:07 AM

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.

*matt* 01-26-2006 07:27 AM

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

bathory 01-26-2006 07:35 AM

Glad to see you have made it.

Cheers


All times are GMT -5. The time now is 09:21 PM.