简体   繁体   中英

linux-headers-$(uname -r) installer but /usr/include/ is not update with new headers

I am trying to develop a Linux Kernel Module, hence I need linux headers.

I installed the appropriate headers ( linux-headers-4.19.0-10-amd64 ) with the following lines, but I do not know how to install them in /usr/include/

apt-get install -y vim mlocate tree openssh-server gdb libjsoncpp-dev apache2 libmariadbclient-dev libmariadb-dev-compat libmariadb-dev libcunit1-dev libgtk2.0-dev screen python perl sudo dos2unix gperf bison flex pkg-config llvm git sudo build-essential wget fuse cmake makedev  libgl1-mesa-dev  freeglut3-dev  libglu1-mesa-dev
apt-get install -y linux-headers-$(uname -r)
apt-get install -y linux-headers-generic

What is the correct form to update the /usr/include references ?

Headers are to be found in /usr/src and not /usr/include .

Hence, it is not surprising that you don't find any reference to your headers in /usr/include

If you compile modules from a classical kernel, your headers should already be installed. If you compile from a custom kernel, make headers_install should do the trick.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM