Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm debugging a closed-source software installer that seems to have some pre-conceived notions about my distribution. The installation aborts after not finding apt-get. The command it attempts to run is:

apt-get -y -q install linux-headers-3.7.5-1-ARCH

I suppose the "package name" comes from /usr/src, where the sole entry is linux-3.7.5-1-ARCH. Does anyone have any educated guess as to which package I should install with pacman?

The headers are probably going to be used to compile drivers for custom hardware.

Here is some relevant text from the install log:

NOTE: Linux drivers must be built against the kernel sources for the kernel that your Linux OS is currently running. This script automates this task for you.

NOTE: You must have the Linux OS kernel header source files installed. If you plan on running the Jungo Debug Monitor, then you may also need to install "compat-libstdc++" and "libpng3".

Your Linux is currently running the following kernel version:
3.7.5-1-ARCH

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

You're running Arch linux. According to pacman -Q -i linux-headers, the package "linux-headers" contains "Header files and scripts for building modules for linux kernel". When the linux kernel gets built, various constants, which might be numbers or strings or what have you, get defined. Some loadable modules need to know those numbers or strings. The files in "linux-headers" should contain all the build-specific numbers, strings etc for the kernel, in your case kernel version 3.7.5-1 .

You can see what files package "linux-headers" owns: pacman -Q -l linux-headers

You can install package "linux-headers" as root: pacman -S linux-headers

The "apt-get" part of the script seems to assume you're running Debian or a derivative. Install linux-headers with pacman and see how it goes.

share|improve this answer
add comment

You're running Arch Linux, which does not use apt-get as it's package handling utility. Arch Linux uses pacman instead.

The linux-headers package in many Linux distributions generally contain the C header files (files with the .h extension) for the Linux kernel. These files generally define constants and functions that can be used by other programs and drivers.

You generally need the kernel header files in order to compile and install 3rd party drivers for the kernel.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.