LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 09-07-2005, 08:21 AM   #1
jkh
Member
 
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100

Rep: Reputation: 15
Finding a precompiled package


Hello all, I cannot compile ndiswrapper 0.10 and no precompiled version seems to be available for pacman. What I need to know is could I install a precompiled for another system on Arch linux like an .rpm? Or someone find me an ndiswrapper 0.10 pacman package. Thankyou in advance.

Last edited by jkh; 09-07-2005 at 08:26 AM.
 
Old 09-07-2005, 01:41 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
Try searching the arch wiki
http://wiki.archlinux.org/index.php/Wireless_Setup
 
Old 09-08-2005, 02:31 PM   #3
jkh
Member
 
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100

Original Poster
Rep: Reputation: 15
Thanks for the post. I am asuming you were hinting towards me using this command: pacman -S community/ndiswrapper which is no good because my Arch computer is not connected to the net because I need ndiswrapper 0.10 to get the drivers running to make it work, sorry. I also assume that that command takes the package from here: ftp://ftp.archlinux.org/community/os/i686/ which is no good because that ndiswrapper version is too new, I need version 0.10. I just need to get ndiswrapper 0.10 installed on Arch and I cannot compile it. Tell me if I am wrong and spoon feed me.
 
Old 09-08-2005, 08:54 PM   #4
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
download it on the computer you are posting on. Save it to usb, where ever. Use pacman -A to install it. If you need a older version of ndiswrapper and there isn't a pkg made for it. Take the newer pkgbuild and edit it to work for whichever one you downloaded.

Go to the docs on the arch website and read about installing local packages.
 
Old 09-20-2005, 07:30 AM   #5
SML
Member
 
Registered: Dec 2002
Location: US
Distribution: Intel Clear Linux
Posts: 381

Rep: Reputation: 30
If you cannot compile ndiswrapper, make sure that you have gcc installed.
 
Old 11-06-2005, 02:32 PM   #6
jkh
Member
 
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100

Original Poster
Rep: Reputation: 15
OK, honesty time. I havn't gotten this sorted! I just gave up out of frustration. I have been trying to do this ever since I first put linux on my computer and actually did it once using an rpm under fedora core 3, but ofcourse I came to realise that the RPM is crap. I just need someone devoted to help me out here. The outcome I want is ndiswrapper 0.10 on my computer, I can handle it from there. I have tried so much else and so much rubbish but the option I am left with is ndiswrapper 0.10.

My thoughts::
Could I install something on Arch like RPM to install a .rpm or other package?
" Take the newer pkgbuild and edit it to work for whichever one you downloaded. " <-- that makes little sense but if you are asking me to edit packages or compiled code then I have no idea how.
I do have gcc with no clue what the version is. Perhaps I should install an older version for an older package??

Also a while back I posted what was wrong with compiling ndiswrapper 0.10 but I think I posted in the wrong section. http://www.linuxquestions.org/questi...hreadid=309675

I am not a very smart man so please be clear and spoon feed where ever possible.

Last edited by jkh; 11-06-2005 at 02:35 PM.
 
Old 11-14-2005, 01:37 PM   #7
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
a pkgbuild is a really simple file to read and you would only need to edit the version and that is about it.

