Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have ubuntu 11.10 installed on my system, upgraded from 11.04. I need to install the elok touch screen driver. as this driver only supports kernel 2.6 and not 3, I switched to kernel 2.6 in boot loader. now that I want to make the elok.so module, it gives me an error

make -C /lib/modules/2.6.38-8-generic/build SUBDIRS=/etc/opt/elo-ser/elok_s-source modules 
make: *** /lib/modules/2.6.38-8-generic/build: No such file or directory.  Stop.
make: *** [default] Error 2

this error is becuase, when I upgraded from kernel 2.6 to kernel 3.0, kernel 2.6 was removed from /usr/src and in the /lib/modules/2.6.x.x there is no build directory.

I do not know how to solve this problem, please note the details of everything i should do to run my module.

share|improve this question

1 Answer 1

you have to download the linux headers and and build a system link

apt-get install linux-headers 
ln -s /usr/src/linux-headers-2.6.38/ /lib/modules/2.6.38/build
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.