编译click modular router遇到的一些问题

系统为Ubuntu 16.04.1 LTS

#问题1:

1
2
Cant'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
2
Can'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`