Below is the ndiswrapper PKGBUILD for ndiswrapper .10(there are newer versions though) from Phrakture at the arch website. Copy everything and save it as PKGBUILD. I would make a dir /var/abs/local/ndiswrapper and save the PKGBUILD in there(you will have to save it, then move it as root) and do the same with the ndiswrapper file. cd into that directory and type as root "makepkg" without the quotes. after it is done type "pacman -A ndiswrapper<hit tab here>"(it should be again with out the quotes. then you will have ndiswrapper installed. If you want the newest version, change the pkgver line from 0.10 to 1.6 and that should get you the latest and greatest ndiswrapper. good luck




pkgname=ndiswrapper
pkgver=0.10
pkgrel=1
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors"
url="ndiswrapper.sourceforge.net"
depends=(wireless_tools)
source=(http://optusnet.dl.sourceforge.net/s...e/ndiswrapper/$pkgname-$pkgver.tar.gz)
md5sums=()

build()
{
cd $startdir/src/$pkgname-$pkgver
make || return 1

#ndiswrapper provides some bunk makefile which installs to hardcoded paths
# we'll fix that here.... and manually install ourselves (thank god this is
# a small install)
pkgdir="${startdir}/pkg"

mkdir -p $pkgdir/lib/modules/`uname -r`/misc
install -m 644 driver/ndiswrapper.ko $pkgdir/lib/modules/`uname -r`/misc
/sbin/depmod -a

mkdir -p $pkgdir/sbin
mkdir -p $pkgdir/usr/sbin
install -m 755 utils/loadndisdriver $pkgdir/sbin
install -m 755 utils/ndiswrapper $pkgdir/usr/sbin
install -m 755 utils/ndiswrapper-buginfo $pkgdir/usr/sbin

mkdir -p $pkgdir/usr/man/man8
install -m 644 ndiswrapper.8 $pkgdir/usr/man/man8
}

Last edited by bosewicht; 11-17-2005 at 01:35 PM.
 
Old 11-16-2005, 03:23 AM   #8
jkh
Member
 
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100

Original Poster
Rep: Reputation: 15
sorry I have not replied yet but I broke my computer will be completely fixed soon and I will do as you instructed. Thank you so very much.
 
Old 11-20-2005, 12:13 PM   #9
jkh
Member
 
Registered: Dec 2004
Location: Maidstone, Kent, England
Distribution: Ubuntu
Posts: 100

Original Poster
Rep: Reputation: 15
okey doke
The PKGBUILD didn't work.
I have output:
Code:
make -C driver
make[1]: Entering directory `/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver'
make -C /lib/modules/2.6.13-ARCH/build SUBDIRS=/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver \
	NDISWRAPPER_VERSION=0.10 \
	EXTRA_VERSION= modules
make[2]: Entering directory `/usr/src/linux-2.6.13-ARCH'
  CC [M]  /var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver/wrapper.o
/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver/wrapper.c: In function 'ndis_suspend_pci':
/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver/wrapper.c:892: error: too many arguments to function 'pci_save_state'
/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver/wrapper.c: In function 'ndis_resume_pci':
/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver/wrapper.c:923: error: too many arguments to function 'pci_restore_state'
/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver/wrapper.c: In function 'ndis_init_one_pci':
/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver/wrapper.c:1453: error: too many arguments to function 'pci_restore_state'
make[3]: *** [/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver/wrapper.o] Error 1
make[2]: *** [_module_/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.13-ARCH'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/abs/local/ndiswrapper/src/ndiswrapper-0.10/driver'
make: *** [all] Error 2
sad part is it's for the same reasons the compile didn't work first time.
origional compile attempt output: http://www.linuxquestions.org/questi...55#post1572655
Code:
make[2]: Entering directory '/usr/src/linux-2.6.10-ARCH'
  CC [M] /root/ndiswrapper-0.10/driver/wrapper.o
/root/ndiswrapper-0.10/driver/wrapper.c: In function 'ndis_suspend_pci' :
/root/ndiswrapper-0.10/driver/wrapper.c:892: error : too many arguements to function on 'pci_save_state'
/root/ndiswrapper-0.10/driver/wrapper.c: In function 'ndis_resume_pci'
/root/ndiswrapper-0.10/driver/wrapper.c:923: error: too many arguements to function on 'pci_restore_state'
/root/ndiswrapper-0.10/driver/wrapper.c: In function 'ndis_init_one_pci'
/root/ndiswrapper-0.10/driver/wrapper.c:1452: error: too many arguements to function on 'pci_restore_state'
make[3]: *** [/root/ndiswrapper-0.10/driver/wrapper.o] Error 1
make[2]: *** [_module_/root/ndiswrapper-0.10/driver/] Error 2
make[2]: Leaving directory '/usr/src/linux-2.6.10-ARCH'
make[1]: *** [default] Error 2
make[1]: Leaving directory '/root/ndiswrapper-0.10/driver'
make: *** [install] Error 2
[root@sirus ndiswrapper-0.10]#
I am thinking of asking my wealthy friends for a wireless network card for christmas. Kind of sore about not getting it running though. If I can before christmas I shall try and hunt someone down who has already created an arch package with this PKGBUILD thing.

Last edited by jkh; 11-20-2005 at 12:15 PM.
 
  


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
Finding the owning package of a file yadu Debian 2 11-12-2005 09:09 AM
Mysql Compilation/Package Finding waynejkruse10 Linux - Software 1 08-29-2005 04:59 PM
cryptic info on precompiled package filenames xenithi Linux - Newbie 1 10-24-2004 02:45 PM
Package Management not finding CD rfk Linux - General 2 10-05-2004 06:43 PM
Qt precompiled networkdevo Red Hat 1 08-30-2003 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 10:55 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