View Full Version : ndiswrapper: ./configure missing?
arrabatthaus
17th May 2006, 10:07 PM
Hello,
this is a newly linux user, Fedora core 4, kernel 2.6.11-1.1369_FC4 and I'm having problems in installing ndiswrapper (1.16).
From INSTALL file:
Prerequisites
=============
You need a recent kernel, at least 2.6.6 or 2.4.26, with header files
for the kernel. Make sure there is a link to the kernel source from
the modules directory. The command
ls /lib/modules/`uname -r`/build
should have at least 'include' directory and '.config' file.
But If i perform on my system :
[root@linux /]# ls /lib/modules/`uname -r`/build
arch fs ipc Makefile net sound
crypto include kernel mm scripts usr
drivers init lib Module.symvers security
[root@linux /]#
For my opinion ./configure file is missing, include directory is instead present.
Please what I should do to resolve this problem and use ndiswrapper?
Many many thanks in advance.
bob
17th May 2006, 10:57 PM
I don't use or need it, but here's the gigantic thread on Ndiswrapper: http://forums.fedoraforum.org/forum/showthread.php?t=29659 SOMEWHERE in there you will find all your answers.
Jman
18th May 2006, 04:53 AM
And Fedora Mobile's got a good tutorial. (http://fedoramobile.org/fc-wireless/ndis-yum-livna/)
arrabatthaus
18th May 2006, 07:50 AM
Sorry,
but my PC is offline! I'm trying to install a PCI wireless board (wl-115 sitecom) to connect the PC to the net using Win drivers and so I would like to install ndiswrapper .
Please, any help.!
Thaks in advance.
blue13130
18th May 2006, 07:07 PM
Build the rpm and install it, works like a charm! Or use the prebuilt rpms available from livna
You need to install fedora-rpmdevtools to build the rpm.
You need to configure yum to use livna repo to install the prebuilt rpms
______________________________
Build your own:
1. as root use yum to install fedora-rpmdevtools (if you don't already have it)
# yum install fedora-rpmdevtools
To check and see if you already have the package do this
$ rpm -q fedora-rpmdevtools
2. create your rpmbuild directory as a normal user
$ fedora-buildrpmtree
3. enter directory with ndiswrapper-1.16.tar.gz and create rpm
$ rpmbuild -tb ndiswrapper-1.16.tar.gz
4. enter ~/rpmbuild/RPMS/i386 and install rpms as root
$ su -
# cd home/[username]/rpmbuild/RPMS/i386
# rpm -ivh *.rpm
(there will be two rpms, kernel-module*.rpm and ndiswrapper*.rpm both need to be installed)
____________________________________
To use livna repo method configure yum to use the livna repo
1. Go to livna website and read configuration instructions
http://rpm.livna.org/configuration.html#Core4
2. use yum to install ndiswrapper as root
# yum install ndiswrapper
______________________________
Hope it works!
arrabatthaus
18th May 2006, 08:31 PM
Dear Blue,
thanks for your prompt replay, but I'm experimenting some problemes (sorry... I'm a new user and I have no experience).
This is the command stream that I obtained from my pc in triyng your indications:
[swtest@linux /]$ su root
Password:
[root@linux /]# rpm -q fedora-rpmdevtools
package fedora-rpmdevtools is not installed
[root@linux /]# yum install fedora-rpmdevtools
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: updates-released
[root@linux /]# su swtest
[swtest@linux /]$ fedora-buildrpmtree
bash: fedora-buildrpmtree: command not found
[swtest@linux /]$
How I can fix this new problem?
Thanks,
PG
blue13130
18th May 2006, 08:57 PM
Here is what my fedora-updates.repo file looks like:
[sanjay@FC4 ~]$ cat /etc/yum.repos.d/fedora-updates.repo
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
Edit your file /etc/yum.repos.d/fedora-updates.repo to look similar. You will have to edit it as root and use a program like vi or gedit
$ su -
# gedit /etc/yum.repos.d/fedora-updates.repo
blue13130
18th May 2006, 09:03 PM
Dear Blue,
thanks for your prompt replay, but I'm experimenting some problemes (sorry... I'm a new user and I have no experience).
This is the command stream that I obtained from my pc in triyng your indications:
[swtest@linux /]$ su root
Password:
[root@linux /]# rpm -q fedora-rpmdevtools
package fedora-rpmdevtools is not installed
[root@linux /]# yum install fedora-rpmdevtools
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: updates-released
[root@linux /]# su swtest
[swtest@linux /]$ fedora-buildrpmtree
bash: fedora-buildrpmtree: command not found
[swtest@linux /]$
How I can fix this new problem?
Thanks,
PG
Just for your information:
1. to switch to root use "su -" rather than "su root". I forget why but I think the "su -" is better for some reason.
2. once you are root at the terminal you can switch back to your normal user by typing "exit" rather than "su swtest".
[sanjay@FC4 ~]$ su -
Password:
[root@FC4 ~]$ exit
logout
[sanjay@FC4 ~]$
arrabatthaus
18th May 2006, 09:22 PM
Blue,
this is my fedora-updates.repo file, i open it how do you suggest to me.
[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
It seems to be as your, how can I proceed?
blue13130
18th May 2006, 09:40 PM
Now that I think of it, I never changed the .repo files as they are installed by default in that manner, sorry:) Take a look at your /etc/yum.conf file and edit it to be similar to this (once again as root) and then try running yum again.
[sanjay@FC4 ~]$ cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
metadata_expire=1800
retries=1
timeout=10
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[sanjay@FC4 ~]$
Hopefully things work after this because I am not sure what else might be a cause for the problem.
____________________________________________
On a side note, once you get yum to work, it is recommended to use yum to update the FC4 system to the latest packages as there have been many updates since FC4 was first released. I would do this when you have lots of time as it will take a few hours to run and many megabytes of data will be downloaded (let it run overnight for example)
$ su -
# yum update
(yum will then list all packages to be updated and ask you for yes or no confirmation)
say yes.....lots of time will go by and lots of data will be downloaded, but at the end you will have the most up to date version of FC4!
arrabatthaus
18th May 2006, 09:52 PM
File is as yuo indicate, hopefully yum says "Cannot find a valid baseurl for repo: updates-released"...
....yum is still not working...
Many thanks for your suggestions.
PG
blue13130
18th May 2006, 10:11 PM
I just realized that your pc is offline from one of your above posts!! yum will only work if you are online.
Can you use an ethernet connection to your machine to go online and then setup yum and configure ndiswrapper and then use the wireless connection?
How about downloading the fedora-rpmdevtools rpm on the machine you use to go online and then transferring that file to your FC4 machine? Here is the link for the rpm file:
http://download.fedora.redhat.com/pub/fedora/linux/extras/4/i386/fedora-rpmdevtools-1.6-1.fc4.noarch.rpm
Let me know how things work out.
blue13130
18th May 2006, 11:24 PM
I have just realized your problem is very simple to solve!!!
The .config file is a hidden file and you have to use an option in the list command to show hidden files. Any filename with a "." as the first character is hidden. So from your first post:
[sanjay@FC4 ~]$ ls /lib/modules/`uname -r`/build
arch crypto fs init kernel Makefile mm net security usr
block drivers include ipc lib Makefile.orig Module.symvers scripts sound
Now add -a option to show all files
[sanjay@FC4 ~]$ ls -a /lib/modules/`uname -r`/build
. block drivers init .kernelrelease Makefile.orig net sound
.. .config fs ipc lib mm scripts usr
arch crypto include kernel Makefile Module.symvers security
[sanjay@FC4 ~]$
the .config file is now listed
You should be able to compile and install ndiswrapper by now doing the make, make install commands as listed in the instructions
I am sorry about the confusion about yum. If only I had carefully read your first post :D
Once you get ndiswrapper working, I would recommend using yum to do a system update.
arrabatthaus
20th May 2006, 05:24 PM
Dear blue, I'm now I'm trying to do that but:
[root@linux /]# ls -a /lib/modules/'uname -r'/build
ls: /lib/modules/uname -r/build: No such file or directory
[root@linux /]#
what does it mean?
I'm not understanding what happen on my pc!!
blue13130
20th May 2006, 06:05 PM
you need to use the backword tick rather than an apostrophe.
The backward tick is this ` it is on the same key that has ~. So you need to use `uname -r` rather than 'uname -r'.
You could also just use the following:
$ ls -a /lib/modules/2.6.11-1.1369_FC4/build/
`uname -r` is just a way to substitute your kernel version into the command.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.