You are not logged in.
I tried installing madwifi-aircrack and I got the following output:
/bin/sh: line 0: cd: /lib/modules/2.6.32-ARCH/build: No such file or directory
Makefile.inc:66: *** /lib/modules/2.6.32-ARCH/build is missing, please set KERNELPATH. Stop.
Indeed, there is no 'build' folder. The specific code that it references is here:
build() {
[ "${CARCH}" == "i686" ] && export ARCH=i386
cd $startdir/src/madwifi
patch -Np1 -i $startdir/src/madwifi-ng-r4073.patch
sed -i -e 's/-Werror//g' Makefile.inc
make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules|| return 1
make KERNELPATH=/lib/modules/$_kernver/build KERNELRELEASE=$_kernver modules \
DESTDIR=$startdir/pkg KERNELRELEASE=$_kernver install-modules
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.installThe full pkgbuild is here:
http://aur.archlinux.org/packages/madwi … k/PKGBUILD
What should I change the directory to?
Last edited by Ferrenrock (2010-04-05 16:45:52)
Offline
Install kernel26-headers.
Offline
OK, I got it working. After installing that, I still had to change the kernel version in the PKGBUILD from 2.6.31 to 2.6.32. I would be better if that just linked to uname output or something, but I have no idea how to do that.
Offline
The kernel version is hardcoded to facilitate building against non-running kernels. This is standard practice for kernel module PKGBUILDs.
The fact that madwifi-aircrack in the AUR was last updated on 22 Dec is also relevant.
Offline