Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 375
  • Last Modified:

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/driver'
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/driver'
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?
0
dlennon
Asked:
dlennon
  • 5
  • 4
1 Solution
 
leisnerCommented:
Where is your configured kernel/include files?
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....

0
 
dlennonAuthor Commented:
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.i686. 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?
0
 
leisnerCommented:
On fedora3, the kernel headers are in
/lib/modules/2.6.9-1.667/build,
Its in the rpm for   kernel-2.6.9-1.667 on fedora3 -- they may have changed the architecture
for fedora5...

When you installed, its useful to just say "install everything" so you don't have "missing things".

What's in /usr/src/linux is an unconfigured source with a number of config files under .config.
You can copy the right config file for your kernel in /usr/src/linux-$number and then make oldconfig
(that was 2.4, I haven't build 2.6 kernels recently)

If you new to linux, you should get something a little older instead of something bleeding edge (IMHO).

Can you boot the original kernel?  You should have something in /lib/modules/linux-*/build -- you may want
 to use that kernel....
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
dlennonAuthor Commented:
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
0
 
leisnerCommented:
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....
0
 
sundeepgopalCommented:
Hey , do u need to make ur wireless thing work ..
check this site
http://fedoranews.org/cms/node/478

0
 
dlennonAuthor Commented:
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/driver'
make -C /lib/modules/2.6.16-1.2080_FC5/build SUBDIRS=/root/ndiswrapper-1.11/driver \
        DRIVER_VERSION=1.11
/usr/src/kernels/2.6.16-1.2080_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2080_FC5-i686/scripts/gcc-version.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/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/root/ndiswrapper-1.11/driver/built-in.o] Error 127
make[2]: *** [_module_/root/ndiswrapper-1.11/driver] 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/driver'
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/driver'
make -C /lib/modules/2.6.16-1.2080_FC5/build SUBDIRS=/root/ndiswrapper-1.11/driver \
        DRIVER_VERSION=1.11
/usr/src/kernels/2.6.16-1.2080_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2080_FC5-i686/scripts/gcc-version.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/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/root/ndiswrapper-1.11/driver/built-in.o] Error 127
make[2]: *** [_module_/root/ndiswrapper-1.11/driver] 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/driver'
make: *** [install] Error 2
[root@localhost ndiswrapper-1.11]#

it is having trouble with gcc-version.sh

Anyone with any thoughts about this
0
 
dlennonAuthor Commented:
anyone out there that can help with this gcc problem
0
 
leisnerCommented:
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...


0
 
dlennonAuthor Commented:
When I went back and reinstalled Fedora and chose everything, ndiswrapper finally worked
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now