PDA

View Full Version : Acpi_call missing C compiler



mrfool
16th March 2012, 03:27 PM
I can't install acpi_call on my alienware m11xr2 (Fedora 16 Xfce)
I managed to get acpi_call to work on ubuntu :<

mr-fool@Les-Soldats ~]$ su
Password:
[root@Les-Soldats mr-fool]# git clone http://github.com/mkottman/acpi_call.git
fatal: destination path 'acpi_call' already exists and is not an empty directory.
[root@Les-Soldats mr-fool]# cd acpi_call
[root@Les-Soldats acpi_call]# make
make -C /lib/modules/3.1.0-7.fc16.x86_64/build M=/home/mr-fool/acpi_call modules
make: *** /lib/modules/3.1.0-7.fc16.x86_64/build: No such file or directory. Stop.
make: *** [default] Error 2
[root@Les-Soldats acpi_call]#


?

yum install kernel-devel
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Install Process
Package kernel-devel-3.2.9-2.fc16.x86_64 already installed and latest version
Nothing to do


---------- Post added at 02:27 PM ---------- Previous post was at 06:16 AM ----------

help please

marko
16th March 2012, 04:26 PM
running these two will get pretty much everything that basic gcc compiling
needs:


su -
<root password>
yum groupinstall "Development Tools"
yum groupinstall "Development Libraries"

Jean Pierre
16th March 2012, 04:58 PM
make: *** /lib/modules/3.1.0-7.fc16.x86_64/build: No such file or directory. Stop
This means you are developing for kernel 3.1.0-7.fc16.x86_64 (probably your current version)

kernel-devel-3.2.9-2.fc16.x86_64 already installed and latest version
This means you have installed the development files for kernel 3.2.9-2.fc16.x86_64

You need the development files (and possibly the kernel headers) which match you target version (even if this is not your current kernel version).

What you posted does not evidence any problem related to compiler.

marko
16th March 2012, 05:00 PM
yeah, try:


yum install kernel-headers

of course the post #1 suggests you were booted to the wrong kernel. You have the kernel-devel installed for 3.2.9-2 but
you were booted to 3.1.0-7. What kernel do you want to build the acpi-call for? You have to be running the actual kernel you want
to build it for.