Skip to content

Instantly share code, notes, and snippets.

@tuantmb
Last active March 17, 2022 13:19
Show Gist options
  • Save tuantmb/41899b9b479e3ceb6f741f6af84b39b9 to your computer and use it in GitHub Desktop.
Save tuantmb/41899b9b479e3ceb6f741f6af84b39b9 to your computer and use it in GitHub Desktop.
Rebuild vmware kernel modules (usually after upgrading linux kernel) - Fix gcc not found/not complicate to build vmware modules

Command run with root permission

CPATH=/usr/src/linux-headers-`uname -r | awk -F- '{printf "%s-%s-common",$1,$2}'`/include/linux vmware-modconfig --console --install-all

Require install build tools & linux kernel source headers

apt install linux-headers-$(uname -r)
apt install build-essential
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment