dlennon
asked on
trouble getting NDISWRAPPER to install
trouble getting NDISWRAPPER to load. I am asking the same question as a previous user. when I try and run Make as per the Install instructions, I get the following error:
root@localhost ndiswrapper-1.10]# make
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.10/dr iver'
Can't find kernel sources in /lib/modules/2.6.15-1.2074 _FC5/build ;
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/root/ndiswrapper-1.10/dr iver'
make: *** [all] Error 2quit
I read the suggestion to create a link in the /usr/src directory, but I need more specific instructions, i.e. exactly how do you create the link, from which directory and file and to which file to you create the link to?
root@localhost ndiswrapper-1.10]# make
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.10/dr
Can't find kernel sources in /lib/modules/2.6.15-1.2074
give the path to kernel sources with KSRC=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/root/ndiswrapper-1.10/dr
make: *** [all] Error 2quit
I read the suggestion to create a link in the /usr/src directory, but I need more specific instructions, i.e. exactly how do you create the link, from which directory and file and to which file to you create the link to?
ASKER
I loaded the latest Fedora 5 update with an RPM. I am new at Linux so Where would I look for the cofigured kernel. There is a path /lib/modules/2.6.16-1.2074 _FC5. In that folder there is both a source and build. When I clicked on both the build and the source, it said there was a link to /usr/src/kernels/2.6.16-1. 2074_FC5.i 686. But it said the link was broken and if you look into the ?usr/src folder there is nothing in it. Is that the problem? If so, how do I correct it?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I tried to load Fedora 4 originally but I could not get it to run, may have been a bad iso. When i installed Fedora 5 I had to use text install because I had trouble with my monitor and therefore, there was no option to install everything. Here is the structure of the folder under /lib/modules where the kernel is. Olease note the links that bulid and source have. As I mentiioned before, under the properties for those two files it says the link is broken. When you look into the /usr/src folder there is nothing in it. How do i correct the broken link? Where do I find the right config file? Is it one of the files in /lib/modules/2.6.16-1-2074 _FC5 ?
[root@localhost modules]# cd 2.6.15-1.2054_FC5
[root@localhost 2.6.15-1.2054_FC5]# ls -l
total 1152
lrwxrwxrwx 1 root root 47 Mar 21 15:42 build -> ../../../usr/src/kernels/2 . 6.15-1.2054_FC5-i686
drwxr-xr-x 2 root root 4096 Mar 14 15:02 extra
drwxr-xr-x 10 root root 4096 Mar 21 15:43 kernel
-rw-r--r-- 1 root root 239062 Mar 21 15:43 modules.alias
-rw-r--r-- 1 root root 69 Mar 21 15:43 modules.ccwmap
-rw-r--r-- 1 root root 238199 Mar 21 15:43 modules.dep
-rw-r--r-- 1 root root 813 Mar 21 15:43 modules.ieee1394map
-rw-r--r-- 1 root root 206 Mar 21 15:43 modules.inputmap
-rw-r--r-- 1 root root 11158 Mar 21 15:43 modules.isapnpmap
-rw-r--r-- 1 root root 182372 Mar 21 15:43 modules.pcimap
-rw-r--r-- 1 root root 799 Mar 21 15:43 modules.seriomap
-rw-r--r-- 1 root root 104167 Mar 21 15:43 modules.symbols
-rw-r--r-- 1 root root 279653 Mar 21 15:43 modules.usbmap
lrwxrwxrwx 1 root root 5 Mar 21 15:43 source -> build
drwxr-xr-x 2 root root 4096 Mar 14 15:02 updates
[root@localhost modules]# cd 2.6.15-1.2054_FC5
[root@localhost 2.6.15-1.2054_FC5]# ls -l
total 1152
lrwxrwxrwx 1 root root 47 Mar 21 15:42 build -> ../../../usr/src/kernels/2
drwxr-xr-x 2 root root 4096 Mar 14 15:02 extra
drwxr-xr-x 10 root root 4096 Mar 21 15:43 kernel
-rw-r--r-- 1 root root 239062 Mar 21 15:43 modules.alias
-rw-r--r-- 1 root root 69 Mar 21 15:43 modules.ccwmap
-rw-r--r-- 1 root root 238199 Mar 21 15:43 modules.dep
-rw-r--r-- 1 root root 813 Mar 21 15:43 modules.ieee1394map
-rw-r--r-- 1 root root 206 Mar 21 15:43 modules.inputmap
-rw-r--r-- 1 root root 11158 Mar 21 15:43 modules.isapnpmap
-rw-r--r-- 1 root root 182372 Mar 21 15:43 modules.pcimap
-rw-r--r-- 1 root root 799 Mar 21 15:43 modules.seriomap
-rw-r--r-- 1 root root 104167 Mar 21 15:43 modules.symbols
-rw-r--r-- 1 root root 279653 Mar 21 15:43 modules.usbmap
lrwxrwxrwx 1 root root 5 Mar 21 15:43 source -> build
drwxr-xr-x 2 root root 4096 Mar 14 15:02 updates
well, when you want to build drivers (which you do) you need to be able to build a kernel (you don't
have to, youhave to be able to).
I've had these problems, and I just say "let me build a kernel and install it so I know what I'm
running".
fedora3 has an absolute directory approach (which I liked). redhat 9 had symlinks.
You show me symlinks (so they obviously went back).
If you have the kernel source (for the current version), copy a reasonable config and
make the headers (I think make oldconfig).
Without having a fedora5 system in front of me, I'm not sure what to recommended...
You might want to start looking at rpm (not sure if they have a graphical package manager), I'm not very good at rpm but doing
rpm -qa | grep linux
will tell you the linux packages you have installed, then you can
rpm -qvl <name>
to know what files are in the package....
have to, youhave to be able to).
I've had these problems, and I just say "let me build a kernel and install it so I know what I'm
running".
fedora3 has an absolute directory approach (which I liked). redhat 9 had symlinks.
You show me symlinks (so they obviously went back).
If you have the kernel source (for the current version), copy a reasonable config and
make the headers (I think make oldconfig).
Without having a fedora5 system in front of me, I'm not sure what to recommended...
You might want to start looking at rpm (not sure if they have a graphical package manager), I'm not very good at rpm but doing
rpm -qa | grep linux
will tell you the linux packages you have installed, then you can
rpm -qvl <name>
to know what files are in the package....
Hey , do u need to make ur wireless thing work ..
check this site
http://fedoranews.org/cms/node/478
check this site
http://fedoranews.org/cms/node/478
ASKER
thanks but that is for a wireless intel card. I need to get ndiswrapper installed and am having a hell of a time of it. I got past the fist make errors but now I get the following:
Plain make with debug
[root@localhost ndiswrapper-1.11]# make debug=3
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.11/dr iver'
make -C /lib/modules/2.6.16-1.2080 _FC5/build SUBDIRS=/root/ndiswrapper- 1.11/drive r \
DRIVER_VERSION=1.11
/usr/src/kernels/2.6.16-1. 2080_FC5-i 686/script s/gcc-vers ion.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1. 2080_FC5-i 686/script s/gcc-vers ion.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1 .2080_FC5- i686'
LD /root/ndiswrapper-1.11/dri ver/built- in.o
/bin/sh: ar: command not found
make[3]: *** [/root/ndiswrapper-1.11/dr iver/built -in.o] Error 127
make[2]: *** [_module_/root/ndiswrapper -1.11/driv er] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1 .2080_FC5- i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/ndiswrapper-1.11/dr iver'
make: *** [all] Error 2
make install with KSRC=/usr/src/kernels/2.6. 16-1.2080_ FC5-i686
[root@localhost ndiswrapper-1.11]# make install KSRC=/usr/src/kernels/2.6. 16-1.2080_ FC5-i686
make -C driver install
make[1]: Entering directory `/root/ndiswrapper-1.11/dr iver'
make -C /lib/modules/2.6.16-1.2080 _FC5/build SUBDIRS=/root/ndiswrapper- 1.11/drive r \
DRIVER_VERSION=1.11
/usr/src/kernels/2.6.16-1. 2080_FC5-i 686/script s/gcc-vers ion.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1. 2080_FC5-i 686/script s/gcc-vers ion.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1 .2080_FC5- i686'
LD /root/ndiswrapper-1.11/dri ver/built- in.o
/bin/sh: ar: command not found
make[3]: *** [/root/ndiswrapper-1.11/dr iver/built -in.o] Error 127
make[2]: *** [_module_/root/ndiswrapper -1.11/driv er] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1 .2080_FC5- i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/ndiswrapper-1.11/dr iver'
make: *** [install] Error 2
[root@localhost ndiswrapper-1.11]#
it is having trouble with gcc-version.sh
Anyone with any thoughts about this
Plain make with debug
[root@localhost ndiswrapper-1.11]# make debug=3
make -C driver
make[1]: Entering directory `/root/ndiswrapper-1.11/dr
make -C /lib/modules/2.6.16-1.2080
DRIVER_VERSION=1.11
/usr/src/kernels/2.6.16-1.
/usr/src/kernels/2.6.16-1.
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1
LD /root/ndiswrapper-1.11/dri
/bin/sh: ar: command not found
make[3]: *** [/root/ndiswrapper-1.11/dr
make[2]: *** [_module_/root/ndiswrapper
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/ndiswrapper-1.11/dr
make: *** [all] Error 2
make install with KSRC=/usr/src/kernels/2.6.
[root@localhost ndiswrapper-1.11]# make install KSRC=/usr/src/kernels/2.6.
make -C driver install
make[1]: Entering directory `/root/ndiswrapper-1.11/dr
make -C /lib/modules/2.6.16-1.2080
DRIVER_VERSION=1.11
/usr/src/kernels/2.6.16-1.
/usr/src/kernels/2.6.16-1.
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1
LD /root/ndiswrapper-1.11/dri
/bin/sh: ar: command not found
make[3]: *** [/root/ndiswrapper-1.11/dr
make[2]: *** [_module_/root/ndiswrapper
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/ndiswrapper-1.11/dr
make: *** [install] Error 2
[root@localhost ndiswrapper-1.11]#
it is having trouble with gcc-version.sh
Anyone with any thoughts about this
ASKER
anyone out there that can help with this gcc problem
ok, gcc isn't there -- when you type
gcc -v
doesn't gcc run? how about when you're not root...
gcc-version.sh just checks the gcc version -- since there is no
gcc, it barfs...
gcc -v
doesn't gcc run? how about when you're not root...
gcc-version.sh just checks the gcc version -- since there is no
gcc, it barfs...
ASKER
When I went back and reinstalled Fedora and chose everything, ndiswrapper finally worked
You really don't have a problem getting it to "load", you can't build it...
I don't have a fedora5 system here, there's an rpm package (problably) with the the
kernel includes....