Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The compile command that I should use is:

make  KLIB=/lib/modules/$(uname -r)

But as make utility is not good at uninstalling packages I want to use checkinstall like so:

checkinstall install=no 

But how can I use KLIB variable with checkintstall?

share|improve this question
I don't understand. chekinstall substitutes the make install step, not the make (compilation) step in the usual install from source procedure. – Javier Rivera Dec 14 '11 at 8:10
up vote 1 down vote accepted

As Javier pointed out in his comment: checkinstall is only useful for the installation part of the build chain. For some more clarification:

if you ware used to compile and install a program the usual way: ./configure && make && make install you would replace this by:

./configure && make && checkinstall install=no

so you can still pass the KLIB-Argument to make as this argument is only important for make, not for make install.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.