I'm trying to install Click Modular Router as a Linux Kernel Module.
I ran the command
sudo ./configure --enable-linuxmodule
And I got the following error
Can't find /usr/src/linux, so I can't compile the linuxmodule driver! (You may need the --with-linux=DIR option.)
I then ran the following command
sudo ./configure --enable-linuxmodule --with-linux=/usr/src/linux-headers-3.2.0-55-generic-pae
And I got the following error
Can't find Linux System.map file in /usr/src/linux-headers-3.2.0-55-generic-pae. (You may need the --with-linux=DIR and/or --with-linux-map=MAP options.)
I need to set this up in such a way that I can put this in an automated deployment script. How would I go about doing this?