系统为Ubuntu 16.04.1 LTS
#问题1:1
2Cant't find /usr/src/linux, so I can't compile the linuxmodule driver
(You may need the --with-linux=DIR option.)
因为Ubuntu的头文件在里面1
/usr/src/linux-`uname -r`-generic
所以要么建立一个文件夹软连接1
ln -s /usr/src/linux-headers-`uname -r` /usr/src/linux
要么1
./configure --with-linux=/usr/src/linux-headers-`uname -r`
#问题2:1
2Can't find Linux System.map file in /usr/src/linux.
(You may need the --with-linux=DIR and/or --with-linux-map=MAP options.)
同上,1
./configure --with-linux-map=/boot/System.map-`uname -r`