Ask Your Question

where kernel headers files are?

asked 2013-02-16 12:32:43 -0600

MP gravatar image

updated 2013-02-21 07:09:46 -0600

FranciscoD_ gravatar image

I need to install VMWare and I think kernel header files files are in /usr/src/kernels/3.7.6-102.fc17.i686/include/linux When I put this path in the program VMWare, which is asking for these files but there is error. Why the path does not work? Any help would be aprecciated. Thanks in Advance.

I have this in my terminal:

[root@212 include]# cd /usr/src/kernels/3.7.6-102.fc17.i686/include/linux
[root@212 linux]# dir
8250_pci.h      i2c.h            pci.h
acct.h          i2c-mux-gpio.h       pci_hotplug.h
acpi.h          i2c-mux.h        pci_ids.h
acpi_io.h       i2c-mux-pinctrl.h    pda_power.h
acpi_pmtmr.h        i2c-ocores.h         percpu_counter.h
adb.h           i2c-omap.h       percpu-defs.h
adfs_fs.h       i2c-pca-platform.h   percpu.h
aer.h           i2c-pnx.h        percpu-rwsem.h
agp_backend.h       i2c-pxa.h        perf_event.h
agpgart.h       i2c-smbus.h      perf_regs.h
ahci_platform.h     i2c-tegra.h      personality.h
aio.h           i2c-xiic.h       pfn.h
alarmtimer.h        i2o.h            phonedev.h
altera_jtaguart.h   i7300_idle.h         phonet.h
altera_uart.h       i8042.h          phy_fixed.h
amba            i8253.h          phy.h
amd-iommu.h     i82593.h         pid.h
amifd.h         icmp.h           pid_namespace.h
amifdreg.h      icmpv6.h         pim.h
amigaffs.h      ide.h            pinctrl
anon_inodes.h       idr.h            pipe_fs_i.h
a.out.h         ieee80211.h      pktcdvd.h
apm_bios.h      if_arp.h         platform_data
apm-emulation.h     if_bridge.h      platform_device.h
apple_bl.h      if_eql.h         plist.h
arcdevice.h     if_ether.h       pm_clock.h
asn1_ber_bytecode.h if_fddi.h        pm_domain.h
asn1_decoder.h      if_frad.h        pm.h
asn1.h          if_link.h        pm_qos.h
async.h         if_ltalk.h       pm_runtime.h
async_tx.h      if_macvlan.h         pmu.h
ata.h           if_phonet.h      pm_wakeup.h
atalk.h         if_pppol2tp.h        pnfs_osd_xdr.h
ata_platform.h      if_pppox.h       pnp.h
ath9k_platform.h    if_team.h        poison.h
atmdev.h        if_tun.h         poll.h
atmel-mci.h     if_tunnel.h      posix_acl.h
atmel_pdc.h     if_vlan.h        posix_acl_xattr.h
atmel-pwm-bl.h      igmp.h           posix-clock.h
atmel_pwm.h     ihex.h           posix-timers.h
atmel_serial.h      iio          power
atmel-ssc.h     ima.h            power_supply.h
atmel_tc.h      in6.h            ppp_channel.h
atm.h           inetdevice.h         ppp-comp.h
atm_suni.h      inet_diag.h      ppp_defs.h
atm_tcp.h       inet.h           pps-gpio.h
atomic.h        inet_lro.h       pps_kernel.h
attribute_container.h   in.h             preempt.h
audit.h         init.h           prefetch.h
auto_dev-ioctl.h    init_ohci1394_dma.h  printk.h
auto_fs.h       initrd.h         prio_heap.h
auxvec.h        init_task.h      proc_fs.h
average.h       inotify.h        profile.h
b1pcmcia.h      input            projid.h
backing-dev.h       input.h          proportions.h
backlight.h     input-polldev.h      pstore.h
basic_mmio_gpio.h   integrity.h      pstore_ram.h
bcd.h           intel-iommu.h        pti.h
bch.h           intel_mid_dma.h      ptp_classify.h
bcm2835_timer.h     intel_pmic_gpio.h    ptp_clock_kernel.h
bcma            interrupt.h      ptrace.h
bfin_mac.h      interval_tree_generic.h  pwm_backlight.h
binfmts.h       interval_tree.h      pwm.h
bio.h           ioc3.h           pxa168_eth.h
bitmap.h        ioc4.h           pxa2xx_ssp.h
bitops.h        iocontext.h      qnx6_fs.h
bitrev.h        io.h             quicklist.h
bit_spinlock.h      io-mapping.h         quota.h
blkdev.h        iommu.h          quotaops.h
blk-iopoll.h        iommu-helper.h       radix-tree.h
blktrace_api.h      ioport.h         raid ...
edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2013-02-16 13:22:12 -0600

skytux gravatar image

If you need kernel headers then install the package kernel-headers-3.7.6-102.fc17.i686.rpm. To see the path, list the contents of the package:

$ rpm -ql kernel-headers



edit flag offensive delete link more


that command is wrong because the package is already installed with yum, I don't know what you wanted to do... anyway, I have never used vmware, so I can't help you with that...

skytux gravatar imageskytux ( 2013-02-16 17:44:32 -0600 )edit

answered 2013-02-18 09:17:25 -0600

scottro gravatar image

Fedora has apparently moved (or overlooked) a particular version.h file that VMware requires. The fix (it's on askfedora somewhere, I believe, that's where I found it) is to run

cp /usr/include/linux/version.h /lib/modules/<kernel-version>/build/include/linux/

Ah here's the thread with the fix

edit flag offensive delete link more

answered 2013-02-21 07:58:47 -0600

wholevin gravatar image

updated 2013-02-21 08:17:48 -0600

Do a:

sudo yum install kernel-devel

It's unwise to run around with mismatching kernel versions after an update, so then do a:

sudo yum update

to pull in all the other packages, since you're install will most likely pull in a newer kernel if you haven't updated lately. Once this is done, reboot, then try whatever you were doing again.

Edit: Saw the other reply's post about the version.h this too:

sudo cp /usr/include/linux/version.h /lib/modules/3.7.2-204.fc18.x86_64/build/include/linux/

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-02-16 12:32:43 -0600

Seen: 10,987 times

Last updated: Feb 21 '13