quicktek
Posts: 3
Joined: Tue Aug 14, 2012 3:59 pm

How to Install Kernel Sources Arch Linux

Tue Aug 14, 2012 5:30 pm

Hello,

I'm trying to run a shell installer script and it's failing with this error:
Kernel sources or kernel headers directory not found. Please install the corresponding package first.
The directory it is checking for is /lib/modules/`uname -r`/build

I've seen some other threads on doing this for Debian, but those instructions don't seem to work, nor do these (for obvious reasons):

Code: Select all

# How to install kernel sources (or kernel headers).
# Debian: apt-get install make gcc linux-headers-`uname -r`
# RedHat,Fedora: yum install make gcc kernel-devel-`uname -r`
# Proxmox VE: apt-get install build-essential pve-headers-`uname -r`

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: How to Install Kernel Sources Arch Linux

Tue Aug 14, 2012 6:10 pm

It should be checking for
/usr/lib/modules/`uname -r`/build

quicktek
Posts: 3
Joined: Tue Aug 14, 2012 3:59 pm

Re: How to Install Kernel Sources Arch Linux

Tue Aug 14, 2012 7:19 pm

pepedog wrote:It should be checking for
/usr/lib/modules/`uname -r`/build
Ahh, perfect thank you. I created a symlink to this location and it worked (was easier than modifying the script).

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: How to Install Kernel Sources Arch Linux

Tue Aug 14, 2012 7:55 pm

In the near future (it's happened to x86 arch already) /lib becomes a symlink to /usr/lib

Return to “Arch”